Linux C 获取本机IP
摘要:Linux获取本机IPCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include<stdio.h>#include<sys/ioctl.h>#include<sys/socket.h>#include<s...
阅读全文
posted @
2010-06-20 03:17
yangyh
阅读(3236)
推荐(1)
C++读写二进制文件
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include"stdafx.h"#include"stdio.h"#include"string.h"#include"stdlib.h"#defineMAXLEN1024voidFill0(ch...
阅读全文
posted @
2010-05-20 21:39
yangyh
阅读(474)
推荐(0)
C++中的结构体函数
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#include"stdafx.h"structTest{intnum;Test(){printf("11111111");}Test(inti){this->num=i;}voidfun(){...
阅读全文
posted @
2010-05-20 12:06
yangyh
阅读(1886)
推荐(1)
C++笔记
摘要:----------------------------------------------//okint ival( 1024 );int ival(int());//每种内置数据类型都支持一种特殊的构造函数语法可将对象初始化为0int ival=int();-------------------------------------------------试图将一个非const 对象的指针指向一...
阅读全文
posted @
2010-04-10 22:44
yangyh
阅读(250)
推荐(0)
GCC笔记
摘要:结构体变量初始化方式: typedef struct cc { int a; int b; } A; int main(void) { A a={.a=4, .b...
阅读全文
posted @
2010-03-15 14:34
yangyh
阅读(187)
推荐(0)
查看Lib函数
摘要:dumpbin /exports <.lib path>
阅读全文
posted @
2010-01-27 20:04
yangyh
阅读(1653)
推荐(0)
求任意数的任意次方(C++)
摘要:Source Code Problem: 1001 Memory: 244K Time: 47MS Language: C++ Result: Accepted Source Code
阅读全文
posted @
2009-11-23 03:55
yangyh
阅读(3697)
推荐(1)