请教这段程序在VC.NET下编译的问题,在线等待
V0id 2003-02-09 10:15:11 C++ Essential 上的:
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main ()
{
string word;
vector<string> text;
while ( cin >> word)
text.push_back(word);
sort ( text.begin(), text.end() );
for ( int ix = 0; ix < text.size(); ++ix );
~~
这里会是什么问题?
cout << text[ix] << ' ';
}
用VC.NET编译成功,但是有一个warning:
e:\Works\C\2091\2091.cpp(17): warning C4018: “<” : 有符号/无符号不匹配
而且最后编译出来的exe执行什么放映都没有?
why??