Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. class ClassA
  4. {
  5. public:
  6. int a, b;
  7.  
  8. void add();
  9.  
  10. };
  11.  
  12. void ClassA::add()
  13. {
  14.  
  15. // printf("sdf");
  16. }
  17.  
  18. #import "ViewController.h"
  19. #import "ClassA.cpp"
  20. - (void)viewDidLoad
  21. {
  22. ClassA a;
  23. a.add();
  24.  
  25.  
  26.  
  27. [super viewDidLoad];
  28. // Do any additional setup after loading the view, typically from a nib.
  29. }
  30.  
  31. -cclib -lstdc++
  32.  
  33. #include <iostream>
  34.  
  35. class ClassA
  36. {
  37. public:
  38. int a, b;
  39.  
  40. void add();
  41.  
  42. };
  43.  
  44. #include "ClassA.h"
  45. void ClassA::add()
  46. {
  47.  
  48. // printf("sdf");
  49.  
  50.  
  51. }
  52.  
  53. #import "ClassA.h"
  54. ... the rest of the file ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement