• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:47
CEST 22:47
KST 05:47
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Finals Preview: Arrival6TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9
Community News
Merivale 8 Open - LAN - Stellar Fest0Chinese SC2 server to reopen; live all-star event in Hangzhou21Weekly Cups (Oct 13-19): Clem Goes for Four3BSL Team A vs Koreans - Sat-Sun 16:00 CET10Weekly Cups (Oct 6-12): Four star herO8
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Chinese SC2 server to reopen; live all-star event in Hangzhou The New Patch Killed Mech! Weekly Cups (Oct 13-19): Clem Goes for Four 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
Merivale 8 Open - LAN - Stellar Fest Tenacious Turtle Tussle RSL Season 3 Qualifier Links and Dates $1,200 WardiTV October (Oct 21st-31st) SC2's Safe House 2 - October 18 & 19
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
Is there anyway to get a private coach? BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Finals Preview: Arrival BSL Team A vs Koreans - Sat-Sun 16:00 CET OGN to release AI-upscaled StarLeague from Feb 24
Tourneys
[ASL20] Grand Finals ASL final tickets help Small VOD Thread 2.0 [Megathread] Daily Proleagues
Strategy
Roaring Currents ASL final Simple Questions, Simple Answers Relatively freeroll strategies BW - ajfirecracker Strategy & Training
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Korean Music Discussion Series you have seen recently... Movie Discussion!
Sports
2024 - 2026 Football Thread MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Benefits Of Limited Comm…
TrAiDoS
Sabrina was soooo lame on S…
Peanutsc
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1729 users

Learning C/C++ from beginning?

Blogs > stalife
Post a Reply
1 2 3 Next All
stalife
Profile Blog Joined June 2006
Canada1222 Posts
January 21 2010 09:19 GMT
#1
which books would you guys recommend for picking up C/C++ from the beginning? I started with Java, and I'm not really good at it, but I can write some codes.. I'd like to pick up C/C++ as well to start some basic projects of my own.

Any recommendations?? Thanks!

****
www.memoryexpress.com
keV.
Profile Blog Joined February 2009
United States3214 Posts
January 21 2010 09:28 GMT
#2
A billion good C and C++ books. IMO, start with C and practice with data structures; linked lists, binary trees, memory managers etc... After that knowing some Java and C you will pick up C++ very fast.
"brevity is the soul of wit" - William Shakesman
haduken
Profile Blog Joined April 2003
Australia8267 Posts
January 21 2010 09:28 GMT
#3
www.cplusplus.com

Better than any book.

To make it useful

Pick up a book that teaches you frameworks once you are done.

Qt, Visual C++, etc.. and learn libraries such as boost...

Understand the strength of C/C++ versus say Java. Understand the application of such strength where it fits. Understand the downfall and weakness of C/C++.
Rillanon.au
imDerek
Profile Blog Joined August 2007
United States1944 Posts
January 21 2010 09:41 GMT
#4
c++: the book by bjarne stroustrup the author himself.

go with c first though
Least favorite progamers: Leta, Zero, Mind, Shine, free, really <-- newly added
Marradron
Profile Blog Joined January 2009
Netherlands1586 Posts
January 21 2010 10:02 GMT
#5
For what purpose ?

You might as well learn c# or something like that. seems a bit more advanced than c++
Aim Here
Profile Blog Joined December 2009
Scotland672 Posts
Last Edited: 2010-01-21 10:08:35
January 21 2010 10:05 GMT
#6
On January 21 2010 18:41 imDerek wrote:
c++: the book by bjarne stroustrup the author himself.

go with c first though


I disagree. If you're planning on writing C++, then learn it straight off. C++ is superficially a superset of C, but the philosophy and the mindset of writing C++ code is very different from that needed for C code.

Plus, old C hands are likely to get into the bad habit of using C-isms, like malloc/free or pointer manipulation, rather than use the C++ variants.

Not that I'm opposed to learning C - C is a much nicer, cleaner language than C++ and is worth learning as the only low-level language you really need. C++ on the other hand, unless you have a specific need for it, I'd recommend saving all that memory space you'd use for C++ and using Java or Python or C# or something instead...
BlissX1
Profile Blog Joined October 2009
United States328 Posts
January 21 2010 10:16 GMT
#7
C++ and C and C# are easy TBA. i would suggest you learn java first, then Python. Then see if you still want to learn C++ and what not. if so, it will be easy. Java is already easy, Python is amazing. all the C stuff looks like total uselessness compared to Python cause Python is so efficient. That's why NASA uses it. C is nice though, but i suggest dont learn it for the first time. get some experience first. it will make it much easier.
XtremeOneZ 4 Life Bliss[x.1]
Amnesty
Profile Joined April 2003
United States2054 Posts
January 21 2010 10:56 GMT
#8
Accelerated C++

Pretty good book. Actually uses C++
The sky just is, and goes on and on; and we play all our BW games beneath it.
Aim Here
Profile Blog Joined December 2009
Scotland672 Posts
January 21 2010 11:08 GMT
#9
I forgot to recommend a book for the OP, and so I suppose somebody had better recommend K&R as the definitive book on straight C, and unrecommend anything by Herbert Schildt, whose books are both very popular and yet so egregiously wrong that they spawned a jargon file entry.
iaretehnoob
Profile Joined June 2004
Sweden741 Posts
January 21 2010 11:08 GMT
#10
On January 21 2010 19:16 Bl1ss wrote:
Fortran is amazing. all the C stuff looks like total uselessness compared to Fortran cause Fortran is so efficient. That's why NASA uses it.
mptj
Profile Blog Joined June 2009
United States485 Posts
January 21 2010 11:31 GMT
#11
I recommend C for the absolute beginner i'm reading it and it comes with the software and its very interactive. It's kind of old, but it works with vista, while you're running a linux shell.
"Only the Good Die Young"
FirstBorn
Profile Blog Joined March 2007
Romania3955 Posts
January 21 2010 11:33 GMT
#12
On January 21 2010 18:28 haduken wrote:
www.cplusplus.com

Better than any book.


I'm going to second this, VERY usefull site. Helped me a ton with getting the hang of C/C++.
SonuvBob: Yes, the majority of TL is college-aged, and thus clearly stupid.
agorist
Profile Joined July 2009
United States115 Posts
Last Edited: 2010-01-21 11:46:01
January 21 2010 11:42 GMT
#13
C first.
C++ second.



What is your current skillset? Know the difference between the heap and stack? Can you wield pointers?
CTStalker
Profile Blog Joined November 2004
Canada9720 Posts
January 21 2010 11:47 GMT
#14
as has been said, learn C first (and then never learn C++: learn Lisp instead)

this is the book you'll use to learn C
By the way, my name is Funk. I am not of your world
araav
Profile Blog Joined September 2004
Armenia1590 Posts
January 21 2010 11:59 GMT
#15
don't go for C first, don't go for C at all if you are not planning to be a system programmer.

C++ is a moderate OO language and I would recommend doing it this way -
first pick an easy book, not a fancy one, like any book for dummies, get the grasp of pointers, templates, classes, encapsulation, polymorphism, etc

then go for more master series, like take Effective/More Effective C++ books.
then go for expert series, like Alexandresku
then take up the C++ standard and make it your bible

this is your true path of a C++ guru
The flower that blooms in adversity is the most rare and beautiful of all.
Neshapotamus
Profile Blog Joined May 2006
United States163 Posts
January 21 2010 13:18 GMT
#16
http://www.learncpp.com/
Amnesty
Profile Joined April 2003
United States2054 Posts
January 21 2010 13:19 GMT
#17
Disagree with the C first approach. Strongly strongly disagree.
The problem is you don't end up learning C++ next. You learn a bastard child mish mash of both next. Its like you are learning C but with some cool classes thrown in. And its just bad.
It's not that the C language is horrible, its not. The problem is coding C++ in a C POV that is horrific.

The main problem with that is you won't even realize you are writing bad C++ code so you wont even try and fix it. It takes a lot more effort to unlearn C to learn C++
God have mercy if you read a whole chapter on macros in C and then crack open a different C++ book. And a lot of C++ books are really C books in disguise beware.

Start with the book I recomended. I really wished that book came out a lot earlier.

You didnt say why you wanted to learn C++. There might be a better option for you. Right now, im using C#/WPF for my project. It would be a nightmare to do using other options.
The sky just is, and goes on and on; and we play all our BW games beneath it.
Marradron
Profile Blog Joined January 2009
Netherlands1586 Posts
January 21 2010 14:04 GMT
#18
for online c instructions http://www.iu.hio.no/~mark/CTutorial/CTutorial.html#
Flaccid
Profile Blog Joined August 2006
8848 Posts
January 21 2010 14:12 GMT
#19
I don't understand the 'learn C first' idea. Sounds like a waste of time.

What type of projects are you looking to do? I ask because you might want to consider spending that time learning C# (as others have said) instead. The thing about C++ is that it can be tough to jump into because it can be so convoluted. It's just been built upon and built upon until there are 100 different ways to do any one thing and you end up agonizing over which is the 'best' way.

C#, on the other hand is much more intuitive (C++ is only intuitive to those that have coded C++ for the majority of their lives) and you will climb the learning curve much more quickly. Microsoft is pushing it hard too so each update to the framework brings more and more useful goodies. I coded C++ and C for years and have switched almost entirely to C#. Another nice thing about C# is that you can jump right into coding web-applications and ASP for web junk, if that's an ambition of yours.

Anywho, if you do decide to go that route, these guys have a nice series of books for each step of the learning curve: link
I'd rather have a bottle in front of me than a frontal lobotomy
ProoM
Profile Blog Joined May 2009
Lithuania1741 Posts
January 21 2010 14:19 GMT
#20
On January 21 2010 18:28 haduken wrote:
www.cplusplus.com

Better than any book.

To make it useful

Pick up a book that teaches you frameworks once you are done.

Qt, Visual C++, etc.. and learn libraries such as boost...

Understand the strength of C/C++ versus say Java. Understand the application of such strength where it fits. Understand the downfall and weakness of C/C++.

Knock knock. Whos there? -After very long pause- Java.
IMBA - International Mountain Bicycling Association.
1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 11h 14m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
White-Ra 151
SpeCial 143
ProTech88
Railgan 68
JuggernautJason5
StarCraft: Brood War
Britney 20452
Artosis 892
ZZZero.O 161
Dewaltoss 125
NaDa 8
Dota 2
syndereN357
capcasts77
LuMiX1
Counter-Strike
fl0m1633
Super Smash Bros
Mew2King51
Heroes of the Storm
Liquid`Hasu431
Khaldor290
Other Games
FrodaN2867
Grubby2305
Mlord525
Beastyqt523
summit1g413
shahzam300
Skadoodle202
KnowMe151
ViBE2
Organizations
Other Games
gamesdonequick885
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• printf 53
• HeavenSC 38
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21046
Other Games
• imaqtpie1340
• Shiphtur209
Upcoming Events
Afreeca Starleague
11h 14m
Snow vs Soma
Sparkling Tuna Cup
13h 14m
WardiTV Invitational
15h 14m
CrankTV Team League
16h 14m
BASILISK vs Streamerzone
Team Liquid vs Shopify Rebellion
Team Vitality vs Team Falcon
BSL Team A[vengers]
18h 14m
Gypsy vs nOOB
JDConan vs Scan
RSL Revival
20h 14m
Wardi Open
1d 15h
CrankTV Team League
1d 16h
Replay Cast
2 days
WardiTV Invitational
2 days
[ Show More ]
CrankTV Team League
2 days
Replay Cast
3 days
CrankTV Team League
3 days
Replay Cast
4 days
The PondCast
4 days
CrankTV Team League
4 days
Replay Cast
5 days
WardiTV Invitational
5 days
CrankTV Team League
5 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.