07 2013 档案

摘要:单链表操作,包括创建,插入,删除,排序,逆置 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef struct student 8 { 9 int data; 10 struct student *next; 11 }node; 12 13 node *creat() 14 { 15 node *head,*p,*s; 16 int x,cycle=1; 17 head=(node*)malloc(sizeof(node)); 18 p=head; 1... 阅读全文
posted @ 2013-07-31 15:43 mood3604 阅读(270) 评论(0) 推荐(0)
摘要:语言识别问题时间限制(普通/Java):10000MS/30000MS 运行内存限制:65536KByte问题描述给你一段英文或德文文字,你能编程识别它可能是哪种语言吗?研究发现,统计文字中字母“t”(或“T”)与“s”(或“S”)出现的次数,如果给定文字中“t”(或“T”)的出现次数比“s”(或“S”)多,则可能为英文,否则可能为德文。问题输入输入包括多个行数,首先给出整数N(1#include#include#includeusing namespace std;#define NUM 100int language_rec( char (*str)[NUM],int num){ ... 阅读全文
posted @ 2013-07-02 11:16 mood3604 阅读(219) 评论(0) 推荐(0)