Need help in c++...???

Thanks traveller, but what would I have to do to run the above code. I have never found a successful compiler.
 
Re: The help...

snyppl said:
I use Microsoft Visual Studio 6 Enterprise Edition. (If you have a Microsoft C++ compiler, preferred 6) then I can help you:
A small program. :D
#include <iostream>
using namespace std;

main()
{
char i = 'a';

for (i = 'a';i<='z';i++)
cout << i;
cout <<endl;
system("pause");

return 0;
}

Oh! Is Visual Studio Good? I'm soon going to get Visual Studio 2003 Enterprise (I have a friend in a low moral position) and I have been wondering if its very good?
 
Visual Studio will do C# won't it?

Anybody have any ideas about C# (this is the language I would like to learn first and eventually specialise in).
 
Well C++ is easier written in Linux so you can decompile it using g++. You can get some good ISO's for Linux at www.LinuxISO.org.
Once you have it installed, it should have taken a short 30 minutes, you should open Gedit and insert in:

Code:
#include <iostream.h>

int main ()
{
   cout << "Hello World!\n";
   return 0;
}
then save it to your desktop and call it hello.cpp then open your terminal and put in
cd "Desktop"
g++ hello.cpp -o hello
then when it's done put in
./hello
and
Hello World!

should come up.
 
Ah! I Linux-Folk then! I knew there was something distasteful about you!

Is G++ Linux's answer to C++ or just another low-brow Programming Language for Linux-Folk?
 
Yes, C# comes with the Visual Studio interface. Visual Studio is pretty much the IDE whereas C++, C#, VB, etc are the specific compilers for their associated languages. Now of course when you get into it Visual Studio is a lot more than an IDE. It provides a graphical programming environment with many useful debug and developmental tools. Visual Studio also allows for development of several components in different languages and then relatively easily combines them into one integrated solution. (Of course you must have the different compilers for the various languages.) The Visual Studio environment provides a lot, its all a matter of how much you read into it.
 
Yeah, I know, it looks brilliant - I simply cannot wait until the 1st (when I get paid) and therefore it will only be the 3rd before I get Visual Studio and rampage about trying to learn as much as I can as quickly as I can!
 
Back
Top Bottom