国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

南林程序設(shè)計(jì)(C語言)中國大學(xué)mooc第12周編程題答案

2022-11-18 20:54 作者:笨蛋akuma  | 我要投稿


#include<stdio.h>

int len(char *str)

{

int count=0;

while('\0'!=*str)

{

count++;

str++;

}

return count;

}?

int main()

{

? char str[100];

? gets(str);

? printf("The length of this string is %d",len(str));

}

#include<stdio.h>

#include<string.h>

int Palindrome(char *str)

{

int i,sign=0,n;

scanf("%s",str);

n=strlen(str);

for(i=0;i<n/2;i++)

{

if(str[i]==str[n-i-1])

sign=1;

else{sign=0;

break;}

}

if(sign)?

printf("%s is a Palindrome",str);

else?

printf("%s is not a Palindrome",str);

}?

int main()

{

? char str[100];

? gets(str);

? Palindrome(str);

}

#include<stdio.h>

#include<string.h>

int inverse(char *s)

{

int i,t,n;

gets(s);

n=strlen(s);

for(i=0;i<n/2;i++)

{

t=s[i];

s[i]=s[n-1-i];

s[n-1-i]=t;

}

puts(s);

}

int main()

{

char s[100];

gets(s);

inverse(s);

}

第十二周的三道編程題,新鮮出爐的嗷,感謝觀看,覺得有幫助的話不妨留下一個(gè)免費(fèi)的贊吧 !求三連!求三連!求三連!

南林程序設(shè)計(jì)(C語言)中國大學(xué)mooc第12周編程題答案的評論 (共 條)

分享到微博請遵守國家法律
西昌市| 印江| 三河市| 长岛县| 遂宁市| 阿拉善右旗| 康保县| 左贡县| 新宁县| 凉山| 新巴尔虎右旗| 西峡县| 双桥区| 汉中市| 呼图壁县| 武邑县| 湖北省| 洪湖市| 秭归县| 肇源县| 如皋市| 淮安市| 延吉市| 新乡县| 肥东县| 青岛市| 惠安县| 宜兴市| 奎屯市| 定安县| 行唐县| 澄城县| 德清县| 灵武市| 仲巴县| 富民县| 盈江县| 米易县| 武冈市| 招远市| 唐海县|