If you want to use cout and cin you'll have to include <iostream> and use namespace std.
A sample program is something like this:
#include <iostream>
int main() {
int x, y, z, min; // Don't forget you can declare multiple variables of the same type on the same line
std::cout<<"Enter 3 numbers: ";
std::cin>> x >> y >> z; // When entering the three numbers you have to leave spaces between them here
min = x;
if (y<x && y<z)
y=min;
if (z<x && z<y)
z=min;
std::cout<<"min is : " << min << std::endl; // This prints text with the first insertion operator '<<', and a variable with the second
// I added an endline for the beauty of it
system("pause"); // Pauses the application
return 0;
}
It's really not that hard, a good site would be:
http://www.java2s.com/Tutorial/Cpp/0...0040__cout.htm
By the way, why give void as an argument to main?
Hope this helps, if you have any questions just post them ^^
EDIT: bah, Ancient Dragon beat me to it
Last edited by brechtjah; Nov 20th, 2008 at 8:29 pm.