Jump to content
  • Advertisement
Sign in to follow this  
ReneGade RG dev

I learnt C without realising it....how the?

This topic is 4830 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm going through my c++ beginner's tutorial and I get kinda confused....because I'm really bored I go on a C beginner's tutorial and zip through and realise I accidentally learnt C.... what's the difference? printf() and cout<<, same thing really...I don't believe it! Now that I learnt the basics of C, maybe I should extend my knowledge (which came from nowhere) and go for more advanced things.... And I need you guys to tell me how I can extend my basic knowledge to smething more advanced....maybe game development (OpenGL or DirectX)!? Or should I simply continue learning c++ because I'll get a better result in the end.... RECENTLY EDITED: Obviously, these are only the basics so I need to stay on the lines...I'm not some big professional C programmer...I don't think too big of myslef....

Share this post


Link to post
Share on other sites
Advertisement
Well.....there is something called a GOTO command and there are such things called memory pointers which allow me to access blocks of memory and even change them...I don't necessarily have to learn OOP to be able to re-use and change blocks of data.

Share this post


Link to post
Share on other sites
There are many things that C and C++ can both do, so from that respect there isn't a lot of difference.

However, whilst some things are easier and you'll find yourself using some C functions in your C++ programs (sprintf() being one I use), I personally find C cumbersome, clumsy and confusing when compared to the new streamlined way of doing things as introduced by C++.

C++ also offers more advanced features such as classes and templates, OO concepts which C doesn't really know. C does run faster than C++ due to it being at a slightly lower level, but this probably won't concern a beginner much.

C is easier imho, but C++ will probably prove to be more useful. I use C samples to get the basic logic nailed down (like sorting algorithms), and then migrate the code to C++.

I hope this has helped, just go with what you feel is best, and good luck!

ukdeveloper.

Share this post


Link to post
Share on other sites
It has helped, UKdeveloper!

I will continue with both C and C++...I hope you guys will still reply to my c++ help topic...I personally think that c++ is very complicated so I'll use C mainly until I truelly finish learning c++!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!