Hey EZ
every time i try to run a codes with strings in them i get the notification that the program has stopped working can some pliz help me to rectify this am using CODEBLOCKS
Even this code won't run am not saying am the one who wrote it but am just using it as an example
// stringstreams
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main ()
{
string mystr;
float price=0;
int quantity=0;
cout << "Enter price: ";
getline (cin,mystr);
stringstream(mystr) >> price;
cout << "Enter quantity: ";
getline (cin,mystr);
stringstream(mystr) >> quantity;
cout << "Total price: " << price*quantity <<
endl;
return 0;
}