控制台控制
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include <c_WinUI_Console.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define ALT1 (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_INTENSITY)
|
||||
|
||||
int main(int argc, char** argv){
|
||||
int i;
|
||||
SetConsoleTitle("Emily Dickinson Console");
|
||||
c_WinUI_Console_ClearScreen();
|
||||
|
||||
c_WinUI_Console_WriteXY(0, 1, "Faith is a fine invention.", ALT1);
|
||||
c_WinUI_Console_WriteXY(0, 2, "For gentlemen who see;", ALT1);
|
||||
c_WinUI_Console_WriteXY(0, 3, "But microscopes are prudent", ALT1);
|
||||
c_WinUI_Console_WriteXY(0, 4, "In an emergency!", ALT1);
|
||||
|
||||
getchar();
|
||||
// system("pause");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user