Unbenannt
public text v1 · immutable#include "stdafx.h"
string bomistring;
float price;
int quantity;
int _tmain(int argc, _TCHAR* argv[])
{cout << "enter a price: ";
getline (cin, bomistring);
stringstream(bomistring) >> price;
cout << "Enter a quantity: ";
getline (cin, bomistring);
stringstream(bomistring) >> quantity;
cout << "You have to pay all in all: " << price*quantity << endl;
system ("pause");
return 0;
}