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 8 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    16
    Views
    358

    Re: Debugger error - ftol3.asm not found

    why is that ? To me ar[0] is not declared nor defined.
  2. Replies
    16
    Views
    358

    Re: Debugger error - ftol3.asm not found

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



    int main()
    {

    char ar[1][26] = {'x'};
  3. Replies
    16
    Views
    358

    Re: Debugger error - ftol3.asm not found

    yes, actully I want just that. To remove multiple instances of chars.
  4. Replies
    16
    Views
    358

    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...
  5. Replies
    16
    Views
    358

    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"
  6. Replies
    16
    Views
    358

    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...
  7. Replies
    34
    Views
    701

    Re: Account exercise - Inheritance

    I will take a step back and probably rewrite the whole program
  8. Replies
    34
    Views
    701

    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...
  9. Replies
    34
    Views
    701

    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?
  10. Replies
    34
    Views
    701

    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) {}...
  11. Replies
    34
    Views
    701

    Re: Account exercise - Inheritance

    now I get the message in the command prompt:


    you don't have enough on the account
    0
  12. Replies
    34
    Views
    701

    Re: Account exercise - Inheritance

    I did it like that:




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


    now I get this error:
  13. Replies
    34
    Views
    701

    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...
  14. Replies
    34
    Views
    701

    Re: Account exercise - Inheritance

    this is how I wrote this program:



    #include <iostream>
    using namespace std;

    class Account{
    double balance;
    int day_in_month;
  15. Replies
    34
    Views
    701

    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 ?
  16. Replies
    34
    Views
    701

    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.
  17. Replies
    34
    Views
    701

    Re: Account exercise - Inheritance

    I dont understand this part completely
  18. Replies
    34
    Views
    701

    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...
  19. Replies
    85
    Views
    1,688

    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...
  20. Replies
    85
    Views
    1,688

    Re: Problem with pointers and classes

    I am just interested if there is a way to do one thing in different ways.
  21. Replies
    85
    Views
    1,688

    Re: Problem with pointers and classes

    In this case every object has its own base class. The base class is not shared between objects(worker, music, exc)
    Is there a way to do it without initialiser lists?
    Aren't this guideline of the...
  22. Replies
    85
    Views
    1,688

    Re: Problem with pointers and classes

    Name: Mia
    Department: Music
    Salary: 1200
    Executive
    Department: no department


    If I want the Department to be: "Music" I have to write the Executive constructor ?
  23. Replies
    85
    Views
    1,688

    Re: Problem with pointers and classes

    you mean like that ?



    Manager(string dep = "no department", string nn = "no name", int sa = 0) {

    Employee(nn, sa);
    department = dep;
    }
  24. Replies
    85
    Views
    1,688

    Re: Problem with pointers and classes

    This is the exercise


    Derive a class Manager from Employee.Add a data field, named
    department, of type string.Supply a function print that prints the managerís name,
    department, and salary....
  25. Replies
    17
    Views
    565

    Re: cin and cin.get()

    I don't understand a lot of things on this page http://www.cplusplus.com/
Results 1 to 25 of 197
Page 1 of 8 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