Search:

Type: Posts; User: billytsc

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,135

    arrays and pointers

    may i ask what's the output of this code? what i got is 2 5 1 4.. but this doesn't seem to make any sense.

    const int MAXSIZE = 4;
    int data[ MAXSIZE ] = { 2, 5, 1, 4 };
    int count;

    for(...
  2. Thread: class

    by billytsc
    Replies
    0
    Views
    1,139

    class

    This is the declaration for the class, the program should take the input a number of no more than 25 numbers. Then the data will be stored in a vector of short int of size 25. Each digit is...
  3. Thread: probability

    by billytsc
    Replies
    0
    Views
    1,009

    probability

    how can i start writing a program that if there's two dice, and the user inputs the number of faces for the dice (6 is usually the case), then it will list all the possible combinations?

    e.g....
  4. Thread: Recursion

    by billytsc
    Replies
    4
    Views
    1,106

    thank you

    thank u for ur help!
  5. Thread: Recursion

    by billytsc
    Replies
    4
    Views
    1,106

    This is a program which is backwards.. how can i...

    This is a program which is backwards.. how can i reverse it?



    #include <iostream>
    using namespace std;

    void printForwards( int );

    int main( void )
  6. Thread: Recursion

    by billytsc
    Replies
    4
    Views
    1,106

    Recursion

    I need some help on my program. By using recursion, i have to write a program that give the output in vertical order... e.g. if i input 1234, the ouput will be:
    1
    2
    3
    4
    I don't know how the...
Results 1 to 6 of 6