As pointed out by Errichto and satyaki3794, we can just typecast vector.size() to an int, and use it normally. Like this: for(int i=0;i<(int)vector.size()-1 ...
確定! 回上一頁