Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: megabyte

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,520

    Passing std::cout as an argument

    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);


    C:/Documents and...
  2. Replies
    8
    Views
    597

    Thanks a lot Kheun! I really appreciate it. That...

    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...
  3. Replies
    8
    Views
    597

    sorry to bother you again but I'm really stuck as...

    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...
  4. Replies
    4
    Views
    475

    :D Sorry about that. I was just cheking the FAQ...

    :D Sorry about that. I was just cheking the FAQ so I didn't really think when answering.
    Sofia.
  5. Replies
    8
    Views
    597

    Thanks Graham. I could have sworn that I tried...

    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...
  6. Replies
    4
    Views
    475

    check in the FAQ...

    check in the FAQ ;)
    Sofia
  7. Replies
    8
    Views
    597

    template classes and types

    Hello,
    Can anybody please tell me what I'm doing wrong here. When I do something like:

    template<class T>
    class MyNode
    {
    public:

    MyNode(){key=-1;}
    friend class MyClass;
  8. Replies
    7
    Views
    2,691

    Oh! after i add the .begin() it compiles but the...

    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.
    Sofia.
  9. Replies
    7
    Views
    2,691

    Thanks a bunch Joe. I use exactely the...

    Thanks a bunch Joe.
    I use exactely the following:

    int findMax(vector<int>& sublist)
    {
    // Bailout condition. Required of all recursive functions
    if(sublist.size() <=1)
    return...
  10. Replies
    7
    Views
    2,691

    Thanks for the response mwilliamson. That's...

    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...
  11. Replies
    7
    Views
    2,691

    finding the maximum recursively

    Hello all,
    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...
  12. Replies
    19
    Views
    2,983

    Thanks for the reply guys . Kheun could you...

    Thanks for the reply guys .
    Kheun could you explain more the following lines please.

    typedef void (MyClass::*MemFunc)(string);
    typedef map<string, MemFunc> PtrMap;

    PtrMap myMap;...
  13. Replies
    19
    Views
    2,983

    That's exactly what I'm trying to do. I have a...

    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:...
  14. Replies
    19
    Views
    2,983

    Thanks for the link souldog. I was just there...

    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...
  15. Replies
    19
    Views
    2,983

    pointer to member function

    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:

    MyFirstFunction(Jimmy)
    MySecondFunction(Carole)...
  16. Thank you very much for the explanation Paul. ;) ...

    Thank you very much for the explanation Paul. ;)
    Regards,
    Sofia.
  17. Thanks a million for that nice explaination...

    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...
  18. And how would we go about it in case we were!!...

    And how would we go about it in case we were!! :rolleyes:
    Thanks for taking time to explain all that by the way :) .
    Sofia.
  19. I actually tried to take almost the same approach...

    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...
  20. Morning everyone, Thank you for the reply...

    Morning everyone,
    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...
  21. Sorry if I didn't make myself clear enough but...

    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...
  22. Sorry to bother you guys again, but I'm...

    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...
  23. Replies
    18
    Views
    1,959

    It's kind of a school assignment if you would. My...

    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...
  24. Thank you ver much :)

    Thank you ver much :)
  25. Sorry for bumping the thread but I didn't want to...

    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...
Results 1 to 25 of 52
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center