#include stdio.h int main() { char str1 , str2 ; int i, j; // 读取两个字符串输入 printf("Enter the first string: "); fgets(str1, sizeof(str1), stdin); printf("Enter the second string: "); ...
Dans les programmes, on utilise bcp les string pour exprimer les informations textiles. Mais, il y aura un conflit quand notre texte contient l'antislash si l'on veux exprimer des textes bien formés. Donc, on utilise 'r' devant quote pour résoudre ce problème. C'est un exemple ...
#includestdio.h int main() { int a , i, j, k, n = 5; // 利用n代表元素个数,方便后面元素的减少 for(i = 0; i 5; i++) { scanf("%d", a ); // 利用for循环接受数字 } for(i = 0; i n - 1; i+ ...