精英盒子 -> 程序设计 -> POJ1028 Web Navigator Post 2 [打印本页]

墨阐 2012-02-17 17:32

POJ1028 Web Navigator Post 2

依然CE.这次不是指针了,说string不能用==和!=与char比较……错误提示里用来的比较常量直接用数字显示了.其他除了少写两个字之外没什么.
#include
#include
#include
using namespace std;
int main(){
vector url;
vector::iterator ps;
url[0]="http://www.acm.org";
string cmd,inpurl;
while(cin >> cmd && cmd!='QUIT'){
if('VISIT'==cmd) if(cin >> inpurl && !inpurl.empty()) {url.push_back(inpurl);ps=url.end();cout

jybox 2012-02-17 17:47
代码不全

墨阐 2012-02-17 22:10
#1 PW总这样

内容来自[手机版]




Powered by phpwind v8.7 Code ©2003-2011 phpwind
Time 0.040125 second(s),query:5 Gzip enabled