fork download
  1. #include <vector>
  2. #include <string>
  3. #include <iostream>
  4. #include <iomanip>
  5.  
  6. using namespace std;
  7.  
  8. typedef void (*tCallBack)(); // ?????????? ???? ??? ?????? ??????? ??? ???????
  9. struct tControl {
  10. uint16_t x1, y1, x2, y2; // ?????????? ????????
  11. uint8_t autorepeat; // ?????????? ???????????
  12. tCallBack exec; // ???????, ?????????? ??? ???????
  13. };
  14.  
  15. double Iref;
  16.  
  17. int main(int argc, const char * argv[])
  18. {
  19.  
  20. tControl controls[100];
  21.  
  22. controls[0].x1 = 200;
  23. controls[0].y1 = 150;
  24. controls[0].x2 = 250;
  25. controls[0].y2 = 200;
  26. controls[0].autorepeat = 0;
  27. controls[0].exec = []()->void{Iref += 0.1;};
  28.  
  29. }
  30.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty