feat: functional makefile and tmp test program
This commit is contained in:
parent
f4e9293e94
commit
b054bb09ab
5 changed files with 38 additions and 5 deletions
15
src/main.cpp
15
src/main.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue