SDL2 and a Open Sans font added
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
// myDynamicLibrary.cpp
|
||||
|
||||
#include "myDynamicLibrary.h"
|
||||
#include <iostream>
|
||||
#include "myDynamicLibrary.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void myDynamicLibrary::sayHelloDynamic()
|
||||
string myDynamicLibrary::sayHelloDynamic()
|
||||
{
|
||||
cout << "Hello from the dynamic library!\n";
|
||||
cout << "You have given two numbers a ";
|
||||
cout << myDynamicLibrary::a << " and number b ";
|
||||
cout << myDynamicLibrary::b << "\n";
|
||||
std::string text = "You have given two numbers a ";
|
||||
text += std::to_string(myDynamicLibrary::a);
|
||||
text += " and number b ";
|
||||
text += std::to_string(myDynamicLibrary::b);
|
||||
text += ".";
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
string myDynamicLibrary::text(){
|
||||
return "This is the demo text from the library";
|
||||
}
|
||||
|
||||
int myDynamicLibrary::multiply(){
|
||||
return myDynamicLibrary::a * myDynamicLibrary::b;
|
||||
}
|
||||
|
||||
@@ -2,13 +2,16 @@
|
||||
|
||||
#ifndef MYDYNAMICLIBRARY_H
|
||||
#define MYDYNAMICLIBRARY_H
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
class myDynamicLibrary{
|
||||
public:
|
||||
int a;
|
||||
int b;
|
||||
|
||||
void sayHelloDynamic();
|
||||
std::string text();
|
||||
std::string sayHelloDynamic();
|
||||
int multiply();
|
||||
int devide();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user