Witam, jak można zakomunikować programowi aby przy while (),kiedy string "we" jest pusty, zwrócił return(0)? próbowałem (tak jak jest w kodzie na dole) " while(!we.empty());", lecz nie przyniosło to skutków
#include <iostream>
#include <string>
#include <fstream>
#include <cstdlib>
using namespace std;
int tabl[10];
int ile=0,liczb;
string we;
int main()
{
do {
//kod
}
while (!we.empty());
return 0;
}
Z góry dziękuje za pomoc