Advertisement
Guest User

Untitled

a guest
Feb 9th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  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() { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement