Well, I noticed some people on this site have an urning to learn some C++, heres the basics you need to know to make
any C++ program work. And, trust me, it will be a fucking hard time learning this stuff, so don't get frustrated.
First, You need to buy the right software such as Microsoft Visual Studio 2005.
Next, you will find yourself at a screen that looks like this:
THIS SOFTWARE IS CASE SENSATIVE!!!!!
You will then need to go to File-New-Project, then go to a Win32-Win32 Console Application. Then, make a project name(No spaces).
Now you will click nest, and check the box <Empty Project>. Then click done.
Next, theres a toolbar on the left side of your screen, it has three folders. Right click on the Source files and click ADD- new item-Code-C++file. Name this file the same as your main project.
I'm going to use my calculator Program.
Heres the basic code you need to know for
every project that you ever do.
TYPES OF CODE
1-cout<< = if you want to display text EX- cout << "Hello" <<
2-endl; = ends a line
First-
#include <iostream> = This is always the first thing you put on your code.
Then- Theres a thing call ::std; You will never need to use this, only if
you do this:
#include <iostream>
using namespace std;
int main() <-------- This goes after using namespace std;
{ <--------Curly Brace
cout << "Hello" << endl;
return 0;
} <--------End curly brace
If you do not put ; you will get errors, and it sucks. You will probably get errrors, because of easy, small reasons, but it is case sensative.
End result:
Ctrl F5 compiles it.
If you have any questions feel free to contact me on aim, or send me a pm, OR reply to this thread.
