2011年3月18日

摘要: 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2115题目有一句话:“Output a blank line between two cases.“。开头提交Presentation Error,很是上火!!!总是忽略这个地方,调了半天~~~终于AC~~~AC代码:#include<stdio.h>#include<string.h>#include<stdlib.h>//包含qsort函数的头文件;struct node{//运动员结构体定义; char name[20],time[6]; int t;//时间( 阅读全文
posted @ 2011-03-18 18:46 江南烟雨hust 阅读(147) 评论(0) 推荐(0)
摘要: 【1】输入一个十进制数,将其先转化为八进制数,然后再输出。参考代码:#include<stdio.h> #include<stdlib.h>int main() { int a = 0 ; printf ("Please enter a decimal number:") ; scanf ("%d",&a) ; printf ("%d's octal number is %o/n",a,a) ; //system("pause");} 数据测试:【2】用户输入一个文本名,编程 阅读全文
posted @ 2011-03-18 18:38 江南烟雨hust 阅读(182) 评论(0) 推荐(0)

导航