PHPz2017-04-17 11:13:10
This %APPPATH%
represents the environment variable of the Windows system, which is used to save the path and has nothing to do with C itself
巴扎黑2017-04-17 11:13:10
is just an ordinary string in C .
This string should be used to represent Windows environment variables. Windows environment variables have percent signs at the beginning and end.
PHPz2017-04-17 11:13:10
The % sign is only useful when formatting with printf, but only one is needed. If you are not formatting a string, just use it as an ordinary character, a raw character, which has no special meaning.
高洛峰2017-04-17 11:13:10
If you want to get the value of a windows environment variable, you need to use the getenv function
const char* pAppPath = getenv("APPPATH");
怪我咯2017-04-17 11:13:10
Variables in Windows system paths are identified by double percent signs. %APPPATH%
should be the path to the application.
天蓬老师2017-04-17 11:13:10
You can refer to the process of configuring the development environment in Java under win, and you will understand