hello world

This commit is contained in:
hexlocation 2025-02-07 19:04:21 +00:00
parent 4fef70020b
commit 6f85110b9b
8 changed files with 63 additions and 37 deletions

View file

@ -1,14 +0,0 @@
#include "iostream"
#include <cstring>
#include <cwchar>
#include <string>
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;
}