码迷,mamicode.com
首页 >  
搜索关键字:argv    ( 3650个结果
冒泡排序
1 #include 2 3 void bubbleAlgorithmSort(int array[], int arrayCount); 4 int main(int argc, const char * argv[]) { 5 6 int array[] = {1,3,2,...
分类:编程语言   时间:2015-01-04 17:00:07    阅读次数:196
gcc编译C++程序
gcc编译C++程序单个源文件生成可执行程序下面是一个保存在文件 helloworld.cpp 中一个简单的 C++ 程序的代码:/* helloworld.cpp */#include int main(int argc,char *argv[]){ std::cout class Speak{ ...
分类:编程语言   时间:2015-01-04 16:58:10    阅读次数:190
cocos2dx触屏事件详解
版本:2.x 平台iso 先看mian.m文件 //创建一个iso应用 int retVal = UIApplicationMain(argc, argv, nil, @"AppController"); iOS系统会调用AppController 的 didFinishLaunchingWithOptions函数,里面做了一些创建界面的东西 该函数内部有如下代码; coc...
分类:其他好文   时间:2015-01-04 15:21:40    阅读次数:640
Linux UDP通信例子
UDP C/S编程的步骤如下图所示////server.c#include #include #include#include #include #include #include #include int main(int argc, char **argv){ if (argc != 2)...
分类:系统相关   时间:2015-01-04 11:53:21    阅读次数:271
uniq.pl
open RH, $ARGV[0]; %dict = (); while(<RH>){ ?chomp; ?$ln = $_; ?if($dict{$ln}){ ??$dict{$ln} ++; ?}else{ ??$dict{$ln} = 1; ?} ? } while(($k,$v) = each %dict){ ?print $k ."\t" . $v. "\n"...
分类:其他好文   时间:2014-12-30 13:43:01    阅读次数:166
linux 编译win32程序
apt-get install mingw32int main(int argc, char *argv){printf("Windows Compiler Test\n");return 0;}i586-mingw32msvc-gcc -o win32.exe main.c
分类:Windows程序   时间:2014-12-30 11:34:59    阅读次数:177
C++多态
有一个注意要点,必须用指针,不能用A a = B()的形式。#include "stdafx.h"#include "Base.h"#include "Class2.h"int _tmain(int argc, _TCHAR* argv[]){ Base* base = new Class2(...
分类:编程语言   时间:2014-12-29 13:38:14    阅读次数:143
zabbix 邮件告警
zabbix环境安装好后,用shell写了个邮件脚本测试都没有问题,就是不发邮件,后来写了个python的邮件替换上了,可以正常发送邮件了,不知道是zabbix不支持shell还是其他问题! #!/usr/bin/python importsmtplib importstring importsys HOST="smtp.163.com" SUBJECT=sys.argv..
分类:其他好文   时间:2014-12-29 12:19:58    阅读次数:198
hdu_1001
1 #include 2 3 int main(int argc, char const *argv[]) 4 { 5 long long n; 6 while(~scanf("%d",&n)){ 7 printf("%d\n\n", (1+n)*n/2); 8...
分类:其他好文   时间:2014-12-28 20:49:33    阅读次数:124
hdu_1000
1 #include 2 3 int main(int argc, char const *argv[]) 4 { 5 int a, b; 6 while(~scanf("%d%d",&a, &b)){ 7 printf("%d\n", a + b); 8 } 9 return 0;10 }
分类:其他好文   时间:2014-12-28 20:41:25    阅读次数:106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!