Search:

Type: Posts; User: crzy1

Search: Search took 0.01 seconds.

  1. Thread: Operator=

    by crzy1
    Replies
    4
    Views
    1,551

    Thank you both very much. I used the following...

    Thank you both very much. I used the following code and everything displayed fine:



    public:
    Meal(char ent[] = "Pizza ", int cal = 25);
    Meal operator+(Meal &aMeal);
    //this is the...
  2. Thread: Operator=

    by crzy1
    Replies
    4
    Views
    1,551

    Operator=

    In this program my operator+ first creates a Meal with the default constructor. The default constructor makes exam.entree equal "Pizza" and exam.calorie equal 25. Then exam.calorie is set to the sum...
  3. Thread: Display problem

    by crzy1
    Replies
    2
    Views
    1,314

    The fields for Meal did need to be set with...

    The fields for Meal did need to be set with arguements or uses default values when no arguements are provided. I have changed public to:



    public:
    Meal(char ent[] = "Pizza ", int cal = 25);...
  4. Thread: Display problem

    by crzy1
    Replies
    2
    Views
    1,314

    Display problem

    The program will run but does not display right. Perhaps I did not initialize something...but I can not find it and have been looking over it for awhile. Can anyone help and let me know what it is I...
  5. Replies
    15
    Views
    2,735

    I don't know what the problem is with C and...

    I don't know what the problem is with C and classees with me, but with any other languages, such as VB. net I have no problems.

    Thanks for the help!

    I have been told before not to use the void...
  6. Replies
    15
    Views
    2,735

    All of the errors are on the lines with char and...

    All of the errors are on the lines with char and are basically the same:

    cpp(17) : error C2440: '=' : cannot convert from 'char [7]' to 'char [15]'
  7. Replies
    15
    Views
    2,735

    Problem with classes

    I am new to programming and have to admit that I am lost on a simple assignment that can be fixed quickly but I am stumped and over looking the problem.
    Classes are definitely not my favorite, yet...
  8. Replies
    2
    Views
    2,248

    Can someone help please

    I had to define a class named Customer that holds private fields for Customer ID number, last name, first name, and credit limit. There had to be four private functions that each set one of the four...
Results 1 to 8 of 8