Search:

Type: Posts; User: strobe9

Search: Search took 0.01 seconds.

  1. Thread: namespace std

    by strobe9
    Replies
    5
    Views
    1,521

    namespace std

    okay i've posted about this topic before here he goes again...

    so here i am compiling a multi source program and i'm getting all these duplicate symbol from std, etc...

    it has something to do...
  2. Replies
    4
    Views
    1,369

    address of array

    char alphabet[] = "abcdefghijklmnopqrstuvwxyz";

    how can &alphabet = alphabet ?

    that means "alphabet" contains it's own address.
    so how can alphabet[0] = 'a' ?

    this is my understanding of...
  3. Replies
    4
    Views
    1,499

    Thank you everyone.....

    Thank you everyone.....
  4. Replies
    4
    Views
    1,499

    writing a struct to file

    struct employee
    {
    char name[30];
    char hiredate[10];
    float salary;
    };


    employee empl;
  5. Replies
    1
    Views
    1,716

    dynamic objects in a

    Someone clear this up for me...
    -----------------------------------------------------------------------------------

    list<Order> lst_Orders;

    typedef list<Order *>::iterator it;

    Order...
  6. Replies
    3
    Views
    6,580

    if I define a member in the BASE class:...

    if I define a member in the BASE class:
    ----------------------
    void print() const
    ----------------------

    AND OVERRIDE it in the DERIVED class:
    ----------------------
    void print() const ...
  7. Replies
    3
    Views
    6,580

    redefining and overriding members

    I have a question about inheritance.

    When you REDEFINE a base class member function
    in a derived class, the function signatures DO NOT have to match.

    When you OVERRIDE a base class member...
  8. Thread: using free()

    by strobe9
    Replies
    17
    Views
    2,872

    hey

    so what about some answers regarding my original question please..... thanks
  9. Thread: using free()

    by strobe9
    Replies
    17
    Views
    2,872

    errors

    that's what i was trying to do.
    i free each element and then i free the array of pointers.

    but i keep getting a runtime error during the freeing of the elements !

    here is what i did:

    for...
  10. Thread: using free()

    by strobe9
    Replies
    17
    Views
    2,872

    using free()

    i dynamically allocated a multi dimmed array defined as

    char **cptr;

    first i issued malloc for cptr like:

    cptr = malloc(sizeof(char *) * 5);

    and then i issued malloc using a loop
    for...
  11. Replies
    3
    Views
    950

    namespace warnings

    okay.
    i'm using the new style headers under the std namespace.
    so how do i conditionally include them like the old style headers:

    #ifndef _H
    #define MYHEADER_H
    #endif
  12. Replies
    3
    Views
    950

    namespace warnings

    When I compile and link two files that use the std namespace, I get a ton of warnings from the compiler about duplicate symbols.

    The reason for the warnings is obvious so how can I link two files...
  13. declaring an array of n elements based on input

    the compiler complains about an integral constant for the array declaration.

    can it be done like this or do i have to use a pointer to set up the array ?

    i know this code is absolutely useless...
Results 1 to 13 of 13