Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String class for testing
#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


Messages In This Thread
String class for testing - by ianbway - 09-13-2017, 02:35 PM
RE: String class for testing - by alexbusol - 09-14-2017, 01:09 AM
RE: String class for testing - by ianbway - 09-14-2017, 01:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)