Search:

Type: Posts; User: Asmodan

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,726

    The way i've been looking at is something similar...

    The way i've been looking at is something similar to this:



    float af;
    int a;

    cin >> af;
    a = (int) af;
  2. Replies
    1
    Views
    1,726

    List of derived classes

    If I have classes B, and C which are derived from class A, is it possible to store objects of B and C in an STL list declared as list<A> myList; or will these be stored as objects of class A only.
    ...
  3. Replies
    3
    Views
    1,726

    Catching bad input

    Is there a simple way of catching bad input for integers? Say if someone enters a character instead?
  4. Replies
    3
    Views
    1,301

    Thank you :) Will try this.

    Thank you :) Will try this.
  5. Replies
    3
    Views
    1,301

    Calling Base Class Functions

    Could someone please tell me how to call base class functions from a derived class function with the same name?
  6. Replies
    3
    Views
    1,108

    Found my problem, it was in the header files. ...

    Found my problem, it was in the header files.

    For example, where I put


    class CPersonalEntry: public CAddressBookEntry
    {
    public:
    CPersonalEntry():CAddressBookEntry();
  7. Replies
    3
    Views
    1,108

    Thanks for your reply. Here are the contents of...

    Thanks for your reply. Here are the contents of four of the files I'm using.

    Entry.h


    #ifndef __ENTRY_H
    #define __ENTRY_H

    #include <string.h>
  8. Replies
    3
    Views
    1,108

    Help with inheritance using modules

    I have two classes, Entry and PersonalEntry, which is derived from Entry.

    The class Entry is in two files, Entry.h and Entry.cpp and PersonalEntry is in PersonalEntry.h and PersonalEntry.cpp

    I...
Results 1 to 8 of 8