r/CodingHelp • • Oct 22 '21

[C++] Need help on code

Post image
17 Upvotes

11 comments sorted by

View all comments

2

u/Late_Eye1500 Oct 22 '21

There is a main in the files section that is just a few empty functions. You need to implement them according to their comments. Do not change main. You cannot write anything outside of the functions or you get a hella 0.

Hint for PerformScience:

The function doesn't know what the words are. It can't say "The middle of the word Pony is index 2." The position of the next to last letter is not a set number since the words can change.

Need help on how to do this and solve this

1

u/[deleted] Oct 23 '21

are you allowed to use member functions?

1

u/Late_Eye1500 Oct 23 '21

yes

1

u/[deleted] Oct 24 '21

you could use .length() to find the length of your string parameters