consolidate all repos to one for archive
This commit is contained in:
20
semester_2/programiranje_2/naloga1102/main.cpp
Normal file
20
semester_2/programiranje_2/naloga1102/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user