Toggle navigation
Courses
Questions
Tags
Users
AD 20161208 exercise 1
0
like
0
dislike
1.2k
views
子字串
請設計一個程式,使用者會輸入兩個字串,兩個字串間用一個空格隔開,每個字串的內容只會包含大小寫的英文字母,請判斷第二個字串是否出現在第一個字串內。請將大小寫視為同一個字。
輸入範例1:
friEND end
輸出範例1:
There is "end" in "friEND"
輸入範例2:
friEND friends
輸出範例2:
There are no "friends" in "friEND"
asked
Dec 8, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
|
1.2k
views
answer
comment
Please
log in
or
register
to add a comment.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Add answer
Cancel
23
Answers
0
like
0
dislike
Hidden content!#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<ctype.h>
int main()
{
* * **** * ** ** ** i=0,j=0,t;
** * ** ** * ** **** * * * * ch,xh;
***** * * ** * * ** * * ** * * a[100],c[100];
** * ** * ** * **** **** ** b[100],d[100];