LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2005, 01:31 PM   #1
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Rep: Reputation: 30
Question 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
 
Old 03-11-2005, 01:47 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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.
 
Old 03-11-2005, 02:01 PM   #3
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
Smile

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)
 
Old 03-11-2005, 02:23 PM   #4
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Rep: Reputation: 15
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.
 
Old 03-11-2005, 02:29 PM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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
 
Old 03-11-2005, 02:30 PM   #6
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
Talking

cheers
 
Old 03-11-2005, 03:25 PM   #7
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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.
 
Old 03-15-2005, 06:42 PM   #8
Etor
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
Cool 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++
 
Old 03-16-2005, 06:02 PM   #9
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Thumbs down 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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Including header files and source files for classes Feenix Programming 8 09-28-2005 10:53 AM
header files kokain Linux - General 1 03-20-2005 02:05 AM
gcc header files and cpp files? EchO Linux - Software 3 03-01-2005 01:14 AM
C++ Header files mrpc_cambodia Programming 1 12-05-2004 10:08 PM
c header files in linux in place of header files in windows? harun_acs Programming 1 03-17-2004 02:24 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration