关于C语言的问题,输入一串字符,再输入一个字符,返回字符串中第一次遇到该字符的位置,

[复制链接]
查看11 | 回复2 | 2012-11-29 13:54:33 | 显示全部楼层 |阅读模式
scanf("%s",sentence); //sentence[50]表示第51个元素,这里应该是数组的首地址!...
回复

使用道具 举报

千问 | 2012-11-29 13:54:33 | 显示全部楼层
#include #include int seek_pos(char sentence[50],int n,char letter);int main(){char sentence[50],letter;printf("please input some word,and a lett...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行