0
How can I can store all string functions together?
All I know is, it can be possible with Switch Case but I donāt know how and where to start. Please help :)
7 Answers
+ 1
Could you tell more details about what you want to achieve?
0
This is the expected output:
Choose the String Function to demo: 1
Enter first string: Miko
Enter second string: Santos
Before function call:
str1 = Miko
str1 = Santos
After concatenation/appending:
str1 = MikoSantos
str2 = Santos
*********************************************
1 - strcat()
2 - strncat()
3 - strcpy ()
4 - strncpy ()
5 - strlen ()
6 - strcmp ()
7 - strcmpi ()
8 - strchr ()
9 - strrchr ()
10 - strstr ()
11 - strdup ()
12 - strlwr ()
13 - strupr ()
14 - strrev ()
15 - strset ()
16 - strnset ()
17 - strtok ()
18 = Exit
Choose the String Function to demo:
\\ I did first the "enter first string" to "after the appending"
Here's my progress so far: https://code.sololearn.com/cLlmpbjn4kf9
I need the user to custom input the demos.
0
Dipanshu Kubde
Yes please! Also, I'm using Dev C++, I just input it here in SoloLearn for progress reference. :)
Edit: I have to do the switch case first though. btw my first problem is the first gets keeps skipping
0
Dipanshu Kubde Do you know how I can remove a newline? the first fgets keeps skipping its supposed line
0
Iām still fixing case 1 with minor space problem (i think) i just saved an updated one