User Profile

Collapse

Profile Sidebar

Collapse
yue219
yue219
Last Activity: Nov 15 '07, 07:58 AM
Joined: Oct 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • yue219
    replied to Turn order into bill C++
    in C
    I think what im stuck on is how to put that menu in a array.
    See more | Go to post

    Leave a comment:


  • yue219
    started a topic Turn order into bill C++
    in C

    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
    ...
    See more | Go to post

  • yue219
    replied to Creating an array using class in C++
    in C
    Ohh thank you mucho =]...
    See more | Go to post

    Leave a comment:


  • yue219
    started a topic Creating an array using class in C++
    in C

    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';
    ...
    See more | Go to post

  • yue219
    replied to Help with 2-D arrays
    in C
    Thank you, thank you =]...
    See more | Go to post

    Leave a comment:


  • yue219
    replied to Help with 2-D arrays
    in C
    Ah, thank you. Hummm... but what is the purpose of a for loop? Could i also use a "while" and "if" loop?...
    See more | Go to post

    Leave a comment:


  • yue219
    started a topic Help with 2-D arrays
    in C

    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
    Code:
    cout << Grid << endl;
    Everytime i do, i get the number 0012FF1C.
    Here is the code that I wrote:

    Code:
               .
               .       
               .
            const int Row = 4;
    	const int Column = 3;
    ...
    See more | Go to post
No activity results to display
Show More
Working...