Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Sample {
  5. public:
  6. struct Node {
  7. bool seen = false;
  8. int cost = 0;
  9. int priority = 0;
  10. };
  11.  
  12. Node a;
  13. };
  14.  
  15. // To execute C++, please define "int main()"
  16. int main() {
  17. auto words = { "Hello, ", "World!", "\n" };
  18. for (const string& word : words) {
  19. cout << word;
  20. }
  21.  
  22. Sample s;
  23. cout << s.a.priority;
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement