truviet911
12-21-2008, 06:11 AM
I've been trying to learn c++ and this is my first prog. i have no idea where it went wrong it keep display this msg whenever i compile it.
error C2447: '{' : missing function header (old-style formal list?)
im using visual studio 2008 by the way.
1 // Fig. 2.1: firstpro.cpp
2 // Text-printing program.
3 #include <iostream> // allows program to output data to the screen
4
5 // function main begins program execution
6 int main()
7 {
8 std::cout << "Welcome to C++!\n"; // display message
9
10 return 0; // indicate that program ended successfully
11
12 } // end function main
error C2447: '{' : missing function header (old-style formal list?)
im using visual studio 2008 by the way.
1 // Fig. 2.1: firstpro.cpp
2 // Text-printing program.
3 #include <iostream> // allows program to output data to the screen
4
5 // function main begins program execution
6 int main()
7 {
8 std::cout << "Welcome to C++!\n"; // display message
9
10 return 0; // indicate that program ended successfully
11
12 } // end function main