+ Rename output executables to match directory structure + Remove libraries for small examples + Supress -Wreturn-type warnings for singleton that is intentionally not copyable
19 lines
646 B
C++
19 lines
646 B
C++
/*##############################################################################
|
|
## Author: Shaun Reed ##
|
|
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
|
## ##
|
|
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
|
################################################################################
|
|
*/
|
|
|
|
#include <lib-example.hpp>
|
|
#include <iostream>
|
|
|
|
void PrintHello(int n) {
|
|
while (n) {
|
|
std::cout << n << ". " << "Hello World!" << std::endl;
|
|
--n;
|
|
};
|
|
}
|
|
|