21 lines
491 B
C++
21 lines
491 B
C++
#include <iostream>
|
|
#include "Student.h"
|
|
|
|
int main() {
|
|
std::cout << "Hello, World!" << std::endl;
|
|
|
|
std::vector<std::shared_ptr<Student>> test;
|
|
|
|
test = Student::LoadFromFile("students.csv");
|
|
|
|
for (int i = 0; i < test.size(); ++i) {
|
|
std::cout << test[i]->toString();
|
|
}
|
|
|
|
Student::SaveToFile(test,"test.csv");
|
|
|
|
Log(LogType::ERROR) << "This is additional message. We can also put multiple << and other types, not just strings e.g. " << "\n" ;
|
|
|
|
return 0;
|
|
}
|