SDL2 and a Open Sans font added

This commit is contained in:
edwin
2025-02-22 18:38:16 +01:00
parent 6e8e09149f
commit 948a9a76a6
44 changed files with 322 additions and 45 deletions

View File

@@ -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;
}

View File

@@ -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();
};