How to turn string into dashes using pass by value, pointer, or reference? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

How to turn string into dashes using pass by value, pointer, or reference?

3rd Nov 2017, 1:25 AM
Mankit Chan
2 Respuestas
+ 1
basically you are saying : how to turn strings into dashes using any type of functions but then dashes are strings. are you asking how to generate dashes?
3rd Nov 2017, 1:48 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
0
yea. im trying to write a short program that ask the user to enter a string, makes a copy of the string, takes the copy and changes all non spaces letter to dashes, then gets the letter from the user to search and replace returning the number of letters found. the requirment is using the following function. void get_string(string*) void set_replace_string(string,string*) int get_search_replace(string,string&)
3rd Nov 2017, 2:55 AM
Mankit Chan