06 2012 档案

摘要:自己写的,感觉做的很一般,但是0ms,注意数组并不是所谓最大20,我开的100,否则会Runtime Error。#include <stdio.h>#include <stdlib.h>int main(){ int n; int length,count;//count计数最后输出值 int p_element[100]; int r_position[100];//存储右括号在string中的位置 scanf("%d",&n); for(int i=0;i<n;i++) { int s_element[100]={0}; ... 阅读全文
posted @ 2012-06-12 16:56 xiaowenchao 阅读(139) 评论(0) 推荐(0)
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>char h_month[19][7]={"pop","no","zip","zotz","tzec","xul","yoxkin","mol","chen", "yax","zac","ceh","m 阅读全文
posted @ 2012-06-11 21:04 xiaowenchao 阅读(224) 评论(0) 推荐(0)
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>#define LENGTH 6 //小数的位数(含小数点) //将字符转化为数字 unsigned int change (char s[LENGTH], unsigned int s1[LENGTH - 1]){ int ss[LENGTH - 1]; //ss 放未逆置的整数 memset (ss, 0, sizeof(ss)); int k = 0 ; for (int i = 0; i < LENGTH && s[i 阅读全文
posted @ 2012-06-11 15:40 xiaowenchao 阅读(205) 评论(0) 推荐(0)
摘要:clcclearpath1='D:\格式转换\CMU_car_testing_images\car_images3\*.pgm';dir1=dir(path1); path_new='D:\格式转换\CMU_car_testing_images\car_images3\';for i=1:length(dir1) filename=dir1(i).name; I=imread([path_new,filename]); filename=strcat('C:\car_images3\',filename); filename_new=strcat 阅读全文
posted @ 2012-06-11 15:32 xiaowenchao 阅读(612) 评论(0) 推荐(0)