TD_C.git
7 years agoReorganize the repository structure to deal with more than one TP.
Jérôme Benoit [Mon, 27 Feb 2017 13:13:06 +0000 (14:13 +0100)] 
Reorganize the repository structure to deal with more than one TP.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoREADME: fix some typos.
Jerome Benoit [Sun, 26 Feb 2017 12:14:48 +0000 (13:14 +0100)] 
README: fix some typos.

Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
7 years agoexo1.c: enforce an stdout buffer write after a printf not doing it.
Jerome Benoit [Sun, 26 Feb 2017 11:28:20 +0000 (12:28 +0100)] 
exo1.c: enforce an stdout buffer write after a printf not doing it.

Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
7 years agoexo1.c: Use VLA array correctly to store integer values and properly initialized it.
Jerome Benoit [Sun, 26 Feb 2017 11:13:37 +0000 (12:13 +0100)] 
exo1.c: Use VLA array correctly to store integer values and properly initialized it.

Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
7 years agoexo3.c: Properly initalize a for loop count integer variable.
Jerome Benoit [Sun, 26 Feb 2017 10:47:04 +0000 (11:47 +0100)] 
exo3.c: Properly initalize a for loop count integer variable.

Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
7 years ago.gitignore: make cygwin users happy.
Jerome Benoit [Sat, 25 Feb 2017 20:04:59 +0000 (21:04 +0100)] 
.gitignore: make cygwin users happy.

Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
7 years agoexo3.c: implement ROTX where X the number of latin
Jérôme Benoit [Sat, 18 Feb 2017 23:49:59 +0000 (00:49 +0100)] 
exo3.c: implement ROTX where X the number of latin
alphabet letter to rotate.

And make a use of it for X=13.

There's still a lot of rooms for improvements but it works.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoFixlets to the README in the exercice skeleton usage
Jérôme Benoit [Wed, 15 Feb 2017 22:50:45 +0000 (23:50 +0100)] 
Fixlets to the README in the exercice skeleton usage

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoexo3: implement the primaries features requested
Jérôme Benoit [Wed, 15 Feb 2017 22:46:37 +0000 (23:46 +0100)] 
exo3: implement the primaries features requested

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoexo2.c: spell fixes
Jérôme Benoit [Wed, 15 Feb 2017 21:43:15 +0000 (22:43 +0100)] 
exo2.c: spell fixes

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoexo2.c: Finish the implementation of the desired features:
Jérôme Benoit [Wed, 15 Feb 2017 21:20:18 +0000 (22:20 +0100)] 
exo2.c: Finish the implementation of the desired features:

- sequence the chosen operation on the new value and the last operation result;
- implement the main loop exit conditions.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoexo1.c: fix a typo
Jérôme Benoit [Wed, 15 Feb 2017 12:26:17 +0000 (13:26 +0100)] 
exo1.c: fix a typo

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoAdd exo2 preliminary structure
Jérôme Benoit [Tue, 14 Feb 2017 22:39:56 +0000 (23:39 +0100)] 
Add exo2 preliminary structure

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years ago.gitignore: do not try to be smart for now
Jérôme Benoit [Tue, 14 Feb 2017 22:08:06 +0000 (23:08 +0100)] 
.gitignore: do not try to be smart for now

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years ago.gitignore: ignore the binary built INSIDE the exo? dir
Jérôme Benoit [Tue, 14 Feb 2017 22:05:50 +0000 (23:05 +0100)] 
.gitignore: ignore the binary built INSIDE the exo? dir

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agosortFirst(): only change the return value once, not at every iteration
Jérôme Benoit [Tue, 14 Feb 2017 21:50:42 +0000 (22:50 +0100)] 
sortFirst(): only change the return value once, not at every iteration
when a permutation is done.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years ago.gitignore: ignore the default binary's name Makefile output
Jérôme Benoit [Tue, 14 Feb 2017 21:41:11 +0000 (22:41 +0100)] 
.gitignore: ignore the default binary's name Makefile output

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoImplement exo1.c completly:
Jérôme Benoit [Tue, 14 Feb 2017 21:35:05 +0000 (22:35 +0100)] 
Implement exo1.c completly:

* Add user prompt for the array values;
* Optimize sortArray() values inversion loop;
* Beautify a bit the terminal output.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoexo1: swap, no need to declare tmp variable if values are the same
Jérôme Benoit [Sun, 12 Feb 2017 19:32:02 +0000 (20:32 +0100)] 
exo1: swap, no need to declare tmp variable if values are the same

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
7 years agoInitial commit of Polytech'Marseille tutorial C exercices
Jérôme Benoit [Sat, 11 Feb 2017 21:20:10 +0000 (22:20 +0100)] 
Initial commit of Polytech'Marseille tutorial C exercices

* Introduce an exercice solution skeleton with a basic
  Makefile and piece of C elementary structure file.
* Preliminary work on tutorial's exercice one :
- add void swap(int* v1, int* v2); function;
- add void displayArray(int* array, int count) function;
        - add bool sortFirst(int* array, int length) function;
* Document a bit the usage in the README file.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>