Advertisement
Guest User

Assorted Testing Code

a guest
Jan 28th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.01 KB | None | 0 0
  1. using namespace std;
  2. #include <iostream>
  3.  
  4. /*
  5. * Name: [REDACTED]
  6. * Assignment: [REDACTED]
  7. * Date: [REDACTED]
  8. * Description: [REDACTED]
  9. */
  10.  
  11. int main() {
  12.  
  13.     int x = 5;
  14.  
  15.     int y[25][54];
  16.     cout << sizeof(y)/4.0;
  17.  
  18.     /*cout << "Please input an integer: " << endl;
  19.  
  20.     cin >> x;
  21.  
  22.     if (x < 0)
  23.         cout << "True";
  24.     if (x >= 0)
  25.         cout << "False";*/
  26.  
  27.     cout << endl;
  28.  
  29.     cout << endl;
  30.  
  31.  
  32.  
  33.     cout << endl;
  34.     system("Pause");
  35.  
  36.     /*int x;
  37.     int y;
  38.  
  39.     bool z = 0;
  40.     bool j = 1;
  41.  
  42.     cout << "z = " << z << endl;
  43.     cout << "j = " << j << endl;
  44.  
  45.     for (int i = 3; i > 0; i--) {
  46.  
  47.         cout << "Enter an Integer: ";
  48.         cin >> x;
  49.  
  50.         cout << "Enter Second Integer: ";
  51.         cin >> y;
  52.  
  53.         if (x < 0)
  54.             cout << "X is less than 0\t" << x;
  55.  
  56.         else if (x == 0)
  57.             cout << "Special Case: x == 0";
  58.  
  59.         else if (x == 27)
  60.             cout << "Special Case: x == 27";
  61.  
  62.         else if (x == 56 || y == 0)
  63.             cout << "Special Case: x == 56, or y == 0";
  64.  
  65.         else
  66.             cout << "Invalid";
  67.  
  68.         cout << endl << "End" << endl;
  69.  
  70.         system("Pause");*/
  71.     //}
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement