ennn...if you use chinese charactors in editer, the suggestions will make mistakes...
e.g.
int main()
{
typedef map<string,vector<string> >samap;
samap Sa;
Sa["+?+?"].push_back("+?+?-+-?");
// ^ ^ these are chinese characters
cout<<Sa["+?+?"][0]<<endl;
// ^ this is another
getchar();
return 0;
}
if you input in the line in which have chinese character,like this:
Sa["+?+?"].push_back("+?+?-+-?") |;
then input "vec":
Sa["+?+?"].push_back("+?+?-+-?") vec|;
now suggestion will show "vector". ok,press TAB, but it changes to:
Sa["+?+?"].push_back("+?+?-+-?") vecvector |;
the syntax is wrong,and there are added three space after thr syntax.i think that because there three chinese character before caret in this line.
another example,
cout<<Sa["+?+?"][0]<<endl |;
when you input "vec",as:
cout<<Sa["+?+?"][0]<<endl vec|;
now suggestion shows.press TAB, it changes to:
cout<<Sa["+?+?"][0]<<endl vvector |;
only one space because these is only one chinese character in this line before the caret.
it is all right when there are only english letters before the caret.
i use Visual Studio 2008, installed just lastnight...