Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String class for testing
#1
Some of the tests implement a string class. I'm assuming this is similar in structure to the integer and real classes?
Reply
#2
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
Reply
#3
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)