Visual Studio 8

Posts 1–11 of 11 · Page 1 of 1
Visual Studio 8
hey

i downloaded a tutorial to learn C++
it says i need to compile. but with no further explanation only something about cmd but it gives me errors.

i downloaded visual studio 8 (you can compile with it, right?)
but it is a little abracadabra for me so can anyone explain to me how to compile?
it doesn't matter if you can compile with a other program or this one i just need to learn this.
ehm wich visual studio do you have Basic 2008 is for VB and C++ 2008 is for C++
but i rather use the VC++ 6.0 thats less annoying then 2008 altough u only make good dx8.1 hack on 6.0 while on VC++ 2008 you can make dx9.0 hacks
i got microsoft visual studio 2008
so i think i got the C++ version (i can be wrong with this)

but i still dont know how to compile
Quote Originally Posted by lalakijilp View Post
i got microsoft visual studio 2008
so i think i got the C++ version (i can be wrong with this)

but i still dont know how to compile
Visual Studios is made to compile C, C++, and C# code. Visual Basic usually comes with Visual Studios too, but you can get it by itself.

OK about this thing your trying to compile:
Firstly: Visual Studios is a compiler

Secondly: if your trying to learn C++. I'd recommend getting a book.

Thirdly: compiling is when you take written code and turn it into a working program. The compiler interprets what you wrote and then turns it into actual machine code that your computer can run. You will not have to compile anything until you know how to code.


BTW: I also recommend Bloodshed Dev-C++ as your compiler as its much more nub friendly.
To compile in Microsoft Visual Studio 2008, go to the top, click on build menu. Then click on build solution(first in the list).
i found the button

but cant press the button because it is gray.

maybe because the code is wrong?

#include <iostream.h>

int main()
{
cout << "Hello World!\n";
return 0;
}
i'm using the tutorial: Teach yourself C++ in 21 Days
is it a good one or should i try another or maybe even a book?

here is the link if you want to check.
http://www.mpgh.net/forum/attachment...in_21_days.zip
Please use this compiler: Bloodshed Software - Dev-C++

It is so much easier to use. Learning to program is hard enough without have to deal with window's complex IDE >_>. Trust me this compiler is really easy to use. Your press one button and you get a blank page, press another and you can compile and run your code. Its that easy. I do all my coding in it, and I've been learning C++ for nearly a month now.
i downloaded Dev-C++ 4.9.9.2

i loaded Hello world.CPP wich i made in notepad

i pressed the compile button.

but it started to give errors

those were the errors

1 C:\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31, from
In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31,

what to do with it?

maybe i can get the same version as you so you can explain it better. (if you want to)
just put:
Code:
using namespace std;
below the #include <iostream.h>

Your tutorial should have said that o_O?... maybe a bad tutorial anyway it should look like this :
Code:
#include <iostream.h>
using namespace std;

int main()
{
cout << "Hello World!\n";
return 0;
}
The program should flash up on the screen and exit really quick. Put system("pause");
to see what you wrote:

Code:
#include <iostream.h>
using namespace std;

int main()
{
cout << "Hello World!\n";
system("pause");
return 0;
}
You should have just compiled and ran your first program. congrats!
it worked!!!

do you know a good tutorial?

cause now i know mine is a little crappy...
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us