啊哈磊_编程从这里起步

标题: 邀请码's头文件 V0.1 [打印本页]

作者: 邀请码    时间: 2016-3-28 20:04
标题: 邀请码's头文件 V0.1
只是为了开发速度而已,勿喷
[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]


作者: zhuzhu81998    时间: 2016-3-28 21:59
醉了。。。。
作者: 初学C    时间: 2016-4-2 12:50
其实可以写一个 枚举类型
用 enum 来做
作者: adc    时间: 2016-7-28 18:07
zhuzhu81998 发表于 2016-3-28 21:59
醉了。。。。

我也一样。。。。。
作者: s141336    时间: 2016-8-9 21:11
不错不错点赞
作者: 守护-星辰    时间: 2016-9-25 18:15
#表示没看懂。
作者: 逸飞扬_VbCNT    时间: 2018-2-11 11:02
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
作者: 逸飞扬_VbCNT    时间: 2018-2-11 11:03
shuashuashuashuashuahsu                              
作者: 逸飞扬_VbCNT    时间: 2018-2-11 11:04
刷刷刷黑素                                         
作者: 创世菌    时间: 2018-2-14 18:53
code004 发表于 2018-2-13 17:15
怎么还是没红包004

中奖率 %10 有那么好中啊?真是无语!!!
作者: 创世菌    时间: 2018-2-14 19:14
code004 发表于 2018-2-13 17:15
怎么还是没红包004

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

哦不!!!!!!!!!!!!!!!!!!
是宏!!!!!!!!!!!!!!!!!!

作者: CSJ创世菌    时间: 2018-4-7 18:04
……                                   
作者: CSJ创世菌    时间: 2018-4-7 18:51
………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
作者: 湖水    时间: 2019-1-21 21:33
捞一把

作者: xjzb    时间: 2019-1-27 21:25
为了回帖奖励!
作者: xjzb    时间: 2019-1-27 21:26
为了回帖奖励!
作者: xjzb    时间: 2019-1-27 21:26
为了回帖奖励!
作者: xjzb    时间: 2019-1-27 21:27
回帖奖励!!!!!!
作者: sjajsn    时间: 2019-4-5 18:06
z                                          
作者: sjajsn    时间: 2019-4-5 18:06
z                                             
作者: sjajsn    时间: 2019-4-5 18:07
z                                    
作者: sjajsn    时间: 2019-4-5 20:21
中                                                  
作者: sjajsn    时间: 2019-4-5 20:22
中                                            
作者: sjajsn    时间: 2019-4-6 14:19
z                                       
作者: sjajsn    时间: 2019-4-14 10:09
还不中?不中

作者: The Death    时间: 2020-3-16 14:14
                             呵
作者: The Death    时间: 2020-3-16 15:25
                           呵
作者: The Death    时间: 2020-3-16 15:26
                           呵
作者: The Death    时间: 2020-3-16 15:26
                           呵
作者: The Death    时间: 2020-3-16 15:28

                           呵
作者: The Death    时间: 2020-3-16 16:46
                               呵
作者: The Death    时间: 2020-3-16 16:47

                               呵




欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/) Powered by Discuz! X3.2