Go to the source code of this file.
◆ main()
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 6 of file main.cpp.
    6                                {
    7    printf("Start\n\n");
    9    printf("\n");
   11    printf("\nEnd\n");
   12    return 0;
   13}
 
References testDog(), and testNumbers().
 
 
◆ testDog()
Definition at line 27 of file main.cpp.
   27                   {
   28    printf("Testing Dog...\n");
   29    Dog* fido = 
new Dog(
"Fido");
 
   30    for (int i = 0; i < 5; i++) {
   32    }
   34    for (int i = 0; i < 5; i++) {
   36    }
   42    printf("Dog test complete.\n");
   43}
void bark(void)
Causes the dog to bark.
 
void run(int minutes)
Causes the dog to run.
 
void sleep(int minutes)
Causes the dog to sleep.
 
 
References Dog::bark(), Dog::run(), and Dog::sleep().
Referenced by main().
 
 
◆ testNumbers()
      
        
          | void testNumbers  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
Definition at line 15 of file main.cpp.
   15                       {
   16    int x = 5;
   17    int y = 6;
   18    printf("Testing numbers...\n");
   19    printf(
"%d squared is %d\n", x, 
square(x));
 
   20    printf(
"%d times %d is %d\n", x, y, 
multiply(x, y));
 
   22    printf(
"%d magicked is %d\n", x, 
magic(x));
 
   24    printf("Number test complete.\n");
   25}
int magic(int x)
Function for magic math.
 
int multiply(int x, int y)
Multiplies two numbers.
 
int square(int x)
Squares a number.
 
int battleOfTheFiveGods()
Multiplies all the gods together.
 
#define MAGIC_NUMBER
Magic number for magical computation.
 
 
References battleOfTheFiveGods(), magic(), MAGIC_NUMBER, multiply(), and square().
Referenced by main().