码迷,mamicode.com
首页 >  
搜索关键字:argv    ( 3650个结果
acm_hdu ACM Steps Section2(1.2.1-1.2.8)
1.2.1#include #include #define up 6#define down 4#define stop 5int main(int argc, const char * argv[]){ int n = 0; while (scanf("%d",&n) != EOF)...
分类:其他好文   时间:2015-05-17 18:07:02    阅读次数:90
【GPU编解码】GPU硬编码 (转)
一、OpenCV中的硬编码 OpenCV2.4.6中,已实现利用GPU进行写视频,编码过程由cv::gpu::VideoWriter_GPU完成,其示例程序如下。 1 int main(int argc, const char* argv[]) 2 { 3 if (argc != 2) 4 { 5 ...
分类:其他好文   时间:2015-05-16 20:12:53    阅读次数:148
naked解析
先分享一个案例: 1 #include 2 3 __declspec(naked) void Test() 4 { 5 int x; 6 x = 3; 7 __asm ret; 8 } 9 10 int main(int argc, char* argv[])11 {12...
分类:其他好文   时间:2015-05-16 06:43:06    阅读次数:237
学c语言做练习之?统计文件中字符的个数
统计文件中字符的个数(采用命令行参数)#include #include int main(int argc, char *argv[]) { char ch; FILE *fp; long count=0; if(argc !=2) { printf("文件名是:%s\n",argv[0]); ....
分类:编程语言   时间:2015-05-15 19:45:38    阅读次数:150
IOS中的生命周期及加载过程
这一节,主要讲解UIKit框架下,应用程序的生命周期,UIView的生命周期,异常处理流程及控制器的加载过程。 四大对象关系图 应用程序生命周期 对上面的流程进行说明: 1. 程序启动执行,先进入main函数: int main(int argc, char * argv[]) 2. 执行UIApplicationMain函数: return...
分类:移动开发   时间:2015-05-15 10:51:17    阅读次数:132
python网络编程——简单例子
客户端(client.py)import socketimport sysport = 70host = sys.argv[1]filename = sys.argv[2]s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.connect((...
分类:编程语言   时间:2015-05-14 23:24:59    阅读次数:192
【STL源码剖析】--error: ‘power’ was not declared in this scope
#include #include #include #include using namespace std; int main(int argc, char **argv) { int iArray[5] = {1, 2, 3, 4, 5}; vector iVect(iArray, iArray+5); cout << accumulate(iVect.begi...
分类:其他好文   时间:2015-05-14 22:02:03    阅读次数:122
linux c 开发 mysql程序
Mysql c Api 开发笔记第一个例子用来测试mysql开发的环境是否搭建完成,测试的方式是调用一个Mysql的函数。version.c文件#include #include int main(int argc, const char *argv[]){ printf("Mysql cli...
分类:数据库   时间:2015-05-14 15:56:03    阅读次数:206
sizeof
#include #include int main(int argc, char* argv[]) { int (*array[5])[6]; printf("%d\n", sizeof(array)); // 20 printf("%d\n", sizeof(*ar...
分类:其他好文   时间:2015-05-14 13:42:28    阅读次数:116
python 读取目录文件
#获取脚本所在目录?? print?os.path.split(?os.path.realpath(?sys.argv[0]?)?)[0]?? #获取脚本运行目录?? print?os.getcwd() ? 本地目录读取 import?os.path import?sys root=‘/home/work/‘ for...
分类:编程语言   时间:2015-05-14 12:25:18    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!