#import #import "Observer.h"#import "Person.h"#import "Computer.h"int main(int argc, const char * argv[]) { @autoreleasepool {/* Person *per...
分类:
其他好文 时间:
2015-05-26 20:58:30
阅读次数:
89
#include "stdafx.h"#include "string"#include "iostream"#include "vector"#include "sstream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ .....
分类:
其他好文 时间:
2015-05-26 12:36:11
阅读次数:
109
#include "stdafx.h"#include "string"#include "iostream"#include "vector"#include "sstream"using namespace std;int _tmain(int argc, _TCHAR* argv[]){ .....
分类:
编程语言 时间:
2015-05-26 10:34:26
阅读次数:
213
输出匹配funcno或type:awk 'funcno|type'输出两次正则表达式匹配之间的行:awk '/funcno/, /type/'删除所有的空行:awk NF从第8行输出到第12行: awk 'NR==8,NR==12'标记:ARGC 命令行参数个数ARGV ...
分类:
其他好文 时间:
2015-05-25 18:21:10
阅读次数:
125
#include using namespace std;extern "C" {#include // required headers#include }int main(int argc, char**argv) { av_register_all(); ...
分类:
其他好文 时间:
2015-05-25 16:02:40
阅读次数:
567
1、实现效果图: 2、代码清单:#include #include #include #include #include int main(int argc, char *argv[])
{ QApplication app(argc, argv); QWidget *window = new QW...
分类:
其他好文 时间:
2015-05-25 14:24:27
阅读次数:
130
例程一:hello world! 支持HTML语言解析。#include #include
int main(int argc, char *argv[])
{ QApplication app(argc,argv); QLabel *label=new QLabel("hello,world ")...
分类:
其他好文 时间:
2015-05-25 14:23:27
阅读次数:
112
getopt是python3中按C语言的格式来进行参数选项的处理模块。 getopt能够处理短选项和长选项: -a? 短选项 --add 长选项 处理过程分为三步: 第一步先取得要处理的选项集字符串 import sys args = sys.argv[1:] 第...
分类:
编程语言 时间:
2015-05-24 19:08:14
阅读次数:
154
代码如下:
int main(int argc, char **argv)
{
int fd;
socklen_t len;
struct sock_opts *ptr;
for (ptr = sock_opts, ptr->opt_str != NULL; ptr++)
{
printf("%s:", ptr->opt_str);
if (ptr->opt_val_str ==...
分类:
其他好文 时间:
2015-05-24 17:27:46
阅读次数:
130
int main(int argc,char **argv) {
int sockfd, n;
char buf[MAXLINE];
union {
short s;
char c[sizeof(short)];
} un;
un.s = 0x0102;
if (sizeof(short) == 2) {...
分类:
其他好文 时间:
2015-05-24 10:09:16
阅读次数:
122