r/shittyprogramming • • Dec 14 '18

Help with one string implementation

I am so far behind in school because I missed 2 months because I was in the hospital to remove a finger trap. Anyways, I need help implementing a OneString() method. After that I need to make a ToString() method, but I want to make sure I understand the OneString before the ToString.

Please help.

82 Upvotes

30 comments sorted by

View all comments

Show parent comment

8

u/N1c0l4sC4g3 Dec 14 '18 edited Dec 14 '18

In this case it should start at -3. Using 0 as an index for arrays is bad practice.