Search:

Type: Posts; User: HelpMeC

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: C++ Challenge

    by HelpMeC
    Replies
    4
    Views
    401

    This is my solution: int findLoop(struct...

    This is my solution:


    int findLoop(struct Node* head)
    {
    if (head == nullptr)
    {
    return 0;
    }
    int countIndex = 0;
  2. Thread: C++ Challenge

    by HelpMeC
    Replies
    4
    Views
    401

    C++ Challenge

    Hellp everyone.

    Maybe someone can guide me how I can solve this exercise in an efficient way?

    Thanks in advance.


    http://www.up2me.co.il/thumbs/35229922.bmp
  3. Replies
    2
    Views
    285

    @laserlight - Amazing. I want to scrutinize...

    @laserlight -
    Amazing.
    I want to scrutinize your remarks more in depth, but now I have no time because I have some exercises in math courses to submit.

    Thank you so much!
  4. Replies
    2
    Views
    285

    Feedback on the design - C++

    This is the header of my project (I know it's not ideal to contain all the classes at the same header but this is the requirement of our presubmission tool).
    Maybe you can review the header and give...
  5. Replies
    40
    Views
    1,583

    @laserlight - Thank you so much!!!!

    @laserlight -
    Thank you so much!!!!
  6. Replies
    40
    Views
    1,583

    @laserlight - Thanks for the correction. BTW, if...

    @laserlight - Thanks for the correction.
    BTW, if I want to consider lines starting with some white-space as invalid input. Can I change something elegantly at the final version of the parser, or...
  7. Replies
    40
    Views
    1,583

    @laserlight - Declaration - right, it has its...

    @laserlight -
    Declaration - right, it has its required memory allocated in compile-time.

    Compiler warning - not sure how to do it right now so I won't waste your time and mine too as I must...
  8. Replies
    40
    Views
    1,583

    @laserlight - Umm... yea, the difference between...

    @laserlight -
    Umm... yea, the difference between defining s here and defining smallerOne in my code -
    Here we construct s with known-type in compile-time - everything is occurred in the current...
  9. Replies
    40
    Views
    1,583

    @laserlight - Got it. What did you mean by...

    @laserlight -
    Got it.
    What did you mean by these extra words: "and that includes class instances"? Can you maybe give an example to emphasize what that means?

    Thank you so much!!!
  10. Replies
    40
    Views
    1,583

    @laserlight - - delete issue - Very important...

    @laserlight -
    - delete issue - Very important and good to know.

    And here is a related question to the destruction issue -


    This is a piece of a major method inside an implementation of a...
  11. Replies
    40
    Views
    1,583

    @laserlight - This one: resToPrint.top() - gives...

    @laserlight -
    This one: resToPrint.top() - gives us a pointer to a Fractal. But I don't want to delete the pointer itself (As the container is in charge of doing that) but what it points to - the...
  12. Replies
    40
    Views
    1,583

    @laserlight - It's an ultra-important point. ...

    @laserlight -
    It's an ultra-important point.

    What does it mean to only destroy a pointer itself? What is the process of destroying pointers? Just nullifying them?

    So, I tried just a min ago to...
  13. Replies
    40
    Views
    1,583

    @laserlight - Regarding the destruction - I'm...

    @laserlight -
    Regarding the destruction - I'm pretty confused.
    You agree that the container will destroy each pointer pushed into it - that is, if we push to it (new SierpinskyFractal(some_dim)) -...
  14. Replies
    40
    Views
    1,583

    @laserlight - Actually the staff said we...

    @laserlight -
    Actually the staff said we mustn't use regex.

    As for Maxima - I meant, if you can show me how to change the pattern to also define maximums/minimums.

    As for exceptions - Yea,...
  15. Replies
    40
    Views
    1,583

    @john.c - I have asked a member staff regarding...

    @john.c - I have asked a member staff regarding the issue of empty lines - if there are empty lines between non-empty lines -> invalid input.
    Besides that, they say, there can be an empty line at...
  16. Replies
    8
    Views
    475

    @laserlight - Thanks for the amazing...

    @laserlight -
    Thanks for the amazing clarifications and "good to knows" details!
  17. Replies
    40
    Views
    1,583

    @john.c - Two questions: 1. Is there any special...

    @john.c - Two questions:
    1. Is there any special difference between doing that:

    std::istringstream sin(line);


    or that:


    std::istringstream sin;
  18. Replies
    40
    Views
    1,583

    @john.c Yea... That's how their idiotic...

    @john.c

    Yea... That's how their idiotic solution works - but I'll verify it again.

    You're amazing - thank you so much john!!!!!!!!!!!!!!!!!!!

    It's like 4am now so I'll try to understand your...
  19. Replies
    40
    Views
    1,583

    @john.c As for the extra chars - amazing! ...

    @john.c

    As for the extra chars - amazing!

    As for the last problem - we can have multiple empty lines, but if there is any line which is non-empty after an empty line - that's an invalid input....
  20. Replies
    40
    Views
    1,583

    @john.c Thank you for this solution! ...

    @john.c

    Thank you for this solution!

    Actually, now it seems that the first two problems are corrected, but still the third problem - the same issue.

    And another problem seems to occur with...
  21. Replies
    40
    Views
    1,583

    Tiny thing in a simple parser - C++

    Hello everyone.

    Generally, the staff has recommended us to use Boost to parse the file, but I've installed it and not succeeded to implement anything with it.

    So I have to parse a CSV file...
  22. Replies
    8
    Views
    475

    @laserlight - Understood your points except for...

    @laserlight -
    Understood your points except for two little ones:
    1. "but even in such a case the destructor must still be defined so that the destructors of derived classes can (implicitly) invoke...
  23. Replies
    0
    Views
    220

    How to implement FractalDrawer - C++

    Hey.

    I have to implement some FractalDrawer project using inheritance and std::vector. I have described the details of the exercise here:
    Fractal Drawer Project - STL and OOP - C++

    Each...
  24. Replies
    8
    Views
    475

    @jogn.c - Thank you.

    @jogn.c - Thank you.
  25. Replies
    8
    Views
    475

    @john.c - 0. You're right, it's messy and it...

    @john.c -

    0. You're right, it's messy and it won't happen again.

    1. Ah, so we can't assign b's y (hidden) to b_as_a's y.

    2. Got it. But how can an object maintain two members with the same...
Results 1 to 25 of 135
Page 1 of 6 1 2 3 4