diff garf.cpp @ 41:37f231f85a67

add tabs to some c++ files and fix win95kg.cpp
author Paper <mrpapersonic@gmail.com>
date Wed, 30 Jun 2021 02:38:59 -0400
parents 05978f04869b
children
line wrap: on
line diff
--- a/garf.cpp	Mon Jun 21 15:16:15 2021 -0400
+++ b/garf.cpp	Wed Jun 30 02:38:59 2021 -0400
@@ -3,14 +3,15 @@
 #include <stdio.h>
 #include <string.h>
 
-int main(){
-char answer[100];
-std::cout << "would you like to monetize 1123.best?: ";
-gets(answer);
-if(answer=="yes"){
-std::cout << "it's a yes!";
-}else{
-std::cout << "it's a yes!";
+int main() {
+    char answer[255];
+    std::cout << "would you like to monetize 1123.best?: ";
+    fgets(answer, sizeof(answer), stdin);
+    if(answer == "yes") {
+        std::cout << "it's a yes!";
+    }
+    else {
+        std::cout << "it's a yes!";
+    }
+    return 0;
 }
-return 0;
-}
\ No newline at end of file