Jump to content

  • Log In with Google      Sign In   
  • Create Account


How did you learn C++?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
32 replies to this topic

#1 buttnakedhippie   Members   -  Reputation: 133

Like
0Likes
Like

Posted 21 February 2014 - 01:35 AM

I'm just curious for when I move from C# to C++ and what might help.



Sponsor:

#2 Kimmi   Members   -  Reputation: 533

Like
2Likes
Like

Posted 21 February 2014 - 02:41 AM

I started a implement a FE-solver + UI in c++ as my first c++ project ( 2001 with MFC, not the best choise as a first project I have to say ).

 

So I had a target, motivation and a hard timeline. Then I looked into the concepts provided by c++ which seem to be the best approach and played around with it until it worked.

 

In my experience it is much easier to learn a new language with a real project than just reading a book. You can transfer the stuff you read into a real solution which solves a real problem. And you can lear how the toolchain works. 

 

Hope that helps ...

 

Kim


A complicate solution may indicate a not understood problem.


@KimKulling

#3 greenpig83   Members   -  Reputation: 326

Like
-2Likes
Like

Posted 21 February 2014 - 04:11 AM

C++ is not that hard in dos time. When I learn pascal and then move to C++, it's not that different. Because in Pascal u still can use OOP...

But things get so headache when windows release! To write a hello world app (with form) , it need 100-200 code line...No internet, only thick book, that really scare me. Sometime I just type 1-> 2 page of code then run to see what it really does. 

 

Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen ! 



#4 Aardvajk   Crossbones+   -  Reputation: 5790

Like
6Likes
Like

Posted 21 February 2014 - 05:08 AM

C++ is not that hard in dos time. When I learn pascal and then move to C++, it's not that different. Because in Pascal u still can use OOP...

But things get so headache when windows release! To write a hello world app (with form) , it need 100-200 code line...No internet, only thick book, that really scare me. Sometime I just type 1-> 2 page of code then run to see what it really does. 

 

 

This is the difference between learning the language and learning to use an API. Win32 API is horrible, yes, but learning Win32 API is little to do with learning C++, since it is a C API.

 

Its better when learning the language to concentrate on a simpler API, such as the standard library methods for console input/output.

 

 

Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen !  

 

This is not a good way to learn a language IMHO


Edited by Aardvajk, 21 February 2014 - 05:09 AM.


#5 ZeroBeat   Members   -  Reputation: 519

Like
0Likes
Like

Posted 21 February 2014 - 05:17 AM

I bought Sam's Teach Yourself C++ in 24 hours. Probably it wasnt the best book..... (It was the only available book in the shop).

With it and xoax.net (video tutorials), I was finaly able to compile and run my applications.

 

I used the lessons to learn how to program and then I would apply my new knowledge by building something small. 

As I got more confident, I started making my own text based games. The book became a reference when I got stuck.

 

Like Kimmi said, its much better to learn something by appling the knowledge to a project.

Start small with console based applications to concentrate more on the standard library and the languange.



#6 Nanook   Members   -  Reputation: 474

Like
0Likes
Like

Posted 21 February 2014 - 05:21 AM

I haven't learend C++ yet, but I first read accelerated C++ about 10 years ago.. After that I've read lots of C++ and programming books, got a computer science degree and have been working with C++ for 4 years now.. I'm also reading lots of articles.. Thats the great thing about it, always something new to learn :)



#7 Nathan2222_old   Members   -  Reputation: -400

Like
-3Likes
Like

Posted 21 February 2014 - 05:37 AM

Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen !

this is equivalent to i've learnt how to read, highlight text, browse the net and use ctrl+c and ctrl+v very well!

C++ is not that hard . . .

it may not be hard but it can get confusing.

UNREAL ENGINE 4:
Total LOC: ~3M Lines
Total Languages: ~32
smile.png
--
GREAT QUOTES:
I can do ALL things through Christ - Jesus Christ
--
Logic will get you from A-Z, imagination gets you everywhere - Albert Einstein
--
The problems of the world cannot be solved by skeptics or cynics whose horizons are limited by the obvious realities. - John F. Kennedy


#8 cdoubleplusgood   Members   -  Reputation: 807

Like
0Likes
Like

Posted 21 February 2014 - 06:21 AM

At university I bought Visual C++ 1.0; must have been 1993. By that time, several printed manuals (10 or more) were included, one of them containing a very well written introduction to C++ (from C to C++).



#9 ProtectedMode   Members   -  Reputation: 1103

Like
1Likes
Like

Posted 21 February 2014 - 07:49 AM

I learned the language by reading tutorials, articles and editing examples from the internet. Also trying out some small things is a good idea from time to time. But I think the way of learning greatly depends on the person. But I think learning how to learn using the internet can be a very useful skill, even if it may take longer.



#10 Álvaro   Crossbones+   -  Reputation: 12365

Like
1Likes
Like

Posted 21 February 2014 - 08:25 AM

I tried to learn C++ on my own twice in the 90s and I failed miserably. Then I got a job where C++ was used and I learned it relatively quickly. One thing that helped a lot was having access to a C++ guru down the hall. Oh, and nobody cared that I didn't know C++ in my job interview: My interviewers were satisfied because I could solve problems and I could program in C.

#11 BHXSpecter   Members   -  Reputation: 1216

Like
0Likes
Like

Posted 21 February 2014 - 08:28 AM

I started with learning C++. I used BASIC for two years while in 7th and 8th grades and in my freshman year of high school I bought C++ for DUMMIES and started learning it (DJGPP/Rhide). Been programming in C++ for nearly 20 years now and to this day I still consider myself a beginner because I know there is always something new to learn. Since learning C++, I have dabbled with learning a multitude of other languages, but have gone back to learning C++ (C++ Primer 5th Ed) to make sure I haven't missed anything that may have changed as I didn't proactively stay up-to-date as I should have in those 20 years.


"Through vengence I was born.Through war I was trained.Through love I was found. Through death I was released. Through release I was given a purpose."


#12 Prototype   Members   -  Reputation: 1299

Like
0Likes
Like

Posted 21 February 2014 - 08:41 AM

Coming from Pascal/Delphi/ASM I was terrified of C++ in the first place, for many reasons. Then the Quake2 source was released, so I stayed up all night and roamed the city on sunday morning to get a copy of VC6. Compiling and editing my favorite game was an almost orgastic experience at the time. But I bit the bullet and became reasonably proficient with C++ over the years. Never looked back to Delphi (which was on a dead end anyway, but still is one of the greatest IDE's of all time).



#13 Rld_   Members   -  Reputation: 1371

Like
0Likes
Like

Posted 21 February 2014 - 09:00 AM

I was initially studying Business IT at a university, but shortly in the second year, I decided this wasn't something I wanted to do and decided to stop and do something I like. I was already having a focus on game development and took some programming courses at this university (which was in Java) to fill up the year instead of doing nothing. During the first half year, I also started to learn myself C++ through a book: "Beginning game programming through C++".

 

I started to learn it myself for 2 reasons: The second half year I could enroll myself in a course that would revolve around programming an engine in C++ and the second reason was that I enrolled myself for a game development course at another university which required me to do an intake assignment in your favorite language. As I already knew the main programming language at that course would be C++, I figured I might as well start using that.

 

When I did that engine course, I didn't know a lot of C++. I did do some programming in Java, some basic C, VB.net and some of the C++ stuff from that book, but I felt like I was thrown into an ocean and could barely keep my head above water! Luckely it was a team assignment and my team members prevented me from drowning. It was certainly a big learning experience, but I wouldn't say the best one for me.

 

When I got accepted at the game development university I had a similar experience, except that I started at an empty ocean that was slowly filling up and I had a better chance of getting up to speed.

 

I don't think there is a best way of learning C++, or any other language for that matter. What seems to work for another doesn't always work for you. Some learn by being thrown into something, some learn by book, some by something in the middle, but the one thing that all these things have in common is simply to do it. 

 

In other words: The how differs per person, as long as you do it.



#14 TheComet   Members   -  Reputation: 1448

Like
0Likes
Like

Posted 21 February 2014 - 10:43 AM

I learned C programming at Electronics school for microprocessors and microcontrollers, and at the time was writing computer games in DarkBASIC. I later felt the need to move to a more powerful language, and read a few books on C++ conventions. One such book which I feel defined my fundamental understanding of C++ was Moving from C to C++ by Greg Perry.

 

I write a lot of C++ code nowadays for small personal projects, and think that's really one of the only ways to gain a complete understanding of the language. Books help you a lot, but they won't get you anywhere if you don't practice.


YOUR_OPINION >/dev/null


#15 BarrySkellern   Members   -  Reputation: 642

Like
1Likes
Like

Posted 21 February 2014 - 11:06 AM

Much like a lot of other answers here, I learned c++ for university projects (statistical physics).

I think it's important to work on projects that interest you, to help you stay motivated, so try to think of a small project that will give you a buzz.

Also, remember that different people will solve a problem in different ways, and c++ is a multi-paradigm language. There's no substitute for doing your own coding, but it can also be an eye-opener to read someone else's code (assuming you trust their abilities of course.)

Most of all, have fun with it, and don't be scared to try and fail. Nobody has to see your early coding horrors! And nobody here will judge you badly for making mistakes. Good luck!

Visit http://www.mugsgames.com - Just released: Stroids, a retro style mini-game for Windows PC.

Mugs Games on Twitter: @MugsGames and Facebook: www.facebook.com/mugsgames

Me on Twitter @BarrySkellern

 


#16 richardurich   Members   -  Reputation: 1187

Like
0Likes
Like

Posted 22 February 2014 - 07:46 AM

While I used C++ for a few classes, I had no clue what I was doing until I worked in a team environment with others. Once I saw actual code doing useful things written by real coders, every line of code and every statement used all of the sudden had a clear rationale, and the whole language quickly made sense. Ever since then, I always learn new languages by just throwing myself into a code base. It works incredibly well for me, and I love being able to just change a line of code to see what happens.



#17 Godmil   Members   -  Reputation: 744

Like
0Likes
Like

Posted 22 February 2014 - 09:06 AM

I went through a lot of tutorials like Learncpp.com and I thought I learned a lot. But I didn't really understand it until I started doing projectEuler puzzles.



#18 greenpig83   Members   -  Reputation: 326

Like
0Likes
Like

Posted 22 February 2014 - 09:54 AM

Yeah, never learn the lang alone. But learn it to do something! But as a pro programmer. I still think that searching skill is the most necessary thing. Sometime u dont need to know the lang to do the job. Just know what you want to do, and most the time, someone on the net did it already, or some part of it. Search it, download, build it, then tweak to see what it do (Instead of read the code, understand every line, then write your own! ). Because the code already running, so change something to see how it work is very easy to understand . That's the fastest way for me. Although if you write it your own u can understand it better, unless you are a student and have a lot of time to spend!



#19 sethhope   Members   -  Reputation: 367

Like
0Likes
Like

Posted 22 February 2014 - 11:46 AM

I learned c++ basics from www.cppgameprogramming.com. After I read all the tutorials there, I switched over to this site and I must say, it wasn't a mistake! I almost wish I started here!


I develop to expand the universe.
"Live long and code strong!" - Delta_Echo (dream.in.code)

#20 Alessio1989   Members   -  Reputation: 1809

Like
0Likes
Like

Posted 22 February 2014 - 11:59 AM

The first time I saw C++ was at uni in two different and inadeguate courses, the first was more a C with some C++ elements (references, new, delete, and bad basic usage of iostream) and it didn't teach quite nothing (it was also bad explained too, without a comprehensive explanation of memory model, allocation, and everything else, so it wasn't a good course to lern C too..)... The second course was just a java introduction course explaining  "C with classes"...

So I really stared learning the basics of C++ with the Bruce Eckel's books giving me decent basis for C++98/03 (you can find them as free electronic versions). The rest I learnt (and I'm still learning) comes from websites... I'm actually evaluating the purchase of last Bjarne Stroustrup's book that covers C++11...


Edited by Alessio1989, 22 February 2014 - 12:01 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS