Object-Oriented Programming 1 winter operations practice topic

This work belongs courses 2020 Object-Oriented Programming Zhang Dong Ban
Where the job requires Object-oriented programming winter operations 1
The target job 1, see your C ++ compiler version. 2, use the command line to compile a C language / C ++ code.
Text of the job Practice questions
Other references In the Windows command line to compile and run C / C ++ program

1, see your C ++ compiler version.
At first I did not know the purpose of the command line, and then uses the other way. Click Help> About Microsoft Visual Stdio can be found on the.

Later, we discovered that using the command line to implement the query. Then I Baidu a little lower (all day) seems to understand a little bit, try to get started.
First Press Windows + r , obtained

after a step input, use "cd" to find the desired file

but I can not (do not know why not ..)
So I think it is not use cmd, will open the Powershell


but does not work, I'll party a.

After gradually learned that there is also a command line

input "cl.exe" will be able to get the compiler version

2. Use the command line to compile a C language / C ++ code.
Ready for a code. But there is a problem during the operation "can not find command", only to find because there is no configured environment variable.
After the configuration problem is not resolved, still prompts "can not find the command."
He asked the people to know there are at least two possibilities: 1, download the program did not download the compiled route to a specific folder. 2, add the path of error when you add, compile the module does not exist in the path to add, to find and add the module.
But I still can not find the file because the path of the desired folder card in this step.

Guess you like

Origin www.cnblogs.com/lkdj/p/12233179.html