Blacksnake, did you read the pointers I left in my last thread? Why does the for loop loop 5 times? Why do you cout<< instead of adding inside the loop's scope? Where is the product calculated?
Psudo code:
Code:
var Num1 = 0
var Num2 = 0
var Product = 0
get: Num1
get: Num2
loop ( 0:Num1)
{
Product += Num2;
}
print: "Product is: " Product
Change that to real C++ and it should work.
EDIT:
Also, "#include <iostream.h>" ... use: #include <iostream> instead. It won't fix the problems in your code. It's just iostream.h isn't really used much. You may have to put a 'using namespace std;' before main (or you could put std:: on front of cout<<and cin>>):
Code:
#include <iostream>
using namespace std;
int main( void )
{
cout<< "Hello World!";
return 0;
}
or
Code:
#include <iostream>
int main( void )
{
std::cout<< "Hello World!";
return 0;
}