basics of c++
hai,
i am studying c++ for 4 years.but i dont know the basics of c++.i can only write c programs .i want to know:
1:basics of c++
2:graphics in c++
3:creating simple softwares(with menus)
please help me :SICK:
[237 byte] By [
tiredcpp] at [2007-11-11 10:09:34]

# 1 Re: basics of c++
Hi,
1: you should try an online tutorial (plenty on the Web), read a book, and look the tips page on this site to get started. The basics of C++ cannot be answered in a few lines, I'm afraid.
2: and 3: To help you there we need at least the O/S you're working on and the compiler/IDE to answer them. It's very platform dependent.
Cheers,
D
# 2 Re: basics of c++
do u have "c" basis ? to upgate to c++ it's only a few knowledge about newer functions and keywords .. if u have a good skill with c u wont have trouble to use c++ ..
about graphics , if u mean graphics only so the classic GRAPHICS.H will help u but if you mean advaanced graphics like games graphics and so on , so u need as D told u the OS first , and it's methods "ex: windows > dirextx, explorer for forms"
Amahdy at 2007-11-11 21:00:17 >

# 3 Re: basics of c++
Fully understanding C++ is going to take a long time. Probably about a year of hard study. The new keywords will let you make C like programs in C++ fairly soon, but understanding true object oriented programming, templates, and use of the stl will take a long time. Throwing in OS related libraries to do graphics and windows will take some time as well, and you need a decent grasp of C++ before you can take on these topics. Graphics is very nontrivial, however simple gui programming is not terribly hard.
jonnin at 2007-11-11 21:01:27 >

# 4 Re: basics of c++
I have to agree with jonnin (again). The step from C to C++ is, although seemingly easy, not trivial at all. The hardest thing, I think, is switching from procedural programming to object oriented programming. It's easy to hack together some little tutorial example, but as soon as you do the step to some more interesting problems, you'll find that there are some really nasty traps hanging around in C++. I think jonnin's estimate is even quite optimistimic: I'm doing the stuff for quite a while now and I admit, I'm still learning (but probably I'm just a bit dim). Don't get me wrong: you can write useful programs fairly quickly, and you should carry on doing so (we don't like losing good good programmers to VB, or the like ;-), but don't kid yourself: there's a lot to take in...
And: it's not just the mastering of syntax, that makes a good programmer. OO opens the way to perform terrible hacks if you don't know what you're doing - but then it gives you the opportunity to do some beautiful, sleek coding, also.
Best of luck inyour endeavours, tiredcpp.
Cheers,
D
# 5 Re: basics of c++
I see , long and short period depends on the person himself ... generally if he understand the concept itself the transformation will be easy .. also "mathing" in computer related can help too much to understand the original consept ...
for example if u understand the structure concept very good, maybe you felt that u need a more efficient work to do with them , then when just you know the advanced feautures in cpp I think you will go throught this very fast .. templates are allready used in math from long time so just knowing how to write this and access it that's all !
Just like arrays , ppl usually can't understand it easily but when u told them it's similar to the sequence <a> which contains a1, a2, a3, ... and you access element by putting the index between brackets , then they could better understand it ..
Amahdy at 2007-11-11 21:03:21 >
