System is a function in C language and C++. The detailed explanation of system () function under windows operating system is mainly the application of C language, and the system function needs to add a header file.
System("color 0A ") can be used to set the color, where 0 after the color is the background color code and A is the foreground color code. The color codes are as follows:
0= black, 1= blue, 2= green, 3= lake blue, 4= red, 5= purple;
6= yellow, 7= white, 8= gray, 9= light blue, A= light green, B= light green;
C= light red, D= lavender, E= light yellow, F= bright white.
Extended data:
Common usage of the system () function:
1, system ("suspended")
You can freeze the screen to facilitate the observation of the execution results of the program.
2. System ("CLS")
The screen clearing operation can be realized.
3. System ("Title Window Title")
Set the cmd window title.
4, the system ("mode control column =48 lines =25 lines")
Set the window width and height to 48 and 25, respectively.
5.system("del file path ");
Delete files.
Baidu Encyclopedia-System (Function)