The Beastie Forums

Full Version: String class for testing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Some of the tests implement a string class. I'm assuming this is similar in structure to the integer and real classes?
Yes, I need that one as well. Can someone post it please?

Actually, I just went through some of the test files that have string.h included and it looks like it isn't used at all. I just commented it out
(09-14-2017, 01:09 AM)alexbusol Wrote: [ -> ]Yes, I need that one as well. Can someone post it please?

Actually, I just went through some of the test files that have string.h included and it looks like it isn't used at all. I just commented it out

It is used in the "-2" test of every class on mine. I think my string class works but not sure if I am allowed to post the code. Basically it is very similar to the real and integer classes only the type of variable your are moving around is a char*.

(09-14-2017, 01:45 AM)ianbway Wrote: [ -> ]
(09-14-2017, 01:09 AM)alexbusol Wrote: [ -> ]Yes, I need that one as well. Can someone post it please?

Actually, I just went through some of the test files that have string.h included and it looks like it isn't used at all. I just commented it out

It is used in the "-2" test of every class on mine. I think my string class works but not sure if I am allowed to post the code. Basically it is very similar to the real and integer classes only the type of variable your are moving around is a char*.

You also may want to import <string.h>,<limits.h> into your implementation file for string. I'm not sure if this does anything but I used it in mine.