To change the way GCC compiles your code. See Input & Output for how to do file input and output within the They can also be used in conjunction, as shown below. If you want to read standard input from inp.txt, use the following. name only runs if g++ name.cpp -o nameįinishes successfully. We can write both of these commands in a single line: g++ name.cpp -o name &. If you type some integer and then press enter, then the program should produce We can compile name.cpp into an executable named name with the First, open up Powershell on Windows, Terminal on Mac, or your distro's terminal
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |