Anyway, I found this site, and read through lots of the C++ tutorials. It seems quite similar to Java. But now here is the problem.
However, I am very lost. I have WindowsXP, so I downloaded Visual C++ 2008 Express, installed it, and loaded it.
Now what? I can't find any tutorials on how to even CREATE a project in in VC++.
I tried creating one, and I ended up with weird header files (What are they? They are not covered in the tutorials), and what seemed like a main class, with 2 main methods?
main(void)
~main(void)
I can't seem to be able to do anything. I can't even get anything to compile or run. I just want to be able to print 'Hello World' and then I will be satisfied!
But right now I'm incredibly frustrated, and it seems I just have to somehow figure it all out myself. I might as well just return to programming Java. :(
Can someone at least explain just the basics of how this all works? I am completely clueless! I have read the tutorials, but they merely cover syntax and class structure. How would I have multiple classes?
You need to start with an empty project: File > New > Project > Empty Project. If your code isn't compiling, post it here for review. Here's your basic hello world:
1 2 3 4 5 6 7 8 9 10 11 12
// Basic Hello World Program
#include <iostream>
usingnamespace std;
int main()
{
cout << "Hello World!\n";
system("pause");
return 0;
}
Look through the top and look for 'Start without debugging'. I started out with Visual C++ as well (though a total beginner to programming) and I was really confused, especially about creating a project as well.
Maybe try Dev-C++. I think it's more straight forward. That's just my opinion though.
You say you have read lots of C++ tutorials - which ones?
Most tutorials I have seen have examples in them. Try typing the code from the tutorial and getting it to work. If you have problems with that come back here.