LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-24-2005, 09:42 PM   #1
linetnew
Member
 
Registered: Apr 2005
Location: India
Posts: 32

Rep: Reputation: 15
newbie to c++


hello,
I am newbie in c++ and want to have good proggramer in it. I want to ask some question
1)I downlaoded some .cpp files and found some have iostream.h while some have only
#include <iostream>
using namespace std;
whats difference between them?
2) former include works in turbo C++ compiler but later not works why??
3) which is most used good debugging facility provider compiler for Windows and Linux to do c++ programming?
4) Also in world C++ programming mean its console based programming or visual c++ programming?
5) which is mostly used way to do c++ programming on console(Dos based) or on windows?
Thanks,
rahul

PS. Sorry if anybody dont like questions asking about windows environment
 
Old 04-24-2005, 10:10 PM   #2
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Rep: Reputation: 30
hi, pal... maybe I'm not the best one to give an advise, 'coz I'm just trying to understand how to compile c++ under linux..
..but my advise is : it would be easier if you begin writting programs in a IDE like borland turboC++ under windows. It's very popular, have many tools for debugging and a very copmlete help file.. and all in just one program.
good luck!
 
Old 04-24-2005, 11:02 PM   #3
rununix
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Rep: Reputation: 0
you should not use <iostream.h>, use <iostream>.

you should not trick yourself into using an IDE right away. learn using good all gvim editor and gcc/g++ commands. Then learn make.

ONLY afterward take up the IDE, because IDE MAKES YOU STUPID!
 
Old 04-24-2005, 11:06 PM   #4
rununix
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Rep: Reputation: 0
also why are you using turbo C++, just get Fedora Core 3. Install everything and it will be a good ready to go development setup with KDevelop and etc.
 
Old 04-24-2005, 11:07 PM   #5
rununix
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Rep: Reputation: 0
On linux you should learn how to use 'gdb' at command line and if you want gui then use ddd(gdb gui front end).
 
Old 04-24-2005, 11:14 PM   #6
linetnew
Member
 
Registered: Apr 2005
Location: India
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for replys
Now can i know what are main parts to learn in C++ to become good programmer. I know class, inheritence, polymorphism, operator overlading what else i must learn?
Also what is STL?
 
Old 04-24-2005, 11:33 PM   #7
rununix
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Rep: Reputation: 0
http://www.csl.mtu.edu/cs2141/www/Home.html

1. Complete all assignments provided in that course.
2. Use class notes and class examples. They will bail you out.
3. STL:standard template library. There are examples availabe in class examples and class notes.
 
Old 04-25-2005, 09:03 AM   #8
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
At all costs, STAY AWAY FROM TURBO C++!! Turbo C++ is an outdated DOS compiler that has been around since long before the ANSI/ISO C++ standards were established. It not supporting <iostream> is just one example. (Which is the standard, btw. iostream.h is deprecated.)

There are a number of good free compilers for Windows, so there is no reason to be using it anyway. (Both Borland and Microsoft have free command-line compilers you can download, and you can get the GNU compiler with the Cygwin tools or with DevC++.)
 
  


Reply



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
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 01:50 AM
Linux semi-newbie and Wine vary newbie geovolt_os1 Linux - Software 4 04-19-2005 11:03 AM
newbie;I am a linux newbie who has installed slackware and have run into a few proble MollyJolly Slackware - Installation 6 06-01-2004 11:21 AM
How To Update To Slackware-Current For a Newbie, By a Newbie :) windsok Slackware 1 09-18-2003 08:53 PM
ipchains newbie. Kernel newbie skeletal29 Linux - Security 3 06-02-2002 03:30 AM

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

All times are GMT -5. The time now is 05:56 AM.

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