我是用code block写的c++,上网找了很多方法都试过了,目前只换到颜色,想请问下,背景色要怎么换,字体大小要怎么换,如何在里面加格子?
以下是我的coding,请高人指点指点
#include<iostream>
#include <windows.h>
using namespace std;
int main()
{
textbackgroundcolor(5);
textcolor(8+128);
clrscr();
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hConsole,12);
cout << "Your text here" << endl;
return 0;
}
myself 发表于 2011-11-14 11:42 PM
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |