Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90391553
main.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 06:14
Size
544 B
Mime Type
text/x-c
Expires
Sun, Nov 3, 06:14 (2 d)
Engine
blob
Format
Raw Data
Handle
22067200
Attached To
R7040 TinyXML2 application examples
main.cpp
View Options
/*
* main.cpp
*
* Created on: Jun 26, 2018
* Author: vachoux
*/
#include "xml_utils.h"
#include "global.h"
#include "Book.h"
#include "Library.h"
#include <string>
using namespace std;
int main() {
const string XML_FILE = "bookstore2.xml";
Library* my_library;
try {
// dump_xml(XML_FILE);
my_library = new Library(XML_FILE);
}
catch (string& msg) {
err_msg(msg);
exit(EXIT_FAILURE);
}
my_library->print();
info_msg("End");
return 0;
}
Event Timeline
Log In to Comment