/ Published in: C++
Expand |
Embed | Plain Text
#include <iostream> #include <iomanip> #include <string> using namespace std; struct Cart { string item; double price; }; const int ARRAY_SIZE = 1000; Cart cart [ARRAY_SIZE]; void showAll(int count); void void void int main() { char choice = ' '; int count = 0; string itemName; cout << "Welcome to Patrick’s Grocery Calculator.\nPlease enter the item you want to add to cart:" << endl; getline(cin, itemName); cout.setf(ios::fixed, ios::floatfield); cout.setf(ios::showpoint); cout.precision(2); return 0; }
You need to login to post a comment.
