Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Can't find "a.out" file in Virtual Studio 2017?
Currently watching a youtube video about C++ programming. Working in Visual Studio but cannot find "a.out" file in terminal...cant even find terminal. Speaking of which what is a terminal?
2 Answers
- husoskiLv 72 years ago
That "a.out" file is a Unix/Linux C/C++ convention. So is "terminal". The Windows and Visual Studio equivalent for "terminal" is the "Developer Command Prompt for VS 2017" in your Start menu, in the Visual Studio 2017 group. The Visual C++ compiler and linker will create a .exe file; and you can invoke it from the command line with something like:
cl hello.cpp /W4
Then run the hello.exe file with:
hello
That's rarely used these days, as Visual Studio is an IDE (Integrated Development Environment) that includes an editor, compilers, automatic building and smart compiling (only source files where the source or one of the #include files has changed), a debugger and more.
If you want to follow a Unix lesson plan on a Windows PC, there are a couple of options:
1. MinGW (or one of the spinoffs like TDM-GCC or mingw-w64) will give you a GCC-compatible compiler and a terminal environment that looks like a Linux shell (called MSYS2).
2. Cygwin. A much bigger install, but you get a much more complete simulation of Unix/Linux.
3. Give up on the command line and install Code::Blocks with the bundled MinGW-style compiler. Last I looked, they included a TDM-GCC build of MinGW