随笔 - 825,  文章 - 0,  评论 - 37,  阅读 - 175万

随笔分类 -  C++语言

杨辉三角
摘要:#include #include int Number(int x, int y);void main (void){ int i; int j; int k; int n; cout > n; for (i=0; i<=n; i++) { for (k=0; k<24-2*i; k++) {... 阅读全文
posted @ 2015-05-30 11:18 milantgh 阅读(239) 评论(0) 推荐(0) 编辑
win32控制台消息机制
摘要:源码:#includeHANDLE hInput; /* 获取标准输入设备句柄 */INPUT_RECORD inRec;/* 返回数据记录 */DWORD numRead;/* 返回已读取的记录数 */int Y,X;/* X和Y的坐标 */int input(){ while(1) { COO... 阅读全文
posted @ 2015-04-29 16:03 milantgh 阅读(687) 评论(0) 推荐(0) 编辑
meterpreter源码
摘要:/* by codeliker @2014.12.08 github: https://github.com/codeliker*/#include #include #pragma comment(lib,"WS2_32.lib")int main(int argc,char** argv){ /... 阅读全文
posted @ 2015-03-12 17:18 milantgh 阅读(764) 评论(0) 推荐(0) 编辑
VC++之GetLastError()使用说明
摘要:VC中GetLastError()获取错误信息的使用在VC中编写应用程序时,经常需要涉及到错误处理问题。许多函数调用只用TRUE和FALSE来表明函数的运行结果。一旦出现错误,MSDN中往往会指出请用GetLastError()函数来获得错误原因。可问题是,GetLastError()返回的只是一个... 阅读全文
posted @ 2014-09-04 12:59 milantgh 阅读(1714) 评论(0) 推荐(0) 编辑
#pragma预处理指令讲解
摘要:在所有的预处理指令中,#Pragma 指令可能是最复杂的了,它的作用是设定编译器的状态或者是指示编译器完成一些特定的动作。#pragma指令对每个编译器给出了一个方法,在保持与C和C++语言完全兼容的情况下,给出主机或操作系统专有的特征。依据定义,编译指示是机器或操作系统专有的,且对于每个编译器都是... 阅读全文
posted @ 2014-07-25 16:23 milantgh 阅读(373) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示