LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-03-2008, 03:34 PM   #1
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Rep: Reputation: 32
How do C++ programing


I am using CentOS, I have install GCC and want to learn How to do C programing in Linux.

please help me guyz
 
Old 08-03-2008, 04:37 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
  • Decide on language
  • Read stuff on chosen language (google, say, C tutorial or C++ tutorial, depending on what you decide to study)
  • Make mistakes
  • Puzzle/Worry/Swear
  • Ask questions
  • Learn a bit
repeat some stages
 
Old 08-03-2008, 06:49 PM   #3
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
That's a very generic request. Do you have a specific application in mind? What do you want to accomplish? If you just want to learn C I suggest taking classes, reading books and/or using a search engine to find tutorials.

Some resources:

The Linux Documentation Project
www.cppreference.com
www.cplusplus.com
Lecture notes that you find online
Books, such as "Pointers on C"

C is too large to explain its workings briefly. Libraries increase the use of the C language allowing its application base to be huge.

More links (if you'd also like to learn a little about C++):

http://www.intap.net/~drw/cpp/
http://www.cprogramming.com/tutorial.html
http://www.cs.wustl.edu/~schmidt/C++/
http://www.glenmccl.com/tutor.htm

Here's a search with Google that has many useful results:

http://www.google.com/search?&q=c+tutorial
 
Old 08-03-2008, 10:11 PM   #4
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by salasi View Post
  • Decide on language
  • Read stuff on chosen language (google, say, C tutorial or C++ tutorial, depending on what you decide to study)
  • Make mistakes
  • Puzzle/Worry/Swear
  • Ask questions
  • Learn a bit
repeat some stages

Hey I think its last time u were asking abt Gcc++ problem r8

well, Dont have any basic knowledge of C++ I wanna learn can i find Video tutorial of practice or to learn.
 
Old 08-03-2008, 10:18 PM   #5
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
If want to write program, So can I write C++ in bash shell or I have switch to csh
 
Old 08-03-2008, 10:36 PM   #6
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
The links in post #3 look really great. Some are beginning tutorials, but alot of advanced stuff is introduced in later links on some of those sites.

This is gentle way to start also:
http://www.planet-source-code.com/vb...=2040&lngWId=3

This page links several youtube intro c++ videos, including a nine-part tutorial series:
http://www.youtube.com/watch?v=nziy2_U5JQI

"Top 75" c++ video tutorials on youtube:

http://www.intelligentedu.com/blogs/...-at-youtubecom

Bittorrent link for lots of tutorials:

http://www.bitdig.com/torrent/other/...C-Project.html

But I think the written tutorials will be more instructive in terms of step-by-step introduction and organization of material.

Here is a full-fledged C++ introductory textbook available online:

http://mindview.net/Books/TICPP/ThinkingInCPP2e.html

Also keep in mind that most of the text editors you use have the nice feature of color highlighting c++ code to make it easier to read and understand. You should see it as an option of your editor (like kate, emacs, vim, or joe, and maybe gedit). If you look at the videos above, they use syntax highlighting. That is why all the font does not look the same. You create your programs using the text editors and then compile and run them from the bash shell command line interface.

Here is a link to Indians helping each other learn c++

http://www.c4swimmers.net/portal/Bes...mming_websites

Last edited by ehawk; 08-03-2008 at 11:03 PM.
 
Old 08-03-2008, 10:38 PM   #7
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Quote:
Originally Posted by rahilmaknojia View Post
well, Dont have any basic knowledge of C++ I wanna learn can i find Video tutorial of practice or to learn.
It's easier to find written tutorials for programming than videos. Besides, doing it on your own forces you to experiment and learn on your own, which is a powerful tool

Quote:
Originally Posted by rahilmaknojia View Post
If want to write program, So can I write C++ in bash shell or I have switch to csh
The shell does not matter. If I may, I strongly recommend not using Csh and stick with Bash. See this if you're curious as to why: http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Last edited by student04; 08-03-2008 at 10:43 PM. Reason: added last link to csh
 
Old 08-06-2008, 03:06 AM   #8
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
for c++ you dont program in the shell, you use g++ . but don't learn it, it's awful and terrible. learn BASIC.
 
Old 08-06-2008, 06:04 AM   #9
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Quote:
Originally Posted by resetreset View Post
...but don't learn it, it's awful and terrible. learn BASIC.
Please explain yourself resetreset, this is not the first post I have seen you express such comments. Are you referring to C++ being a bad beginners language or just a bad language in general. Do you actually know any C++ or is this your unfounded opinion?

Last edited by dmail; 08-06-2008 at 06:05 AM.
 
Old 08-06-2008, 07:51 AM   #10
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Quote:
Originally Posted by resetreset View Post
for c++ you dont program in the shell, you use g++ . but don't learn it, it's awful and terrible. learn BASIC.
Program in the shell? 'g++' is a command to compile C++ programs, which you can execute from the command line (shell). Or, you can use a graphical interface such as an IDE to invoke it for you (by clicking a "Compile" button).

Not programming C++ programs in a shell and instead using 'g++' isn't a logical comparison.

And the original poster was asking about C in the first place, not C++. The links I provided just happen to have some mixings of both languages.

-AM
 
Old 08-06-2008, 07:54 AM   #11
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
Posts: 669

Rep: Reputation: 34
Quote:
Originally Posted by ehawk View Post
This page links several youtube intro c++ videos, including a nine-part tutorial series:
http://www.youtube.com/watch?v=nziy2_U5JQI

"Top 75" c++ video tutorials on youtube:

http://www.intelligentedu.com/blogs/...-at-youtubecom
I guess I was wrong...

:-X
 
Old 08-07-2008, 02:19 AM   #12
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
for c++ you dont program in the shell, you use g++ . but don't learn it, it's awful and terrible. learn BASIC.
I think that most professional programmers would say that Basic is terrible and that's not where you should start. And then, if you question them further, they will admit that they started on Basic...

A lot depends on what you are trying to accomplish. You could learn a lot from Basic, but would quickly get to the point at which Basic becomes the problem rather than the solution, so why not start from something that has the possibility of taking you further?

Note that C++ (title) and C (original post) are different things and you would have to decide on one or the other to learn. As C++ is based on C, learning C would certainly make it easier to learn C++. On the other hand, you might consider C++ to be more 'modern'.
 
Old 08-07-2008, 08:25 AM   #13
rahilmaknojia
Member
 
Registered: Dec 2007
Distribution: RHEL6, CentOS6.3
Posts: 188

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by salasi View Post
I think that most professional programmers would say that Basic is terrible and that's not where you should start. And then, if you question them further, they will admit that they started on Basic...

A lot depends on what you are trying to accomplish. You could learn a lot from Basic, but would quickly get to the point at which Basic becomes the problem rather than the solution, so why not start from something that has the possibility of taking you further?

Note that C++ (title) and C (original post) are different things and you would have to decide on one or the other to learn. As C++ is based on C, learning C would certainly make it easier to learn C++. On the other hand, you might consider C++ to be more 'modern'.
Thankz my friend I will try my best it really complicated to learn by self.
 
  


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
programing in linux prabhat kumar Linux - Newbie 8 05-04-2008 03:39 AM
Programing in Linux sdat1333 Linux - Newbie 4 12-14-2004 11:23 PM
C programing question israel Programming 2 11-29-2004 06:05 AM
flash programing hellbound201 Linux - Software 2 11-22-2004 07:16 PM
Programing in Linux jimbob1989 Programming 1 10-10-2004 10:53 AM

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

All times are GMT -5. The time now is 08:51 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