Prechádzať zdrojové kódy

little: Make this build by default, and add some curlies

Andreas Kling 5 rokov pred
rodič
commit
7b3f1218be
1 zmenil súbory, kde vykonal 6 pridanie a 3 odobranie
  1. 6 3
      Base/home/anon/little/main.cpp

+ 6 - 3
Base/home/anon/little/main.cpp

@@ -1,9 +1,12 @@
 #include <stdio.h>
+#include <sys/stat.h>
 
 int main(int, char**)
 {
-    // This is a comment :^)
-    printf("Hello friends!\n");
-    mkdir("/tmp/xyz", 0755);
+    for (int i = 0; i < 3; ++i) {
+        // This is a comment :^)
+        printf("Hello friends!\n");
+        mkdir("/tmp/xyz", 0755);
+    }
     return 0;
 }