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 :)

18th Feb 2021, 7:46 AM
aecliam
aecliam - avatar
5 Respostas
+ 1
Could you tell more details about what you want to achieve?
18th Feb 2021, 8:23 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar
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.
18th Feb 2021, 8:28 AM
aecliam
aecliam - avatar
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
18th Feb 2021, 9:15 AM
aecliam
aecliam - avatar
0
Dipanshu Kubde Do you know how I can remove a newline? the first fgets keeps skipping its supposed line
19th Feb 2021, 4:19 AM
aecliam
aecliam - avatar
0
I’m still fixing case 1 with minor space problem (i think) i just saved an updated one
19th Feb 2021, 7:34 AM
aecliam
aecliam - avatar