• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:59
CEST 05:59
KST 12:59
  • 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] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris34Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
A Eulogy for the Six Pool BoxeR's Wings Episode 2 - Fan Translation Greatest Players of All Time: 2025 Update #1: Maru - Greatest Players of All Time Geoff 'iNcontroL' Robinson has passed away
Tourneys
$5,000 WardiTV Summer Championship 2025 Maestros of The Game—$20k event w/ live finals in Paris $5,100+ SEL Season 2 Championship (SC: Evo) Esports World Cup 2025 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
Post ASL20 Ro24 discussion. BGH Auto Balance -> http://bghmmr.eu/ No Rain in ASL20? How do I speak directly to Coinbase?1-(888)-419-97 Recent recommended BW games
Tourneys
[ASL20] Ro24 Group F [IPSL] CSLAN Review and CSLPRO Reimagined! [ASL20] Ro24 Group D [ASL20] Ro24 Group E
Strategy
Muta micro map competition Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2500 users

Learning C/C++ from beginning? - Page 2

Blogs > stalife
Post a Reply
Prev 1 2 3 Next All
Cloud
Profile Blog Joined November 2004
Sexico5880 Posts
Last Edited: 2010-01-21 14:36:10
January 21 2010 14:19 GMT
#21
c/c++ how to program by deitel&deitel.

Imo. Don't waste your time in C

Just like, if you were starting with engineering and wanted some background. Don't start with html, learn c++ or java or algorithms at least. Leave html for the tools.
BlueLaguna on West, msg for game.
EsX_Raptor
Profile Blog Joined February 2008
United States2801 Posts
January 21 2010 14:25 GMT
#22
"A Book on C : Programming in C", 4/e, A. Kelley & I. Pohl, 1998

There's no better book than that one to learn C.
SilverSkyLark
Profile Blog Joined April 2008
Philippines8437 Posts
January 21 2010 14:26 GMT
#23
Go start with C++ - that's depending on your skill of course.

You can do a whole lot more stuff with C++ as compared to C.

"If i lost an arm, I would play w3." -IntoTheWow || "Member of Hyuk Hyuk Hyuk cafe. He's the next Jaedong, baby!"
CTStalker
Profile Blog Joined November 2004
Canada9720 Posts
January 21 2010 14:56 GMT
#24
how is learning C first a waste of time? lol. if you learn C you'll have no problem picking up java, python, javascript, actionscript, ruby, etc etc. and if you learn lisp, you'll actually be able to take advantage of the functional features of those languages, like closures and other first-class jazz.

learning C++ is a waste, because it's such a terribly designed language. the feature set is massive, and having to manually allocate memory in a language that deals with high-level concepts like polymorphism is really stupid.

that's my incredible bias, anyway. i know google uses c++ a lot, and if you want to work with directx or opengl, you'll need it. but if you want to program for the web: it's a waste of time.

and proom, jokes like that stopped being funny like 8 years ago. gc and the jvm have come a long way
By the way, my name is Funk. I am not of your world
spitball
Profile Blog Joined August 2008
Australia81 Posts
January 21 2010 15:08 GMT
#25
On January 21 2010 23:56 CTStalker wrote:
how is learning C first a waste of time? lol. if you learn C you'll have no problem picking up java, python, javascript, actionscript, ruby, etc etc. and if you learn lisp, you'll actually be able to take advantage of the functional features of those languages, like closures and other first-class jazz.


I think what they mean is if you plan on learning C++ then you shouldn't think of C as some kind of stepping stone.

Anyway, if you don't end up going with C++ then I would recommend either Python or Ruby. I think both are good languages to start with.
Cambium
Profile Blog Joined June 2004
United States16368 Posts
January 21 2010 15:53 GMT
#26
Thinking in C++
Effective C++

Hands down.
When you want something, all the universe conspires in helping you to achieve it.
Adeny
Profile Blog Joined January 2009
Norway1233 Posts
January 21 2010 16:11 GMT
#27
On January 21 2010 23:56 CTStalker wrote:
how is learning C first a waste of time? lol. if you learn C you'll have no problem picking up java, python, javascript, actionscript, ruby, etc etc. and if you learn lisp, you'll actually be able to take advantage of the functional features of those languages, like closures and other first-class jazz.

learning C++ is a waste, because it's such a terribly designed language. the feature set is massive, and having to manually allocate memory in a language that deals with high-level concepts like polymorphism is really stupid.

that's my incredible bias, anyway. i know google uses c++ a lot, and if you want to work with directx or opengl, you'll need it. but if you want to program for the web: it's a waste of time.

and proom, jokes like that stopped being funny like 8 years ago. gc and the jvm have come a long way


C will teach you java better than C++? What are you drinking son, first of all the syntaxes are relatively similar and won't give you any problems. Second of all, OOP. Nowadays I see no reason to learn C unless you're dead set on building OSes, in which case, learn C++ first anyways then downgrade to C. Until you get to learning OOP in C++, you're pretty much learning the exact same thing as you would be learning in C anyways. Just learn the basics of C++ and then take it from there.
2Pacalypse-
Profile Joined October 2006
Croatia9509 Posts
January 21 2010 16:26 GMT
#28
These C bashers reminds me so much of this article.

Moderator"We're a community of geniuses because we've found how to extract 95% of the feeling of doing something amazing without actually doing anything." - Chill
CTStalker
Profile Blog Joined November 2004
Canada9720 Posts
Last Edited: 2010-01-21 16:38:12
January 21 2010 16:32 GMT
#29
the guy already knows java. learning C will solidify his knowledge of C-like languages. he already (presumably) has a grasp on OOP -- he certainly doesn't need the cluster-fuck that is C++ to teach him that. C is simple, C is straight-forward. and it will help you wherever you program imperatively

edit: actually i re-read the OP, and it sounds like he's just interested in learning programming as a hobby? if that's the case, object-oriented programming won't mean a dang to him anyway
By the way, my name is Funk. I am not of your world
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 21 2010 17:08 GMT
#30
I am currently reading the C++ Programming language by Stroustrup. I have been using C++ for years now, with my most important source being the internet (cplusplus is a good reference site indeed, but I doubt it'll help you with learning how to write good code).

The book by Stroustrup probably is a bit hard if you are just starting, but depending on how much Java you actually know it could be enough.

I strongly advise against learning C before C++. At least don't spend more than a month on it. You WILL pick up bad habits and it'll be hard to get rid of the C mentality and into object orientation. You will write bad C++ code if you start with C. I'm talking out of my own experience and know several people who had/have that problem. Because the languages are so similar syntactically you will have a hard time switching your progamming mentality.
C++ is not harder to learn than C. Any decent C++ book/tutorial will still teach you how to do imperative programming (like C) but it won't go into detail as much as a C book would. There is not too much to gain from purely imperative programming anyways (large imperative projects are almost unmanageable).

After some time I found the c++-faq-lite which imo is a really great source if you got a decent understanding of the syntax and want to get a proper C++ mentality. All the reference sites are nice and all, but after reading this faq my C++ immediately became MUCH more clean and efficient. Read it.

C++ isn't very useful if you don't have to worry about performance. Pick any of the garbage collected and well portable languages if you don't need performance.
If you have a good reason to disagree with the above, please tell me. Thank you.
celeste
Profile Joined January 2010
England45 Posts
January 21 2010 17:18 GMT
#31
I completely back cpluscplus.com and the Accelerated C++ book

learncpp.com is also a really nice site for learning, the author answers virtually every question made in the comments

I really hope this thread doesn't degenerate into an argument over which language to learn
dinmsab
Profile Blog Joined January 2008
Malaysia2246 Posts
January 21 2010 17:19 GMT
#32
On January 21 2010 23:19 Cloud wrote:
c/c++ how to program by deitel&deitel.

Imo. Don't waste your time in C

Just like, if you were starting with engineering and wanted some background. Don't start with html, learn c++ or java or algorithms at least. Leave html for the tools.


I've learned c++, java and c with Deitel books. Would totally recommend those.
..
raylu
Profile Joined August 2006
United States6 Posts
January 21 2010 18:08 GMT
#33
On January 21 2010 19:02 Marradron wrote:
For what purpose ?

You might as well learn c# or something like that. seems a bit more advanced than c++

What are you talking about? C# is certainly newer, but not more advanced.

I second the recommendation for K&R for C. That said, if you're only interested in programming as a hobby and are only interested in developing on Windows, C# is probably a better choice than either C or C++.
o.0?
JiYan
Profile Blog Joined February 2009
United States3668 Posts
January 21 2010 18:15 GMT
#34
xD i thought this was about starcraft
QuickSandSlowly
Profile Blog Joined January 2008
China95 Posts
January 21 2010 18:25 GMT
#35
Google Karel, also C++ for everyone.
jijibulei ggplay
gumbum8
Profile Blog Joined December 2008
United States721 Posts
January 21 2010 19:12 GMT
#36
I have a question while we're on the subject...
Say I'm a programming n00b. The best I've ever done is making a guessing game with numbers 1-20 in python.
My goal is to make fun or useful programs with programming, not necessarily full fledged games, but just useful programs that could serve some general purpose on my computer.
Anyone have a language recommendation?
but really, has anyone REALLY been far even as decided to use even go want to do look more like?
Slithe
Profile Blog Joined February 2007
United States985 Posts
January 21 2010 19:20 GMT
#37
I think learning C is much better for gaining good fundamentals and understanding basic principles of programming.

C++ is far too bulky and cluttered for a beginner in my opinion. I don't think you'll gain much by learning C++ unless you have a specific purpose or reason for using it.

If learning through books isn't your cup of tea, the lectures for the introductory CS courses at UC Berkeley are available via youtube. The first few lectures of CS61C go over basic C concepts.

Also, as a Berkeley grad I'm obligated to recommend learning Lisp/Scheme first, in which case you should go through the CS61a series of lectures.

Aim Here
Profile Blog Joined December 2009
Scotland672 Posts
January 21 2010 19:23 GMT
#38
Python is actually a good choice for a general programming language. It's a very nice language
with clean syntax, and because it's popular among developers, there are now plenty of libraries that allow you to do almost anything you like in python, including some fairly popular programs - most bittorrent clients I've ever used have been written in it, for example, and civ4 used it as the main scripting language.

It doesn't hurt to learn a few other languages, anyways, to see how the rest of the world lives, but you've started off well!

uberMatt
Profile Joined May 2004
Canada659 Posts
January 21 2010 19:23 GMT
#39
k&r for c
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 21 2010 19:39 GMT
#40
On January 22 2010 04:20 Slithe wrote:
I think learning C is much better for gaining good fundamentals and understanding basic principles of programming.

C++ is far too bulky and cluttered for a beginner in my opinion. I don't think you'll gain much by learning C++ unless you have a specific purpose or reason for using it.


I would suggest a hgher-level language than C if all you want is a good understanding of basic principles. Java, Python and the likes probably would be good choices. With C, you'll most likely just end up doing tons of low level stuff, which doesn't teach you a lot of important concepts. Getting good at pointer arithmetics and typecasting is all nice, but it's no basic principle of progamming.

If you start C++ properly and make extensive use of the Standard Library, it isn't bulky/cluttered imo. If you mix imperative and OO programming it indeed is messy.
If you have a good reason to disagree with the above, please tell me. Thank you.
Prev 1 2 3 Next All
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
SEL S2 Championship: Ro16
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 151
RuFF_SC2 134
ProTech98
StarCraft: Brood War
sSak 161
NaDa 75
Aegong 47
Icarus 13
Dota 2
monkeys_forever619
League of Legends
JimRising 696
Counter-Strike
Stewie2K437
Other Games
summit1g9442
shahzam1072
C9.Mang0459
WinterStarcraft406
ViBE126
Hui .102
singsing62
NeuroSwarm59
Mew2King48
Organizations
Counter-Strike
PGL1437
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• practicex 24
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo822
Upcoming Events
LiuLi Cup
7h 1m
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
12h 1m
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
Big Brain Bouts
12h 1m
Iba vs GgMaChine
TriGGeR vs Bunny
Reynor vs Classic
Serral vs Clem
BSL Team Wars
15h 1m
Team Hawk vs Team Dewalt
BSL Team Wars
15h 1m
Team Hawk vs Team Bonyth
Code For Giants Cup
18h 31m
SC Evo League
1d 8h
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
1d 12h
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
1d 14h
SC Evo League
2 days
[ Show More ]
Maestros of the Game
2 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
2 days
Team Bonyth vs Team Sziky
BSL Team Wars
2 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
3 days
Replay Cast
3 days
Sparkling Tuna Cup
4 days
LiuLi Cup
5 days
Replay Cast
5 days
The PondCast
6 days
RSL Revival
6 days
Maru vs SHIN
MaNa vs MaxPax
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
WardiTV Summer 2025
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 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...

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.