Adds an extremely basic shared library
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include "File.h"
|
||||
|
||||
File::File(const std::string name):
|
||||
name(name)
|
||||
{
|
||||
}
|
||||
|
||||
const std::string File::getName() const {
|
||||
return name;
|
||||
}
|
||||
|
||||
// vim: set ts=4 expandtab :
|
||||
@@ -1,10 +1,15 @@
|
||||
#include "CLI/CLI.hpp"
|
||||
#include "File.h"
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
CLI::App app{"Just a simple 'hello'"};
|
||||
CLI11_PARSE(app, argc, argv);
|
||||
|
||||
File afile("aname");
|
||||
|
||||
std::cout << "Hello World!" << std::endl;
|
||||
std::cout << "File name is: " << afile.getName() << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user