Search:
Type: Posts; User: BanKuZ
Search:
Search took 0.04 seconds.
-
January 22nd, 2011, 11:50 AM
Thanks anyway, you still helped a lot.
-
January 22nd, 2011, 11:01 AM
Can you help me with it? I tried several ways but couldn't make it work.
-
January 22nd, 2011, 10:20 AM
Well it is, and I think you're probably right. I just want to be 100% positive I'm not missing anything before I do tell them such an answer.
Thank you very much, you've been very helpful.
-
January 22nd, 2011, 07:31 AM
I tried to deference it twice, I didn't manage to do it.
And it is something like homework only it was given by a C++ professional.
-
January 22nd, 2011, 06:24 AM
I agree with your answer, but I'm trying to build a class for a given main() function.
I'm trying to make to code given to me work correctly even if there are many other and better ways of coding...
-
January 22nd, 2011, 04:13 AM
I already did most of it in my code. I understand you are trying to help and it seems you have a lot of knowledge. I know the right way of doing it is what you all suggested, and I will change it....
-
January 21st, 2011, 05:07 PM
Tried it, didn't work. Can you please write the code lines so I'll find out if I did it the way you meant?
Changed, thanks.
Thank you, I will make those changes as soon as my program runs...
-
January 21st, 2011, 04:37 PM
Can you specify what to write instead?
O.K I appreciate it, I don't know either that's why I asked.
Is there a way to use conversion cast for casting from Mystring* to char*?
Like if I have...
-
January 21st, 2011, 03:28 PM
class Mystring {
public:
char s[MAX_SIZE];
Mystring(){}
Mystring (const char* str)
{
-
January 21st, 2011, 02:10 PM
HI GCDEF,
The main function is a given, that's the only reason I need a **.
I didn't have any problem for not having a memory allocation for the internal char* why is it important? should I add...
-
January 21st, 2011, 11:30 AM
Here is the relevant part of the main function:
int main (void) {
Mystring* p = new Mystring();
*p = "aaa";
Mystring** pp =p;
Print(*pp);//defined as Print(char*);...
-
January 21st, 2011, 10:54 AM
Thank you,
But that's exactly my problem,
For the first one I'm trying to avoid changing any lines in the main function (since it was given to me).
And for the second one I can't use the MyString...
-
January 21st, 2011, 10:20 AM
Hi all, I have this class in my code:
class Mystring {
public:
char *s;
Mystring(const char *);
Mystring();
~Mystring(){}
Mystring operator=(const char* str)
...
|
Click Here to Expand Forum to Full Width
|