|
|
|
#1 (permalink) | |||||||||||||
|
Overclocker in Training
|
Yo
__________________![]() Well I'm wondering what one should learn first, C or C++ ? I saw people on the net (youtube comments) saying to start with C++ and then C, I was like "huh ?" I don't know the differances yet, but I'm sure C is less complex, and perhaps I'm wrong but C++ is just an extension pack lol ? Anyway, I started learning the hello world, and strings and memory allocation for characters in C (3 little tutos), and I was wondering how to keep working my way up. It looks more interesting than sudoku Thanks!
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
Graphics Card Aficionado
![]() |
C is more complex and a relatively low-level language. It doesn't have classes and many other things that C++ brings along. C++ was made after C as a sort of update (hence the appended "++." to increment a variable (say x) in C or C++, you type x++. Play on words of sorts.)
More info. Overall they're similar in syntax for the most part, but I would focus on learning C++, and some C knowledge will come along obviously, but i doubt you'll end up using it that much.
__________________
I'm not terribly active at the moment...I'm caught up in school and such, so you have my advance apology if I don't respond to a post/PM the way I usually do. Project: Sruth de athrú - An un-decided and slow-moving techstation project.
|
|||||||||||||
|
|
|
|
|
#3 (permalink) | ||||||||||||
|
New to Overclock.net
![]() |
Depends what you want to do with it.
__________________As far as the whole C thing goes I started with C# then C++ and now C. If you want to make GUIs then C# I personally like C more than C++ but it's just a preference thing.
|
||||||||||||
|
|
|
|
|
#4 (permalink) | |||||||||||||
|
Programmer
![]()
Join Date: Jun 2008
Location: Huntington Beach, CA
Posts: 784
Rep: 61
![]() Unique Rep: 55
Trader Rating: 0
|
I also personally like stdio.h more then iostream. You can use C headers and C++ headers interchangeably if you want in a C++ project. You can code purely C in a C++ project if you want. Its up to you and whatever is easier for you to learn.
__________________
Join the deaf club if you are deaf http://www.overclock.net/off-topic/5...deaf-club.html
|
|||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
Programmer
![]() |
I think you should start off with C first and get that foundation down, that will help when learning C++ making it even easier. Overall though both are great languages and if you learn one or the other first doesn't really matter in general. I personally started with C, but I'm enjoying C++ even more.
__________________
Steam - KForKorben X-Fire - kforkorben I did Latty's Linux Challenge and I now have tried Linux! ![]() I am 54% addicted to Counterstrike. What about you? 4Ghz
|
|||||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||||
|
Programmer
![]()
Join Date: Jan 2007
Location: Lake Erie + MI + OH = ME!
Posts: 1,009
Rep: 57
![]() Unique Rep: 49
Trader Rating: 0
|
Quote:
Long story short, you can use C with a C++ compiler no problem but sometimes there can be minute differences so if you are going to do anything complicated, like parallel computing through OpenMP, it is preferable to use the correct compiler. Sad part is that the book we used taught everything in C but our instructions on the compiler used the C++ version without specifying there was a difference so I thought I was using the correct one.
__________________
Come join OCNs 48-hour Fold-a-Thon NOW!! Have you ever tried simply turning off the TV, sitting down with your children, and hitting them? From American Dad: I touched her hand... her hand touched her boob. By the transitive property, I got some boob! Algebra's awesome! EVE (Kirmie, Brian Fellow) | ogame.org (Univ 35, Unv 41) | Gladiatus.us (Serv 7) | NativeKingdoms (Epatlan) | DoD:S
|
|||||||||||||
|
|
|
|
|
#7 (permalink) | ||||||||||||||
|
New to Overclock.net
|
Quote:
|
||||||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||
|
4.0ghz
![]() |
My
![]() Learn C first. Before C++ was "C++" it was called "C with classes". You can learn to write programs and make stuff happen faster learning c++ first. You will understand what the what is really going on if you learn C first.
__________________
_₌=The Q9550 Club=₌_
1.16VID Q9550 @ 4.0Ghz (and counting) - 8k ppd GPU - GPUz-Validation Overclock.net Headphone Club: Because perfect hair is overrated. EP45-UD3P/R M.I.T. Template Team Fortress 2 Club
|
|||||||||||
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|