摘要: 这题主要是字符读入的问题吧,对于NAME的读入,一直getchar()到',',对于后面的五个属性from,to,length,people number,light只读数字就可以了,而且他们的处理相同,可以用一个函数来实现下面是代码:1. #include<iostream>2. #include<cstdio>3. #include<cstring>4. #include<queue>5. #include<algorithm>6. using namespace std;7. struct Edge{8. lon 阅读全文
posted @ 2013-03-11 17:50 ustc-acm 阅读(169) 评论(0) 推荐(0) 编辑