Code:
#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);
}
return 0;
}
it's giving me this error
" error C2059: syntax error : 'return "
please help