uni

University stuff
git clone git://git.christosmarg.xyz/uni-assignments.git
Log | Files | Refs | README | LICENSE

commit 98509692c30e606049ab14c989b92421e83b1a2d
parent 8fd96bcccf65d571220097c231729e7f338d510a
Author: Christos Margiolis <christos@margiolis.net>
Date:   Wed, 18 Dec 2019 01:33:22 +0200

corrected README

Diffstat:
Massignment-1.4-functions/README.md | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/assignment-1.4-functions/README.md b/assignment-1.4-functions/README.md @@ -9,7 +9,7 @@ ### Method 1 1. Open a terminal emulator, or the integrated terminal of your editor. -2. Move to the ```src``` directory of the program: ```$ cd ....programs/program/src``` +2. Move to the ```src``` directory of the program: ```$ cd ..../assignment-1.4-functions/program/src``` 3. Compile ```main.c``` and ```program-libs.c```: ```$ gcc -c main.c program-libs.c && mv main.o program-libs.o ../obj && cd ../obj``` 4. Link ```main.o``` and ```program-libs.o```: ```$ gcc main.o program-libs.o -lm && mv a.out ../exec && cd ../exec``` 5. Execute program: ```$ ./a.out``` @@ -17,7 +17,7 @@ ### Method 2 1. Open a terminal emulator, or the integrated terminal of your editor. -2. Move the ```programs``` directory: ```$ cd …./programs``` +2. Move to the ```programs``` directory: ```$ cd …./assignment-1.4-functions``` 3. _In case step 4 fails, do this first_: ```$ chmod +x autocompile.sh``` 4. Run the ```autocompile.sh``` script: ```$ ./autocompile.sh program``` @@ -28,7 +28,7 @@ __Requirements:__ MinGW gcc compiler ### Method 1 1. Open Command Prompt, or the integrated terminal of your editor. -2. Move to the ```src``` directory of the program: ```$ cd ....programs/program/src``` +2. Move to the ```src``` directory of the program: ```$ cd ..../assignment-1.4-functions/program/src``` 3. Compile ```main.c``` and ```program-libs.c```: ```$ gcc -c main.c program-libs.c && mv main.o program-libs.o ../obj && cd ../obj``` 4. Link ```main.o``` and ```program-libs.o```: ```$ gcc main.o program-libs.o -lm && mv a.out ../exec && cd ../exec``` 5. Execute program: ```$ ./a.exe``` @@ -36,7 +36,7 @@ __Requirements:__ MinGW gcc compiler ### Method 2 1. Open Command Prompt, or the integrated terminal of your editor. -2. Move the ```programs``` directory: ```cd ..../programs``` +2. Move to the ```programs``` directory: ```cd ..../assignment-1.4-functions``` 3. Run the ```autocompile.bat``` script: ```autocompile``` 4. Enter the name of the program __exactly__ as it's written in the folder when the script prints ```"Program name: "```