Last active 1700916777

Broken piece of code to learn C++

init.cpp Raw
1#include <cstdio>
2#include <sstream>
3
4void user_write(const char *string) {
5 const char* nice_string;
6 //std::ostringstream nice_string;
7 nice_string << string;
8 nice_string << "\r\n";
9 //printf(string + "\r\n");
10 printf(nice_string);
11}
12
13int main(/*int argc, char **argv*/) {
14 user_write("example\r\n");
15 printf("should be same");
16 return 0;
17}
18