No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[CODE] using namespace std; int main(int argc, char *argv[]) { int item_weight; // ITEM WEIGHT IN GRAMS double item_unit_price; //ITEM UNIT PRICE ($) int quantity_required; // QUANTITY REQUIRED //ENTER ITEM WEIGHT IN GRAMS----------------------------------------------------- cout << "ENTER ITEM WEIGHT IN GRAMS: "; // prompt for input item_weight cin >> item_weight; // … |
|
[CODE]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { char a_char; int cu = 1; while (cu != -1) { cin>>a_char; cout<<"Is a digit!" << a_char << endl; } system("PAUSE"); return EXIT_SUCCESS; }[/CODE] When I input a132, the output is: [B]Is a digit!a Is a digit!1 … |