When I try to declare a function in Visual Studio 2010 Pro I always get an error. The code below is what I am trying to build. Am I missing something? Thanks for the help.
Code:// void function example #include <iostream> #include "stdafx.h" using namespace std; void printmessage () { cout << "I'm a function!"; } int main () { printmessage (); return 0; }