Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <fstream>
  5. #include "tinyxml2.h"
  6.  
  7. using namespace std;
  8. using namespace tinyxml2;
  9.  
  10. int main(int argc, const char* argv[]) {
  11.  
  12. XMLDocument doc;
  13. doc.LoadFile( "ConfigurationFile.xml" );
  14.  
  15. const char* title = doc.FirstChildElement( "ConfigurationFile" )->FirstChildElement( "delayInSeconds" )->GetText();
  16. printf( "Name of play (1): %s\n", title );
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement