simple program won't compile

Feb 22, 2010 at 11:17pm
All I'm trying to do is get the tree() function to display the output and it won't compile.. :(


#include <iostream>
using namespace std;
void tree();

main ()
{
tree();

cin.get();
return 0;
}

void tree()
{
cout << "Three blind mice.\n";
}
Feb 22, 2010 at 11:19pm
What are the errors? And typeless main = bad. main() shall return an int.
Feb 22, 2010 at 11:19pm
main() must return an int.
Feb 22, 2010 at 11:32pm
thx.. added int to the main() :)
Topic archived. No new replies allowed.