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(...
Type: Posts; User: billytsc
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(...
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...
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....
thank u for ur help!
This is a program which is backwards.. how can i reverse it?
#include <iostream>
using namespace std;
void printForwards( int );
int main( void )
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...