Hey there, my code is nearly perfect, but I need help with my input for a value. here's the snippet of my code:
i know that input puts a space after itself, and thats throwing off my output, how would i use getline instead of input?
** side note, im doing this on an online compiler, and its difficult to make changes (intellisense doesn't kick in)
cout << setw(15) << right <<"$" ; double Amount; input >> Amount; cout.setf(ios::showpoint); cout.setf(ios::fixed); cout.precision(2); cout.width(8); input.ignore(); cout << Amount << endl;
i know that input puts a space after itself, and thats throwing off my output, how would i use getline instead of input?
** side note, im doing this on an online compiler, and its difficult to make changes (intellisense doesn't kick in)