摘要: /*可以用母函数解决;前几天练熟了,再试试手;*/http://acm.hdu.edu.cn/showproblem.php?pid=2082#include #include #include #include #include #include #include #define maxn 1005 using namespace std; int main(int argc, char *argv[]) { int word[27],a[55],b[55]; int n; cin>>n; while(n--) { for(int i = 0; i >word[... 阅读全文
posted @ 2013-03-06 22:07 简洁是智慧的灵魂 阅读(149) 评论(0) 推荐(0)
摘要: /*再水一题sort()应用+strcmp()应用;*/http://acm.hdu.edu.cn/showproblem.php?pid=1236点击打开链接#include #include #include #include #include #include #include #define maxn 1005 struct student { int grade; char name[21]; }stu[maxn]; int cmp(student s1, student s2) { if(s1.grade>s2.grade) return 1; if(s... 阅读全文
posted @ 2013-03-06 19:07 简洁是智慧的灵魂 阅读(109) 评论(0) 推荐(0)