码迷,mamicode.com
首页 >  
搜索关键字:argc    ( 2629个结果
毕业课题---之ostu算法二值化
二值化ostu算法: #include "stdafx.h" #include   #include   #include   #include   int Otsu(IplImage* src);      int _tmain(int argc, _TCHAR* argv[])   {       IplImage* img = cvLoadImage("L...
分类:编程语言   时间:2015-06-23 13:36:18    阅读次数:131
经典范例:文件的复制
#include#include#include#include#include#include#define BUFFER_SIZE 1024int main(int argc ,char **argv){ int from_fd,to_fd; int bytes_read,bytes...
分类:其他好文   时间:2015-06-22 22:03:30    阅读次数:175
递归函数的经典例子(汉诺塔问题)
#include void HN(int n,char a,char b,char c); int main(int argc,char *argv[]) {  int Dish_num;  printf("Please Input the Dish num: ");   scanf("%d",&Dish_num);  while(Dish_num != 0){   printf(...
分类:其他好文   时间:2015-06-22 15:02:22    阅读次数:144
柔性数组
typedef struct mystruct{ int a; double b; char c[0];}Ms,*Pms;int main(int argc, char* argv[]){ Ms test; coutc,c); cout<<sizeof(*pms)<<endl; free(pms);...
分类:编程语言   时间:2015-06-20 19:32:04    阅读次数:112
关于栈空间和堆空间的问题
操作系统对于内存的两种管理方式如鹏网 《C语言也能干大事》http://www.rupeng.com/Courses/Index/12第三章透彻讲指针 之 第 15 节: 栈空间平时我们定义的变量都是分布在栈空间里,如下面的程序所示1 #include 2 int main(int argc, ch...
分类:其他好文   时间:2015-06-20 13:06:22    阅读次数:269
Objective-C 语法之 Debug 表达式
main.m 1 #import 2 #import "TestClass.h" 3 4 int main(int argc, const char * argv[]) { 5 @autoreleasepool { 6 NSString *purposeInfo = @"...
分类:其他好文   时间:2015-06-20 11:53:04    阅读次数:109
Objective-C----NSString 、 NSMutableString
直接上代码:// // main.m // // Created by on 15/4/2. // Copyright (c) 2015年 . All rights reserved. //#import #import "Tire.h" int main(int argc, const char * argv[]) { //NSSt...
分类:其他好文   时间:2015-06-20 10:35:46    阅读次数:210
QT 设计启动界面
今天为QT设计开机界面,从网上copy的是代码先张贴如下:#include #include #include #include int main(int argc, char *argv[]){ QApplication app(argc, argv); QSplashScreen *...
分类:其他好文   时间:2015-06-20 10:34:02    阅读次数:110
QT设计开机启动画面,【转载】亲测成功
main.cpp#include #include #include #include #include #include #include int main(int argc, char *argv[]){ QApplication app(argc, argv); QPixmap p...
分类:其他好文   时间:2015-06-20 10:29:51    阅读次数:129
Objective-C-字符串的使用
typedef struct Person{ int age; char *name;}Person;int main(int argc, const char * argv[]) { @autoreleasepool { Person person; person.name ="...
分类:其他好文   时间:2015-06-19 20:16:52    阅读次数:80
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!