Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Sample {
- public:
- struct Node {
- bool seen = false;
- int cost = 0;
- int priority = 0;
- };
- Node a;
- };
- // To execute C++, please define "int main()"
- int main() {
- auto words = { "Hello, ", "World!", "\n" };
- for (const string& word : words) {
- cout << word;
- }
- Sample s;
- cout << s.a.priority;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement