#include int main(int argc,char **argv){ printf("hello world\n"); return 0;}在linux下,使用GCC来编译helloworld 程序时,只需使用最简单的命令:& gcc hello.cpp -o a或$ gcc h...
分类:
其他好文 时间:
2014-12-12 13:15:13
阅读次数:
205
#include#include#includeintmain(intargc,char*argv[]){CURL*curl;CURLcoderes;structcurl_httppost*formpost=NULL;structcurl_httppost*lastptr=NULL;structcu...
分类:
Web程序 时间:
2014-12-12 13:09:40
阅读次数:
425
成功运行
#include "opencv2/highgui/highgui.hpp"
#include
#include
#include
using namespace cv;
using namespace std;
int main (int argc, const char * argv[])
{
cvNamedWindow("ccav", ...
分类:
其他好文 时间:
2014-12-11 14:04:14
阅读次数:
161
用C代替OC:#import #import #import extern int UIApplicationMain (int argc,char *argv[],void *principalClassName,void *delegateClassName);struct Rect { flo...
分类:
移动开发 时间:
2014-12-11 08:55:59
阅读次数:
221
今天调试了好几个小时,想吧pylint集成到pycharm中去,从网上找了个宝贝帖 子,但是不好用,原因是作者写的脚本是检查工程和模块的,而我的是单独检查一个文件,当然前者肯定会在项目后期用的。所以就用Pycharm调试了作者的 脚本,知道了python的sys.argv的使用,接受运行时参数用的。...
分类:
其他好文 时间:
2014-12-11 08:53:34
阅读次数:
1359
#!/usr/bin/env pythonimport sysimport structif len(sys.argv) != 3: print "Usage: %s appname dest_file.xcent" % sys.argv[0] sys.exit(-1)APPNAME = sys.a...
分类:
Web程序 时间:
2014-12-10 22:35:46
阅读次数:
184
//
// main.m
// 时间格式化
//
// Created by Macro on 14-12-10.
// Copyright (c) 2014年 Macro. All rights reserved.
//
#import
int main(int argc, const char * argv[]) {
@autoreleasepool {
...
分类:
其他好文 时间:
2014-12-10 21:22:45
阅读次数:
292
今天调试了好几个小时,想吧pylint集成到pycharm中去,从网上找了个宝贝帖子,但是不好用,原因是作者写的脚本是检查工程和模块的,而我的是单独检查一个文件,当然前者肯定会在项目后期用的。所以就用Pycharm调试了作者的脚本,知道了python的sys.argv的使用,接受运行时参数用的。当然...
分类:
其他好文 时间:
2014-12-10 19:42:22
阅读次数:
329
Q:输入10个整数,把奇数从大到小排列,把偶数从小到大排列。S:#include int main(int argc, char *argv[]){ int a[10]; int m; for(int k=0;k=0&&a[j]>a[j+1];j--) { m=a[j]; a[j]=a[j...
分类:
其他好文 时间:
2014-12-10 19:27:54
阅读次数:
207
1.基本说明函数说明 getopt()用来分析命令行参数。参数argc和argv是由main()传递的参数个数和内容。参数 optstring为选项字符串, 告知 getopt()可以处理哪个选项以及哪个选项需要参数,如果选项字符串里的字母后接着冒号“:”,则表示还有相关的参数,全域变量optarg...
分类:
其他好文 时间:
2014-12-10 15:54:54
阅读次数:
114