User Profile
Collapse
-
I think what im stuck on is how to put that menu in a array. -
Turn order into bill C++
Language is C++.
I dont know how to take what the user orders and calculate their bill. I used a class. Heres my code:
...Code:#include <iostream> #include <string> #include "Headerfile.h" using namespace std; int main () { //This prints out the menu Menu ChoosingAnItem; ChoosingAnItem.menu(); //This asks the user what -
-
Creating an array using class in C++
Im having trouble with this one. I need to create a grid using class, but not sure how to write the code. Please i just need hints =]
...Code://array size for Template const int R = 4; const int C = 3; //This is what the player sees upon starting the game. char Template[R][C]; Template[0][0] = 'X'; Template[0][1] = 'X'; -
-
Ah, thank you. Hummm... but what is the purpose of a for loop? Could i also use a "while" and "if" loop?...Leave a comment:
-
Help with 2-D arrays
Language: C++
Im having a little trouble with understanding how to print an 2-D array. I need to print a 4x3 grid. How come i cant print out the array by typing in
Everytime i do, i get the number 0012FF1C.Code:cout << Grid << endl;
Here is the code that I wrote:
...Code:. . . const int Row = 4; const int Column = 3;
No activity results to display
Show More
Leave a comment: