二值化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
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
直接上代码://
// 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设计开机界面,从网上copy的是代码先张贴如下:#include #include #include #include int main(int argc, char *argv[]){ QApplication app(argc, argv); QSplashScreen *...
分类:
其他好文 时间:
2015-06-20 10:34:02
阅读次数:
110
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
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