Try coding in MSVC++ Not in the vB compiler.
alright so i put this code into microsoft vb 2010 and im not sure if this is a user error or microsoft being stupid:
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int i;
for (i=0, i<10; i+1; );
{
cout << "Hello World!";
}
system ("pause");
}
when i run it it does nothing but sit there and blink when i run it. Help please?
Try coding in MSVC++ Not in the vB compiler.
NextGen1 (01-04-2011)
Thats some pretty pro vb code you got there
why06 (01-02-2011)
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
NextGen1 (01-04-2011)
That code won't even work.. even on MSVC++
I just looked over the code and i see like 3 errors already. lmao :\
Light travels faster than sound. That's why most people seem bright until you hear them speak.
first of all delete that ";"Code:for (i=0, i<10; i+1; );
main thread does not return anything,
Well, someone please correct me if I'm wrong, but why include this? I mean including "iostream" is sufficient.Code:#include <stdio.h>
And try to delete that loop.....ah and Visual Basic isn't C++, normally your code shouldn't be compiled idk how can you compile it :/
So the code should be:
Code:#include <iostream> int main(void) { std::cout << "Hello World!" << endl; //or "/n" after "Hello World!" system("PAUSE"); return 0; }
Last edited by ♪~ ᕕ(ᐛ)ᕗ; 01-03-2011 at 04:46 AM.
Last edited by 'Bruno; 01-03-2011 at 05:41 AM.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
lol thanks to everyone. And i realize my typo lol. I meant C++ not VB, lol. anyone know a good book to help me learn C++?
I recommend
Code:The differences between Visual Basic and C++, By Thomas Medes
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower