mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
init
This commit is contained in:
commit
c94580f25c
15 changed files with 711 additions and 0 deletions
17
include/greeter.h
Normal file
17
include/greeter.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace greeter {
|
||||
|
||||
enum class LanguageCode { EN, DE, ES, FR };
|
||||
|
||||
class Greeter {
|
||||
std::string name;
|
||||
|
||||
public:
|
||||
Greeter(std::string name = "World");
|
||||
std::string greet(LanguageCode lang = LanguageCode::EN) const;
|
||||
};
|
||||
|
||||
} // namespace greeter
|
Loading…
Add table
Add a link
Reference in a new issue