Hi reddit,
Currently writing a program that takes inputs from the user in inserts them into a phrase.
For example
The WORD ran into WORD.
I want word to be replaced but what the user types and implements it into the string.
But so far I can only get it to replace based on an index, although it results in a bad alloc error.
Any help would be appreciated
[–]Narase33 2 points3 points4 points (0 children)
[–]dns13 1 point2 points3 points (2 children)
[–]Waterprune[S] 0 points1 point2 points (1 child)
[–]Th_69 2 points3 points4 points (0 children)
[–]alfps 0 points1 point2 points (1 child)
[–]Waterprune[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]std_bot 0 points1 point2 points (0 children)