![]() Use notepad to write a 'hello world' program into a file named hello.cpp. There should be a shortcut in the Visual Studio start menu folder that's named something like 'visual studio command prompt'. ![]() Or as long as you are just working with a single file learn about invoking the compiler directly. I'd say start with the win32 console project template. But once you have more than a couple files it starts making sense to use some sort of project file to handle the process for you, which is the reason it's usually done that way in the first place. Also you can manually invoke the c++ compiler for a single file to get an exe pretty easily. There in fact are c++ interpreters similar to the python interpreter you use to run Python files. That's not to say you can't just run a c++ file, but that it's not the normal way of doing things with c++. This processing uses a bunch of configuration which is what the project file is all about. ![]() That means c++ source gets processed by another program, called a compiler or compiler driver, that produces the thing you actually run. ![]() C++ is traditionally a compiled language.
0 Comments
Leave a Reply. |