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

Search:

Type: Posts; User: flex567

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,551

    Re: Problem with lists

    so every time you delete something with erase() iterator becomes invalid and you cannot increment an iterator anymore?

    from this webpage: http://www.cplusplus.com/reference/list/list/erase/ :
  2. Replies
    13
    Views
    1,551

    Re: Problem with lists

    Why this program crashes?



    #include <iostream>
    #include <string>
    #include <list>

    using namespace std;
  3. Re: Visual studio 2013 bug? no operator found which takes a right-hand operand

    oh I see, you can probably just delete this thread.
  4. Visual studio 2013 bug? no operator found which takes a right-hand operand

    I get Error this error. Did I miss something or is that some kind of bug?


    error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::string' (or there is...
  5. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    so this is how this code looks in memory?

    char ar[2][4] = { { 'x', 'y', 'z' }, {'q', 'w', 'r', 't' }};
    http://i60.tinypic.com/rw6gbq.png
  6. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    I can see that this line


    char ar[2][26] = { { 'x', 'y', 'z' }, {'q', 'w', 'r', 't' }};

    only initializes first 3 elements of the ar[0][26] and first 4 elements of the ar[1][26] others are 0...
  7. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    why is that ? To me ar[0] is not declared nor defined.
  8. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    offtopic question:
    why 2 different lines display the same output?



    int main()
    {

    char ar[1][26] = {'x'};
  9. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    yes, actully I want just that. To remove multiple instances of chars.
  10. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    should I put 'unsigned' before double, what is size_t, a class?



    the goal of the program was to delete double letters. Now program works. Here is the program:


    string...
  11. Replies
    19
    Views
    821

    Re: Debugger error - ftol3.asm not found

    what that means ?

    I had to click step over if I wanted to continue. Otherwise I would just get "ftol3.asm not found"
  12. Replies
    19
    Views
    821

    Debugger error - ftol3.asm not found

    I tried to use the debugger on this code. I putted break-point to the line 38 and soon after couple of step-ins I get the "ftol3.asm not found" error



    #include <iostream>

    using namespace...
  13. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    I will take a step back and probably rewrite the whole program
  14. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    but I am also initializing it(with balance = 1200) so I don't know why it has default value ?


    Account mike(1200, 0);
    Savings mike_s(1200, 0);
    Checkings mike_c(1200, 0);

    I know that...
  15. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    not yet

    With the help of a debugger I see that may balance is 0 instead of 1200. Why is that?
  16. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    #include <iostream>
    using namespace std;

    class Account{
    double balance;
    int day_in_month;

    public:
    Account(double initial_dep, int d) : balance(initial_dep = 0), day_in_month(d = 0) {}...
  17. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    now I get the message in the command prompt:


    you don't have enough on the account
    0
  18. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    I did it like that:




    Checkings(double initial_dep, int d) : Account(initial_dep, d) {}


    now I get this error:
  19. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    I don't need any constructor. If I delete them I get



    Error 1 error C2512: 'Savings' : no appropriate default constructor...
  20. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    this is how I wrote this program:



    #include <iostream>
    using namespace std;

    class Account{
    double balance;
    int day_in_month;
  21. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    should I have 3 deposit variables for each of the classes: (Account, Savings, Checkings) or should be just one in the Account class ?
  22. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    I will just find another example. There are a lot of them out there, no need to think too much about this one.
  23. Replies
    34
    Views
    1,035

    Re: Account exercise - Inheritance

    I dont understand this part completely
  24. Replies
    34
    Views
    1,035

    Account exercise - Inheritance

    Implement a base class Account and derived classes Savings and
    Checking.In the base class, supply member functions deposit and withdraw.Provide
    a function daily_interest that computes and adds the...
  25. Replies
    85
    Views
    2,522

    Re: Problem with pointers and classes

    Implement a base class Account and derived classes Savings and
    Checking.In the base class, supply member functions deposit and withdraw.Provide
    a function daily_interest that computes and adds the...
Results 1 to 25 of 203
Page 1 of 9 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center