Okay, I'm very new to using Visual Studio 2015 Community version, and I'm following a tutorial in CPP by another author. His code looks like this:
using namespace std;
int main( int argc, char ** argv )
But Visual Studio creates me a default file that looks like this:
static void Main(string args)
putc("Hello World"); // I put this in, not generated by VS
When I try to build the above in VS, I get this message: CS0103 The name 'putc' does not exist in the current context.
I thought maybe the missing #include <cstdio> was the problem because that's where putc() is defined, but when I put that in, I get a new error: CS1024 Preprocessor directive expected.
It has been a long time since I did any C++, and this is my very first attempt to using VS to learn CPP.
Can someone please tell me what is wrong here?