Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  。
Language: C/C++
Code:
#include<stdio.h>
int main()
{
     char ch;
     int nWord=1;
     printf("Please input line:");
     scanf("%s",&ch);
     while(ch!='#')
     {
        if(ch=='p')
        printf("The position of Key character p is:NO.%d",nWord);
        else
        nWord++;
     }
     return 0;
}
Comments: