This is useful in using the main function parameter.
Find the Dev-cpp installation location in the computer (perhaps C:\Program Files(x86)
)
Poke in, in the Dev-cpp directory inside search bin
folder address, and remember (or do not remember also line, wait to use again to find =.=)
Right-click My Computer, select Properties
Select Advanced System Settings
Select environment variable (in the lower part of the popup box)
Point Path
after Dot edit
Put the first ones 地址
and 加上\bin的地址
all new into this box
Various OK Save ~
- Menu key +r input cmd open command line
- The input
g++ -o exeName CppFileAddress
address can be dragged into the
- Then enter EXEName to execute
//2.cpp#include <iostream>int main(){ std::cout<<"Hello World"<<std::endl; return0;}
fighting~
Other than that
Mac is a lot easier.
References and other versions how to use
The recent Huawei Challenge (the main function passed in parameters) uses
you can clear the result first and see if it works .
There are some places that are not clearly written.
Someone really is. Copy it up.
Then I'll throw it in the c:/root directory and show it again HHH
Why haven't you reacted yet?
Dev-based command-line debugging