搜索
查看: 2625|回复: 33

邀请码's头文件 V0.1

[复制链接]
发表于 2016-3-28 20:04:02 | 显示全部楼层 |阅读模式
只是为了开发速度而已,勿喷
[mw_shl_code=cpp,false]
//邀请码.h(C++)
#ifndef _INVITE_CODE_H_//为了防止重复包含
#define _INVITE_CODE_H_
#include <Windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <stddef.h>
#include <conio.h>
#include <iostream>
#include <algorithm>
#ifdef INCLUDE_STL//STL,如果需要就在程序中定义
#include <set>
#include <map>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#endif
using namespace std;
#define n_BLACK 0
#define n_BLUE 1
#define n_GREEN 2
#define n_CRAN 3
#define n_RED 4
#define n_PURPLE 5
#define n_YELLOW 6
#define n_WHITE 7
#define p_BLACK 8
#define p_BLUE 9
#define p_GREEN 10
#define p_CRAN 11
#define p_RED 12
#define p_PURPLE 13
#define p_YELLOW 14
#define p_WHITE 15
#define TOPLINE 0x400
#define LEFTLINE 0x800
#define RIGHTLINE 0x1000
#define UNDERLINE 0x8000
void WordAttrib(_In_ int fC,_In_ int bC,int lC=0)//设置文字属性,前景色背景色,上下左右划线
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),(fC%16|(bC%16)*16)|lC);
}
int CmdWidthHigh(_In_ int w,_In_ int h)//调控制台大小 w是宽度 h是高度 单位为一个英文字母大小(不是像素)
{
if(w<14)return 1;
char a[200];
sprintf(a,"mode con cols=%d lines=%d",w,h);
system(a);
}
int gcd(int a,int b)//最大公约数
{
return b==0?a:gcd(min(a,b),max(a,b)%min(a,b));
}
int lcm(int a,int b)//最小公倍数
{
return a*b/gcd(a,b);
}
void CmdTitle(_In_ char* word)//设置控制台标题
{
SetConsoleTitle(word);
}
#endif
[/mw_shl_code]

发表于 2016-3-28 21:59:23 | 显示全部楼层
醉了。。。。
发表于 2016-4-2 12:50:20 | 显示全部楼层

回帖奖励 +4

其实可以写一个 枚举类型
用 enum 来做
发表于 2016-7-28 18:07:15 | 显示全部楼层

我也一样。。。。。
发表于 2016-8-9 21:11:59 | 显示全部楼层
不错不错点赞
发表于 2016-9-25 18:15:20 | 显示全部楼层
#表示没看懂。
发表于 2018-2-11 11:02:51 | 显示全部楼层
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
发表于 2018-2-11 11:03:13 | 显示全部楼层
shuashuashuashuashuahsu                              
发表于 2018-2-11 11:04:18 | 显示全部楼层
刷刷刷黑素                                         
发表于 2018-2-14 18:53:01 | 显示全部楼层
code004 发表于 2018-2-13 17:15
怎么还是没红包004

中奖率 %10 有那么好中啊?真是无语!!!
发表于 2018-2-14 19:14:37 | 显示全部楼层
code004 发表于 2018-2-13 17:15
怎么还是没红包004

你就不能想一想吗?找些别的中奖率低的主题来回帖,我都把其它主题的啊哈币刷完了!!!
发表于 2018-3-18 13:20:06 | 显示全部楼层
主要都是些头文件……
发表于 2018-3-18 13:20:44 | 显示全部楼层
创世菌 发表于 2018-3-18 13:20
主要都是些头文件……

哦不!!!!!!!!!!!!!!!!!!
是宏!!!!!!!!!!!!!!!!!!
发表于 2018-4-7 18:04:19 | 显示全部楼层
……                                   
发表于 2018-4-7 18:51:16 | 显示全部楼层
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表