Type: Posts; User: megabyte
Search took 0.02 seconds.
November 15th, 2004, 05:16 AM
I have a function that takes an ofstream as an argument:
void Traverse (ofstream& os);
this works fine unless when I try to do Traverse(std::cout);
November 30th, 2003, 03:44 AM
Thanks a lot Kheun! I really appreciate it.
That <T> in friend class MyClass<T>; saved me a lotta Aspirin :D
Thanks for the tip Graham, I've knew that resize existed but thought that it was used...
November 28th, 2003, 05:22 AM
sorry to bother you again but I'm really stuck as I see no reason for the errors I've been having. Using the same class prototypes I have posted before with the correction from Graham i declare in my...
November 28th, 2003, 05:05 AM
:D Sorry about that. I was just cheking the FAQ so I didn't really think when answering.
November 28th, 2003, 04:40 AM
Thanks Graham. I could have sworn that I tried that but I guess I didn't :o
I have to use an array as I can't insert in a vector of size i.e 10 in position 12. It gets messy everytime I start...
November 28th, 2003, 04:33 AM
check in the FAQ ;)
November 28th, 2003, 04:10 AM
Can anybody please tell me what I'm doing wrong here. When I do something like:
friend class MyClass;
November 9th, 2003, 05:54 AM
Oh! after i add the .begin() it compiles but the application crashes!.
I have no clue to why is that.
Thanks again for the help, I really appreciate it.
November 9th, 2003, 05:41 AM
Thanks a bunch Joe.
I use exactely the following:
int findMax(vector<int>& sublist)
// Bailout condition. Required of all recursive functions
November 9th, 2003, 04:10 AM
Thanks for the response mwilliamson.
That's actually where I got stuck. I just can't make sense out of this start and end that changes. What I do is to create two vectors out of my original vector...
November 8th, 2003, 05:07 AM
I know that most of you(not if all) would say that it would be better to use iteration instead of recursion in my problem but that's the way it should be(yes it's an assignment)
I have a...
October 21st, 2003, 03:11 AM
Thanks for the reply guys .
Kheun could you explain more the following lines please.
typedef void (MyClass::*MemFunc)(string);
typedef map<string, MemFunc> PtrMap;
October 21st, 2003, 01:54 AM
That's exactly what I'm trying to do.
I have a non member function that returns a string, this string is let's say str=MySecondFunction(Andrea)
so in my main() and instead of doing something like:...
October 21st, 2003, 01:26 AM
Thanks for the link souldog.
I was just there actually but I can't find what can help me.
the problem is that my instructions are strings. I have a non-member function that reads the instruction...
October 21st, 2003, 01:03 AM
I was wondering if anybody can clear me up on this.
I have a file full of instructions that I have to execute it looks something like that:
October 21st, 2003, 12:55 AM
Thank you very much for the explanation Paul. ;)
October 18th, 2003, 04:24 AM
Thanks a million for that nice explaination sbrothy.
I have a bit of a problem still though and I will really appreciate any help as this has been driving me nuts.
I have another function that is...
October 16th, 2003, 06:02 AM
And how would we go about it in case we were!! :rolleyes:
Thanks for taking time to explain all that by the way :) .
October 16th, 2003, 05:59 AM
I actually tried to take almost the same approach after all the comments to my other post saying that I couldn't derive from std::list but I found myself having to rewrite all the functions that come...
October 16th, 2003, 05:25 AM
Thank you for the reply sbrothy.I'm actually deriving from the STL list and eventhough I got to understand why I shouldn't be doing that I just have to do it as I have no choice...
October 15th, 2003, 03:16 PM
Sorry if I didn't make myself clear enough but I'll try to catch up.
What I am trying to do is write a member function like let's say pop_front() or pop_back but which would erase an element of the...
October 15th, 2003, 05:02 AM
Sorry to bother you guys again, but I'm encountring a small problem that I think is due to my lack of knowledge as the whole std::list world is very new to me(I spent so much time learning vectors...
October 15th, 2003, 02:20 AM
It's kind of a school assignment if you would. My company has a deal with an IT training school here in NY to offer all the employees courses in Programming. And while most of my collegues went for...
October 14th, 2003, 06:15 AM
October 14th, 2003, 05:52 AM
Sorry for bumping the thread but I didn't want to create a new one as I found this one.
I kinda need to do the same thing but the problem with me is that my object name is a private member of myObj...
Click Here to Expand Forum to Full Width