the error isCode:#include <iostream> using namespace std; int main() { const int SIZE = 5; int values[SIZE], counter, temp; bool swap; for (counter=0; counter<SIZE; counter++) { cout<<"please input a number"<<endl; cin>>values[counter]; } do { swap = false; for (counter=0; counter < values[counter - 1]; counter++) { if (values[counter+1] > values[counter]) { temp = values[counter]; values[counter +1 ] = values[counter]; values[counter] = temp; swap=true; } } } while(swap) }
error C2059: syntax error : '}'
please help me



LinkBack URL
About LinkBacks



