Guest User

Untitled

a guest
Feb 9th, 2019
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Arduino.h>
  2.  
  3. class subject {
  4. public:
  5.   String subjectname;
  6.   String classroom;
  7. };
  8.  
  9. void setup() {
  10.  
  11.     Serial.begin(115200);
  12.  
  13.     subject math;
  14.     math.classroom = "A1";
  15.  
  16.     Serial.print("Classroom is: ");
  17.     Serial.println(math.classroom);
  18. }
  19.  
  20. void loop() { }
RAW Paste Data