diff --git a/brainscrew/hello.b b/brainscrew/hello.b deleted file mode 100644 index 010a269..0000000 --- a/brainscrew/hello.b +++ /dev/null @@ -1,13 +0,0 @@ -++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. -+++++++++++++++++++++++++++++. -+++++++. -. -+++. --------------------------------------------------------------------------------. -+++++++++++++++++++++++++++++++++++++++++++++++++++++++. -++++++++++++++++++++++++. -+++. -------. ---------. ---------------------------------------------- ----------------------------------------------. diff --git a/brainscrew/hello.bf b/brainscrew/hello.bf new file mode 100644 index 0000000..081caa6 --- /dev/null +++ b/brainscrew/hello.bf @@ -0,0 +1,13 @@ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++. H ++++++++++++++++++++++++++++++. HIJKLMNOPQRSTUVWXYZabcde ++++++++. efghijkl +. l ++++. lmno +-------------------------------------------------------------------------------. (space) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++. W +++++++++++++++++++++++++. o ++++. r +------. l +--------. d +--------------------------------------------- +---------------------------------------------. ! diff --git a/brainscrew/notes.txt b/brainscrew/notes.txt index 6ff10af..9d7de42 100644 --- a/brainscrew/notes.txt +++ b/brainscrew/notes.txt @@ -1,9 +1,11 @@ +Instead of screw, it's the f-word. + Command(s) needed to make the program run -beef hello.b +beef hello.bf You can also run the script using -bf hello.b +bf hello.bf NOTE: beef and bf behave differently, and sometimes one works when the other does not. diff --git a/c/hello.c b/c/hello.c index 0565707..14db040 100644 --- a/c/hello.c +++ b/c/hello.c @@ -1,5 +1,6 @@ #include - -void main() { +int main() +{ printf("Hello World\n"); + return 0; // a.k.a. everything is ok } diff --git a/cplusplus/notes.txt b/cplusplus/notes.txt index c41f0d8..e7496d2 100644 --- a/cplusplus/notes.txt +++ b/cplusplus/notes.txt @@ -2,3 +2,5 @@ Command(s) needed to make the program run g++ hello.cpp ./a.out + +Technically, C+ is a superset of C, meaning any C code can be run in C++ as is. diff --git a/html/hello.html b/html/hello.html index 27601c6..3993f81 100644 --- a/html/hello.html +++ b/html/hello.html @@ -1,3 +1,4 @@ +