ultifinitus has pointed out the error in your code. However, declaring a method without it's body is called a prototype method. If you use a prototype method, you'll have to define it's body aftermain( ).
Here's an example of how to declare and define a prototype method:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// [ RETURN-TYPE ] [ IDENTIFIER ] ( [ ARGUMENT-LIST ] );
int Add( int, int ); // This is your prototype method which has not yet been defined.
int main( )
{
Add( 3, 4 ); // This is allowed as long as you define the body of Add( ) later.
return 0;
}
// This is the definition of Add( ):
int Add( int A, int B )
{
return( A + B );
}