feat: functional makefile and tmp test program

This commit is contained in:
hexlocation 2025-02-07 13:05:42 +01:00
parent f4e9293e94
commit b054bb09ab
Signed by: hex
GPG key ID: A19EFFAAF8C00FCF
5 changed files with 38 additions and 5 deletions

View file

@ -1,7 +1,14 @@
#include "iostream"
#include <cstring>
#include <cwchar>
#include <string>
int main()
{
std::cout << "imagine a world...\n";
return 0;
int main() {
std::string msg = "hello world";
for (int i = 0; i < msg.length(); i++) {
std::cout << msg[i];
if (i != msg.length() - 1 && msg[i+1] != ' ' && msg[i] != ' ')
std::cout << '-';
}
return 0;
}