Computer Science Canada

Function Prototype

Author:  Junaid2pac [ Sat Jul 28, 2007 11:45 am ]
Post subject:  Function Prototype

Wat is the point of the function prototype?

Author:  wtd [ Sat Jul 28, 2007 12:16 pm ]
Post subject:  RE:Function Prototype

code:
#include <iostream>

int main()
{
   foo();
}

void foo()
{
   std::cout << "foo" << std::endl;
}


Why doesn't this work?


: