I'm fairly new to C++, and I'm starting out with this in a terminal application:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
if ( argc < 1 )
{
printHelp();
return 1;
}
return 0;
}
void printHelp()
{
cout << "Usage:";
cout << "vmftomap [filename]";
}
However, I get the error "'printHelp' identifier not found" in _tmain. Since the function is declared directly beneath main, I'm assuming this is a namespace issue? I have read up on namespaces but I don't know what would apply in this case, since I haven't actually explicitly defined one for printHelp().