跳到正文

zyx2024

1032506

这个家伙很懒,什么也没有留下

在洛谷打开
资料、奖项与版本

资料

编号
1032506
抓取

红橙黄绿蓝靛紫\color{red}红\color{orange}橙\color{yellow}黄\color{green}绿\color{blue}蓝\color{cyan}靛\color{purple}紫
看不见我 \color{white}看不见我~

C++
MessageBox(NULL,"内容","标题",类型|图标(可选));
类型:
MB_OK 确定
MB_ABORTRETRYIGNORE 中止、重试、忽略
MB_OKCANCLE
MB_RETRYCANCEL 重试、取消
MB_YESNO 是、否 
MB_YESNOCANCEL 是、否、取消
对应类型的返回值:
IDABORT 按下中止 3
IDCANCEL 按下取消 2
IDIGNORE 按下忽略 5
IDNO 按下否 7
IDOK 按下确定 1
IDYES 按下是 6
IDRETRY 按下重试 4
图标:
MB_ICONEXCLAMATION 警告
MB_ICONHAND 红叉
MB_ICONQUESTION 问号
MB_ICONASTERISK 字母i 
C++
#include <bits/stdc++.h>
#include <windows.h>
using namespace std;
typedef long long ll;
const ll MAXN = 0;
void color(int strcolor,int bgcolor){
	SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),strcolor+bgcolor);
}
	
int main(){
	color(0,10);
	cout << "AC" << endl;
	color(0,6);
	cout << "CE" << endl;
	color(0,12);
	cout << "WA" << endl;
	color(0,5);
	cout << "RE" << endl;
	color(0,8);
	cout << "TLE" << endl;
	cout << "MLE" << endl;
	cout << "UKE" << endl;
	//cout << "TLE" << endl;
	color(0,7);
	return 0;
}
/*
color() 
0 = 黑色
1 = 蓝色
2 = 绿色
3 = 浅绿色
4 = 红色
5 = 紫色
6 = 黄色 
7 = 白色 
8 = 灰色 
9 = 淡蓝色 
10 = 淡绿色 
11 = 淡浅绿色 
12 = 淡红色 
13 = 淡紫色 
14 = 淡黄色 
15 = 亮白色 

0 黑底 
16 蓝底
32 绿底 
48 浅绿底 
64 红底 
80 紫底 
96 黄底 
112 白底 
128 灰底 
144 淡蓝底 
160 淡绿底 
176 淡浅绿底
192 淡红底 
208 淡紫底
224 淡黄底 
240 亮白底
*/

还没有收录这位用户的文章。