|
META TOPICPARENT |
name="LectureSlides" |
Slide 1: A bit of C programming |
|
c = (a<b) ? a : b; |
|
> > | |
|
The ? operator example
|
|
< < | |
|
Functions |
|
and you can write you own libraries to extend the set. |
|
< < | There are 2 types of libraries: static libraries and dynamic ones. |
> > | There are two types of libraries: static libraries and dynamic ones. |
|
The static libraries are named lib name of the library .a |
|
< < | Example libm.a for the mathematics library containing |
> > | Example libm.a is a library that contains a large set of |
| |
|
< < | a great number of mathematical functions |
> > | mathematical functions |
|
Its dynamic brother is called libm.so |
|
several executables. The executable is therefore much smaller but there is a risk |
|
< < | it will not work if it was linked to a wrong library version. |
> > | it will not work if it was linked to a wrong library version, the library
is not available or cannot be found. |
|
Linking libraries |
|
META FILEATTACHMENT |
attachment="structs.png" attr="" comment="" date="1505125511" name="structs.png" path="structs.png" size="30043" user="uli" version="1" |
META FILEATTACHMENT |
attachment="switch-1.png" attr="" comment="" date="1505124673" name="switch-1.png" path="switch-1.png" size="23707" user="uli" version="1" |
META FILEATTACHMENT |
attachment="switch-2.png" attr="" comment="" date="1505124673" name="switch-2.png" path="switch-2.png" size="34389" user="uli" version="1" |
|
|
< < |
META FILEATTACHMENT |
attachment="questionRes.png" attr="" comment="" date="1505125481" name="questionRes.png" path="questionRes.png" size="8264" user="uli" version="1" |
|
|
META FILEATTACHMENT |
attachment="assignement.png" attr="" comment="" date="1504792877" name="assignement.png" path="assignement.png" size="30988" user="uli" version="1" |
META FILEATTACHMENT |
attachment="typeError.png" attr="" comment="" date="1504792877" name="typeError.png" path="typeError.png" size="10701" user="uli" version="1" |
META FILEATTACHMENT |
attachment="typeCast.png" attr="" comment="" date="1504792877" name="typeCast.png" path="typeCast.png" size="24274" user="uli" version="1" |
|
|
META FILEATTACHMENT |
attachment="numericCommandLine.png" attr="" comment="" date="1505127678" name="numericCommandLine.png" path="numericCommandLine.png" size="56393" user="uli" version="1" |
META FILEATTACHMENT |
attachment="arguments.c" attr="" comment="" date="1505411092" name="arguments.c" path="arguments.c" size="474" user="uli" version="1" |
META FILEATTACHMENT |
attachment="while.png" attr="" comment="" date="1505463515" name="while.png" path="while.png" size="16495" user="uli" version="1" |
|
|
> > |
META FILEATTACHMENT |
attachment="questionRes.png" attr="" comment="" date="1509718660" name="questionRes.png" path="questionRes.png" size="8498" user="uli" version="1" |
META FILEATTACHMENT |
attachment="questionResv2.png" attr="" comment="" date="1509718829" name="questionResv2.png" path="questionResv2.png" size="8498" user="uli" version="1" |
|