Compare commits

...

5 Commits

Author SHA1 Message Date
ilsix
59d332e157 Readme 2024-04-07 01:47:29 +02:00
ilsix
fae67f4448 Test C 2024-04-07 01:47:16 +02:00
ilsix
5419075493 Echo C 2024-04-07 01:47:03 +02:00
ilsix
7385425961 gitingore 2024-04-07 01:46:58 +02:00
ilsix
9a7ad8edc5 Hello World C 2024-04-07 01:46:54 +02:00
5 changed files with 21 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
#all regularly compiled binaries
echo
helloworld
#Haskell

View File

@ -4,7 +4,7 @@
|------------|-------------|------|----------|-------------|----------------|----------|
| ALGOL | | | | | | |
| BASIC | | | | | | |
| C | Done | | | | | |
| C | Done | Done | | | | |
| C# | Done | | | | | |
| C++ | Done | | | | | |
| COBOL | Done | | | | | |

6
c/echo.c Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main( int argc, char *argv[] ) {
printf("Echo: %s\n", argv[1]);
return 0;
}

View File

@ -1,5 +1,4 @@
//compiles and runs successfully
#include<stdio.h>
#include <stdio.h>
int main() {
printf("Hello World!\n");

View File

@ -1,3 +1,14 @@
#!/bin/bash
echo "### Compiling..."
gcc helloworld.c -o helloworld
./helloworld
gcc echo.c -o echo
echo "### Hello World:"
./helloworld
echo "### Echo:"
./echo Word!
echo "### Cleaning up..."
rm helloworld
rm echo