So here I am trying to make a little practice (very limited) string class when all of the sudden my code won't compile, what a bi*ch huh? Well Please help.
#include <iostream.h>
#include <stdlib.h>
#include <string.h>
// here I was just starting my very limited string class and
//all of the suddem THIS!!!!!! won't compile, help.
//limited string class, just for practice
class String
{
public:
String();
int Getlength(); //error
int Get string();
private:
int length;
int *string;
};
String::Get String() //error
{
return *string;
}
int main()
{
system("PAUSE");
return 0;
}
//I was just beginning this little round of coding, as you can see I am really a newbie, and though that creating my own string class will really help a lot since it involves a lot of what C++ it's all about.
//PS DON'T MAKE FUN OF ME, oh wait yes go ahead and laugh away