Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122030033
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
Tue, Jul 15, 09:54
Size
544 B
Mime Type
text/x-c
Expires
Thu, Jul 17, 09:54 (2 d)
Engine
blob
Format
Raw Data
Handle
27356571
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