LinuxQuestions.org
Visit Jeremy's Blog.
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-19-2015, 07:34 AM   #1
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Rep: Reputation: Disabled
C and C++, how can I start?


I want to start programming, but I dont know which is the best way to start C or C++. and if you know good video tutorials, please , write below
 
Old 08-19-2015, 07:39 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
just google and choose what you like. There are a lot of different approaches.
http://www.linuxquestions.org/linux/...grams_on_Linux
http://www.linuxquestions.org/linux/...ams_on_Linux_0
 
1 members found this post helpful.
Old 08-19-2015, 10:30 AM   #3
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 102
Blog Entries: 1

Rep: Reputation: Disabled
I would recommend you to go through Dennis Ritchie and every time you refer to some author revert back and refer Ritchie again. Every time you refer Ritchie you will find something new and do not forget to cover every author if you want to be an expert.
 
1 members found this post helpful.
Old 08-21-2015, 04:29 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Right here looking at the sticky note at the top of this forum.

Personally I recommend you understand C first, because you can also move "up" to C++. C++ has more, added concepts, but also abstractions which extend beyond the C language. There's also many directed intentions for C++ language which lean towards object oriented design. They're both fine languages and I'd learn them both, I'd just start by doing practice programs and exercises with C first and then moving to C++, probably using each of them a bit until you feel you understand them both well.

Further: "doing" is excellent learning. So I recommend the best approach is to load a Linux desktop distribution with the "build-essentials" package installed. For most typical desktop distros, you'll find that it's already there. And then you can use GCC to compile C and C++ programs. As you write stuff, you can post what you've done, indicate where you're stuck, or where you have a question and people here will certainly offer their thoughts to help you out.

Happy programming!
 
1 members found this post helpful.
Old 08-21-2015, 05:21 PM   #5
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Trying examples is ok but can be dull and not very inspiring, try to come up with a project idea for yourself, even if its already done, finding out how to code all the bits and peices of your project and ending up with an application all your own is very fulfilling, many people start with a text editor as a simple one is quite easy to start off and shows quick results, and there are a lot of editor example code that you can browse, and you can add the little bells and whistles that no other editor has.
 
1 members found this post helpful.
Old 08-21-2015, 05:22 PM   #6
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by giuna View Post
I want to start programming, but I dont know which is the best way to start C or C++. and if you know good video tutorials, please , write below
What rtmistler and Keith Hedger both said, and learn C first. If you learn C++ first you will likely find C to be more difficult and conclude that it is "lacking" something, which would not be correct, and you will miss the point of it all.

If you learn C first you will see its power and then find that C++ extends C, but it is also intended for a different basic programming mindset - you will get the best of both worlds!

And learn from the books and the keyboard - video is no substitute** for the printed word or the fingertips on the keys! If you must use video, learn to think of it as a limited usefulness supplement (my humble opinion).

**Why? There are many reasons, but I think it comes down to this: With all things, you get out of a thing in proportion to the effort you put into it. Video fundamentally requires no effort to watch, and the knowledge gained tends to be in that same proportion.

Last edited by astrogeek; 08-21-2015 at 05:35 PM. Reason: Typos, nod to Keith Hedger who typed faster than I!
 
1 members found this post helpful.
Old 08-22-2015, 02:55 AM   #7
rpittala
Member
 
Registered: Jan 2012
Location: PUNE
Distribution: SunOS sun4v sparc sun4v Solaris
Posts: 102
Blog Entries: 1

Rep: Reputation: Disabled
As you are at the start of learning C and C++, learn some basics by referring to any of the authors (or) you can refer the below links:

http://www.geeksforgeeks.org/c/

+ Move on to C++ basics

+ Move on to C/C++

and

Take a GeeksQuiz.

If you have any question during the process of your learning come back and post a question here.
 
1 members found this post helpful.
Old 08-22-2015, 09:38 AM   #8
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rpittala View Post
As you are at the start of learning C and C++, learn some basics by referring to any of the authors (or) you can refer the below links:

http://www.geeksforgeeks.org/c/

+ Move on to C++ basics

+ Move on to C/C++

and

Take a GeeksQuiz.

If you have any question during the process of your learning come back and post a question here.

oh, thank you. this seems very good web site for learning and quiz is amazing. thank you for your attention!
 
Old 08-22-2015, 09:40 AM   #9
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
What rtmistler and Keith Hedger both said, and learn C first. If you learn C++ first you will likely find C to be more difficult and conclude that it is "lacking" something, which would not be correct, and you will miss the point of it all.

If you learn C first you will see its power and then find that C++ extends C, but it is also intended for a different basic programming mindset - you will get the best of both worlds!

And learn from the books and the keyboard - video is no substitute** for the printed word or the fingertips on the keys! If you must use video, learn to think of it as a limited usefulness supplement (my humble opinion).

**Why? There are many reasons, but I think it comes down to this: With all things, you get out of a thing in proportion to the effort you put into it. Video fundamentally requires no effort to watch, and the knowledge gained tends to be in that same proportion.
thank you very much. I'll take your advise thank you
 
Old 08-22-2015, 09:42 AM   #10
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
Trying examples is ok but can be dull and not very inspiring, try to come up with a project idea for yourself, even if its already done, finding out how to code all the bits and peices of your project and ending up with an application all your own is very fulfilling, many people start with a text editor as a simple one is quite easy to start off and shows quick results, and there are a lot of editor example code that you can browse, and you can add the little bells and whistles that no other editor has.
I think your right. I was interesting how was built simple keylogger in C++ and when I saw and try understand code itself, I learned so much. thank you for your advice
 
Old 08-22-2015, 09:44 AM   #11
giuna
LQ Newbie
 
Registered: Aug 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Right here looking at the sticky note at the top of this forum.

Personally I recommend you understand C first, because you can also move "up" to C++. C++ has more, added concepts, but also abstractions which extend beyond the C language. There's also many directed intentions for C++ language which lean towards object oriented design. They're both fine languages and I'd learn them both, I'd just start by doing practice programs and exercises with C first and then moving to C++, probably using each of them a bit until you feel you understand them both well.

Further: "doing" is excellent learning. So I recommend the best approach is to load a Linux desktop distribution with the "build-essentials" package installed. For most typical desktop distros, you'll find that it's already there. And then you can use GCC to compile C and C++ programs. As you write stuff, you can post what you've done, indicate where you're stuck, or where you have a question and people here will certainly offer their thoughts to help you out.

Happy programming!
thank you so much, I'll take your advice
 
  


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
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
How to start bash commands automatically every time I start the computer brgsousa Linux - Software 2 10-18-2007 11:26 AM
Computer doesn't start; fans start then stop; 1 long, 1 short beep PatrickMay16 General 18 09-26-2007 07:48 PM
fc2-gnome : Applications dont start / very slow to start nox104 Linux - Software 0 08-18-2004 08:53 PM
Can I gett KPPP to start when I start a browser on a network machine? duffboygrim Linux - Networking 0 03-25-2004 04:49 PM

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

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