From the course: C Standard Library
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Find a special word - C Tutorial
From the course: C Standard Library
Challenge: Find a special word
(upbeat music) - [Instructor] Here's another challenge to test what you've learned about string examination and manipulation in the string.h header file. You must make an application that asks for two strings: a sentence and a special word. This special word is a sub-string that may or may not occur in the sentence. The application must print out the sentence without the special word. If the word was not found in the sentence, it should report it. Once again, remember that you should use the functions in string.h and that you shouldn't worry about special cases like including spaces in the short word, or verifying that the short word is indeed shorter than the sentence. Just keep it optimistically simple. This should take you about 30 minutes to complete. After completing your solution, take a look at mine in the next video.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
String manipulation1m 21s
-
(Locked)
String manipulation example2m 3s
-
(Locked)
String examination1m 43s
-
(Locked)
String examination example8m 5s
-
(Locked)
Memory chunk operations43s
-
(Locked)
Memory chunk operations example5m 13s
-
(Locked)
Challenge: Find a special word59s
-
(Locked)
Solution: Find a special word6m 25s
-
-
-