Initial Course
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include "basic_io.hpp"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
namespace fundamentals {
|
||||
|
||||
auto join_words(const std::vector<std::string>& words, char separator) -> std::string {
|
||||
// TODO: Join words with separator, no trailing separator.
|
||||
(void)words;
|
||||
(void)separator;
|
||||
return {};
|
||||
}
|
||||
|
||||
auto parse_integers(const std::string& csv) -> std::vector<int> {
|
||||
// TODO: Parse comma-separated integers (e.g. "1,2,3").
|
||||
(void)csv;
|
||||
return {};
|
||||
}
|
||||
|
||||
auto format_score(const std::string& player, int score) -> std::string {
|
||||
// TODO: Return "<player> scored <score> points".
|
||||
(void)player;
|
||||
(void)score;
|
||||
return {};
|
||||
}
|
||||
|
||||
} // namespace fundamentals
|
||||
Reference in New Issue
Block a user