1 #include 2 #include 3 #define WAY "save.txt" 4 int main(int argc,int argv[]) 5 { 6 FILE *fp_read,*fp_write; 7 8 fp_read=fopen(WAY,"r+"...
分类:
其他好文 时间:
2015-04-30 23:05:25
阅读次数:
154
第一题:101个数中只有一个数字不同,找出这个数第二题:102个数字,有两个互不相同的数和其他数字不同,找出这两个数 1 int main(int argc,char* argv[]) 2 { 3 //101个数有一个不一样的 4 int arr[101]; 5 for(in...
分类:
其他好文 时间:
2015-04-30 15:34:02
阅读次数:
110
VB6.0为了提供命令行参数的支持,提供了Command()接口,于是通过 Command() 函数可以得到所有传入的参数,但是很不友好的是,VB的所有参数都被合在了一起,成为了一个字符串,当有多个参数时,要想使用就不那么方便了,于是,于是就有了下面的代码,代码我不记得是来自哪里了,如果你是文章的作...
分类:
编程语言 时间:
2015-04-30 12:08:25
阅读次数:
143
转自:http://www.chinaz.com/program/2010/0129/105370.shtml$_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。$_SERVER['argv'] #传递给该脚本的参数。$_SERVER['argc...
分类:
Web程序 时间:
2015-04-30 12:02:10
阅读次数:
120
代码:#import extern uint64_t dispatch_benchmark(size_t count, void (^block)(void));void processNumber(NSNumber *n);int main(int argc, const char * argv[...
分类:
其他好文 时间:
2015-04-30 10:27:26
阅读次数:
96
#include #include int DayofYear(int year, int month, int day);#define ISYEAR(year) (year%400==0) ||(year%4==0&&year%100!=0)int main(int argc, char *ar...
分类:
其他好文 时间:
2015-04-29 21:35:51
阅读次数:
176
OpenCV_图像梯度化
#include "stdafx.h"
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
using namespace std;
using namespace cv;
int main(int argc, char **argv)
{
CvPoint center;//定义一个二维坐标的点
do...
分类:
其他好文 时间:
2015-04-29 19:54:09
阅读次数:
180
//
// main.m
// NSSet
//
// Created by Passer-by on 15-3-23.
// Copyright (c) 2015年 MAC. All rights reserved.
//
#import
int main(int argc, const char * argv[])
{
@autoreleasepool
{
...
分类:
移动开发 时间:
2015-04-29 17:07:33
阅读次数:
140
1 #include 2 #include 3 #include 4 int main(int argc, char* argv[]) 5 { 6 char *s[]={"man","woman","girl","boy","sister"}; 7 char* *q=NULL; ...
分类:
其他好文 时间:
2015-04-29 11:32:59
阅读次数:
127
#include #include #include int main(int argc, const char * argv[]) { // 统计键盘输入的字符中字母,数字,其他字符的个数,ctl+z结束 //打印出统计图 int alp,num,oth; char...
分类:
其他好文 时间:
2015-04-29 00:40:14
阅读次数:
182