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

Search:

Type: Posts; User: zio_mangrovia

Search: Search took 0.00 seconds.

  1. Replies
    31
    Views
    2,013

    Re: using namespace std

    Thank you all for great explanations and suggestions.
  2. Replies
    31
    Views
    2,013

    Re: using namespace std

    In this example, if I followed ''old way of dis-allowing the object to be copied", I should add in private side of class:




    Seggio(const Seggio&); //copy constructor
    ...
  3. Replies
    31
    Views
    2,013

    Re: using namespace std

    The point of view is different, problem is not how much was easy or difficult to implement copy constructor/assignment operator.
    In exam session I have to write both compito.h and compito.cpp while...
  4. Replies
    31
    Views
    2,013

    Re: using namespace std

    In this code I don't want to implement a copy constructor and copy assignment operator but to be sure programmer doesn't use it I can mask it into private as I said in previous messages?
    What do you...
  5. Replies
    31
    Views
    2,013

    Re: using namespace std

    Regardless old/modern way, do you think in this code it's neccessary, right? Because here it has not been written while in other example it's written.
    Now I'm studying only concepts.

    thanks again.
  6. Replies
    31
    Views
    2,013

    Re: using namespace std

    Another thing which I'm not able to understand in this code.
    I note in similar code that sometimes there is masking of copy/assignment constructor.
    I know that with dynamic data It's necessary to...
  7. Replies
    31
    Views
    2,013

    Re: using namespace std

    Thank you for your warning.
    As I said this code is published by italian university in exam session hence I should follow this method if I want pass, I didn't write this code.
  8. Replies
    31
    Views
    2,013

    Re: using namespace std

    according to view of the above, compito.cpp includes cstring library, perhaps because It defines NULL pointer? I see any string functions as strcmp, strlen,...
    Why VictorN has written include...
  9. Replies
    31
    Views
    2,013

    Re: using namespace std

    about cstring library? In compito.h, what function does it require this library?




    Ok, very clear


    Excuse me, but I didn't understand this one and I need some assurances.
  10. Replies
    31
    Views
    2,013

    Re: using namespace std

    OK, you correct me if I make mistake but using namespace std is not necessary in compito.h because there is no standard function but only forward declarations and a class.
    If It my opinion is right,...
  11. Replies
    31
    Views
    2,013

    Re: using namespace std

    I understood all your best practices but I think It's necessary to show example which is written by an Italian University.
    I should to make similar exercises so it's primary target to follow this...
  12. Replies
    31
    Views
    2,013

    Re: using namespace std

    Thanks, I read this document. Good step to start.
  13. Replies
    31
    Views
    2,013

    Re: using namespace std

    Thanks for your suggestions but my examples for exercises provide always these statements so I need to know how to use it into main.cpp, app.h and app.cpp
    It's necessary to use this directive on...
  14. Replies
    31
    Views
    2,013

    using namespace std

    I didn't understand in what file I have to recall using namespace std; statements.

    My C++ project contains:

    main.cpp
    app.cpp
    app.h

    in app.h I defined class and some constants.
    Can I...
Results 1 to 14 of 14


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)