Coursework

Revision:
23:f72175fb49ed
Parent:
22:82b01fdfc61f
Child:
24:a88c4941a25e
--- a/main.cpp	Tue Jan 18 23:12:23 2022 +0000
+++ b/main.cpp	Wed Jan 19 16:05:18 2022 +0000
@@ -95,6 +95,17 @@
     // return 0;
      }
      
+     int Scan1[10];
+        int Scan1Input(){;
+        cin >> Scan1[0];
+        cin >> Scan1[1];
+        cin >> Scan1[2];
+        cin >> Scan1[3];
+        cin >> Scan1[4];
+        cin >> Scan1[5];
+        cin >> Scan1[6];
+        cin >> Scan1[7];
+        return Scan1[0,1,2,3,4,5,6,7,8,9,10];}
 
 //void returnme(){
 //int num;
@@ -173,28 +184,32 @@
  
     while(1) {
         // section to try to get POC of number comparitor without using the US for repeatablity// to get if statements correct possibly change to switch 
-        int num1;
+        //int Scan1[10];
         int num2;
         int num3;
         int num4;
         cout << "Test value collection";
-        cin >> num1;
-        cin >> num2;
-        cin >> num3;
-        cin >> num4;
-        cout << num1;
-        if (num1 >num2){
+     Scan1Input();
+  
+        cout << Scan1[2];
+        cout << Scan1[6];
+        /*       if (Scan1[0] >Scan1[1]){
             cout <<'x';
-            }else {
-            cout <<'-';}
+            }else if (Scan1[0]=Scan1[1]){
+            cout <<'0';}
+            else {
+                cout <<'-';}
+
             if (num2 >num3){
             cout <<'x';
             }else {
-            cout <<'-';}
+            cout <<'-';
+            }
             if (num3 >num4){
             cout <<'x';
             }else {
             cout <<'-';}
+            } */
         
         /////////////////////////////////////////////////////////////////
         switch(PressA){
@@ -246,7 +261,7 @@
      }
         
         }
-        }
+        
         /*
 int button_counter;
 if (g_buttonA_flag){
@@ -347,7 +362,7 @@
     }  
  }
  */
- 
+ }
  
    int buttonCountA(){
         PressA++;