Exercice 6 les chaines de caractéres Langage c
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=ywiOpm0gOLA
Hello everyone. • Exercises : • Exercise 1 : • Writing a program that reads a line of text that does not exceed 200 characters memorizes it in a TXT variable and then displays: • (A) the length L of the chain. • B) the number of 'e' contained in the text. • C) the entire countdown without changing the contents of the TXT variable. • D) the entire countdown, after reversing the order of characters in TXT: • -------------------------------------------------- ------------------ • EX1: Correction: https://goo.gl/3gNB8d • -------------------------------------------------- ------------------ • Exercise 2: • Write a program that reads a TXT text of less than 200 characters and removes all occurrences of the 'e' character by stacking the remaining elements. The changes will be in the same TXT variable. • Example: • -------------------------------------------------- ------------------ • EX2: Correction: https://goo.gl/9KZR9k • -------------------------------------------------- ------------------ • Exercise 3: • Write a program that asks for the user's first and last name and displays the total length of the name without counting the spaces. Use the strlen function. • Example: • Enter your name and surname: Mickey Mouse • • Hello Mickey Mouse! • Your name is 11 letters. • -------------------------------------------------- ------------------- • EX3: Correction: https://goo.gl/XqMz83 • -------------------------------------------------- ------------------- • Exercise 4: • Writing a program that reads two strings of characters CH1 and CH2, compares them lexicographically and displays the result: • Example: • Insert the first string: ABC • Insert the second string: abc • ABC precedes abc • -------------------------------------------------- ------------------- • EX4: Correction: https://goo.gl/tA7Atw • -------------------------------------------------- ------------------- • Exercise 5: • Write a program that reads two strings of characters CH1 and CH2 and copies the first half of CH1 and the first half of CH2 into a third string CH3. Show result. • Use the special functions of string.h. • -------------------------------------------------- ------------------- • EX5: Correction: https://goo.gl/lneMTr • -------------------------------------------------- ------------------- • Exercise 6: • Write a program that reads a regular verb in er on the keyboard and displays its conjugation to the present of the indicative of this verb. Check whether it is a verb in er before conjugating. Use the gets, puts, strcat and strlen functions. • Example: • Verb: to celebrate • I celebrate • You celebrate • It celebrates • we celebrate • You celebrate • they celebrate • -------------------------------------------------- ------------------- • EX6: Correction: https://goo.gl/HpGg0Z • -------------------------------------------------- ------------------- • • The functions predefined in the string.h library: • 1.strlen: length of the string: https://goo.gl/eAnIYa • 2.strcmp: compare two strings: https://goo.gl/Po9PJ0 • 3.strcpy: copy the contents of a string to another string: https://goo.gl/8EWYAq • 4.strcat: concatenate merge two strings: https://goo.gl/3zSr4o • 5.strstr: test whether one string is present in another: https://goo.gl/R1VFMY • 6.strchr: test whether a character is present in a string: https://goo.gl/zN8IpW • The characters in language c part1: • langage c les caractéres (partie 1) ... • The characters in language c part2: • langage c les caractéres (partie 2) ... • The strings of characters in language c (puts / gets): • • les chaines de caractéres en langage ... • • Official Facebook :: http: //bit.ly/2a3jAsx • Follow on Google+: http: //bit.ly/2fKkKIM • Subscribe Youtube: http: //bit.ly/2akBJ6m • Facebook Group: http://bit.ly/2ajGBsP • Website: https: //goo.gl/PtDhDf
#############################
![](http://youtor.org/essay_main.png)