while and string

how can I put a string in a while loop
Could you elaborate, because I have no idea what you mean. What is it that you are trying to accomplish?
I'm trying to convert roman numeral to regular numbers(ex. III=3)
by using strings however i can't figure out how to put a sting in a loop.
here what i have

#include<iostream>
#include <string>
using namespace std;
int main ()
{

string roman_numeral;

cout<< "input Roman Numeral:";
cin>> roman_numeral;

while()
{


}
return 0;
}
Topic archived. No new replies allowed.