Trainee c++

Pages: 12
Need to learn C++ programming.Whats the best approach
Last edited on
Good question. I used the tutorial in this site and found it very efficient to teach C++.
Start with the basics of C++, here: http://www.cplusplus.com/doc/tutorial/program_structure/
Take every example there and try to modify it in order to understand better.
closed account (z05DSL3A)
Get a good book designed to teach you Programming*...with C++. Work your way through it!

Book Suggestion:
Programming -- Principles and Practice Using C++
by Bjarne Stroustrup

* Some books I have seen do not put much emphasis on programming skills.
thanx noha! let me try the link.
Is it possible to download the book Grey Wolf
closed account (z05DSL3A)
I am not aware of it being downloadable, legally or otherwise.
iam using microsoft visual c++ . where do i capture the program and how do i compile and run the programs
Last edited on
closed account (S6k9GNh0)
benji00za, although we would love to help you as much as possible it's probably best that you read a couple of tutorials before you started asking questions that are basic. Though it's hard to just start programming, it can be easy if you try. Just...Don't become dependant on others for answers when the answers are right in front of your face...
Last edited on
closed account (z05DSL3A)
Start Microsoft Visual C++, press the F1 key, look in the help file for Getting Started (or something similar).
I think Noha is right. Start with the basics. This website is great for teaching you all aspects of C++ but if you're looking for something to get you started you might find this website useful:

http://www.krashcourse.com/C++

It's a software/ebook tutorial for visual learners that breaks down the fundamentals of C++.
Last edited on
When i started i used a book called Intro. to C++ by dane zak , it was super easy to read and the first couple chapters contain no code and describe algorithmns and logic. check it out

As for compiling your first Hello World you could lookk at the getting started page or ..

Open Visual Studio,
Click C++ Project,
Click Win 32 Console application, (Not Win 32 Applicaton)
In the Wizard menu Down and check blank solution,
Click OK,
In the upper left hand corner,
click Add Item,
Add your sourse Code (.cpp)
Name it whatever,

copy and paste the following code :

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

using std::cout;

int main()
{
cout<<"hello world"<<endl // cout (console output pronounce see~out),
                                            // endl( end line, Returns to the next line below)

system("pause");
return 0;
}


BAM there you go
Last edited on
@ computerequip

And What do you think this forum is for? Just because you think your a c++ guru, that doesnt give you the power to tell beginners not to ask questions. If someone asks what its the best way to start learning c++ we should all give him an opinion, not some half ass answer on why he should ask basic questions.
Last edited on
benji00za didn't ask where to start, he asked how to start. While it's true that this forum is to answer questions, there's a lower limit to what can be answered. "How to compile" and "how to run" are both well below that limit. There are occasions, however, when the limit can be lowered if the question is asked smartly (for example, "I don't understand how variables work", not "what are variables?"). This wasn't one such case.
His First Question was "Need to learn C++ programming.Whats the best approach", i think you forget that we are in the begineer form, If someone asks me what are the steps of running my first hello world then im gonna tell him, because we have all been there, and it would be much easier for people who are learning c++ if they have a forum to communicate with people as they go along. If your so cool that you cant answer the question, but you can take the time to tell someone not to post basic topics like this, then your being kind of ignorant. This is the begineer form people AKA where begineers go. remember that
Any decent book on C++ explains how to compile at the very least with the compiler that the author uses. If he's using a different compiler, there are more than enough tutorials that explain how to use any compiler you can think of.
I once was a C++ beginner, too, and figured out how to compile even though I had only used interpreted languages before, and not because I'm gifted, but because I can read and follow instructions. Having the entire Internet at his disposal, does he really need to ask how to compile? No, of course not. He's just lazy. Even by just Googling "learn c++" you get hundreds of thousands of results. Is there even any need to ask the question, anymore?
Interesting debate!
Chill out guys, I think that benji00za has finished reading his first suggested book :) No need for all that argument, we are all friends..
Last edited on
closed account (S6k9GNh0)
I don't think I'm a C++ guru at all. I'm still learning and this forum is a great excersice to keep in shape while I'm not making anything. I was trying to explain it's not good to depend on forums and that he should answer the most basic of questions himself with research and hard work. I wasn't griping or calling him stupid or saying anything negative. I was simply trying to stop bad habits from being formed.

@ jloundy: I'm not sure why your so snoody right there but perhaps you should interpret the post before you judge it?
Last edited on
im just saying that some people in the beginning have a hard time just comprehending what compiling means (speaking about my self), It took me a while to actually understand what those tutorials were even talking about, i just thought this was a good place to explain whats going on. This thread is done, but i like your use of the word snoody, very nice lol
closed account (S6k9GNh0)
I try to keep it clean :P.
Pages: 12