LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   header files? (https://www.linuxquestions.org/questions/programming-9/header-files-300471/)

trscookie 03-11-2005 01:31 PM

header files?
 
hello all, ive just started to learn c++ (about 2 weeks!), and i think im starting to get the hang of it a little, there is just a few things that im not sure that i understand and was wondering if you could explain in lamemans terms!

1. how do you find out what headerfiles you need for the functions that you require (if that makes sence)?

2. am i learning the right language, ive heard rumers that if i want to learn a language it should be c#.

thanks

itsme86 03-11-2005 01:47 PM

1) The man page for each function tells you which header file(s) are needed for that function. If you're referring to MFC functions then you should be able to use your IDE's help utility to find out.

2) It really depends on what you're planning on doing and why you're learning a language. Each language has its own strenghts and weaknesses.

trscookie 03-11-2005 02:01 PM

cheers, what ide's can i get for my system im using fedora? i tried one but couldnt get it working, which is your prefered ide?

which language would be best for network apps? c++?, i.e. a simple chat application? wouldnt c# be better at making games? (im not to interested in making games)

linuxzealot 03-11-2005 02:23 PM

C#(C sharp) is Microsoft's version of C. Ive never used it but you need to be in a Windows environment to use it I think. C/C++ (C preferably) should be just fine for network apps, and for an IDE, you should try Anjuta.

Mega Man X 03-11-2005 02:29 PM

Quote:

Originally posted by linuxzealot
C#(C sharp) is Microsoft's version of C. Ive never used it but you need to be in a Windows environment to use it I think. C/C++ (C preferably) should be just fine for network apps, and for an IDE, you should try Anjuta.
You don't need to be in a Windows Env. to use it. Check out mono:

http://www.mono-project.com/Main_Page

and I agree, anjuta is pretty sweet :)

trscookie 03-11-2005 02:30 PM

cheers

itsme86 03-11-2005 03:25 PM

The problem with C# is that it relies on a framework and C# programs run slower than C/C++ programs. It kind of works like Java.

If you want fast, portable, stand-alone programs I'd venture into C++ or C.

Etor 03-15-2005 06:42 PM

Its Better C++
 
If your'e starting to learn how to program it's better to star from basics (i mean C) then proceed to something more complex (like C++). But If you wanna know what language it's more powerfull the answer = C++

Mega Man X 03-16-2005 06:02 PM

Re: Its Better C++
 
Quote:

Originally posted by Etor
If your'e starting to learn how to program it's better to star from basics (i mean C) then proceed to something more complex (like C++). But If you wanna know what language it's more powerfull the answer = C++
This is a very biased comment. The power of one language lies within the compiler, the libraries and above all, what you are actually developing... It's like saying that a Ferrari F50 is more powerful then a US M1A1 Abrams tank, because the Ferrari hits 350km/h while the tank only 67 km/h...


All times are GMT -5. The time now is 05:06 PM.