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...
Type: Posts; User: strobe9
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...
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...
Thank you everyone.....
struct employee
{
char name[30];
char hiredate[10];
float salary;
};
employee empl;
Someone clear this up for me...
-----------------------------------------------------------------------------------
list<Order> lst_Orders;
typedef list<Order *>::iterator it;
Order...
if I define a member in the BASE class:
----------------------
void print() const
----------------------
AND OVERRIDE it in the DERIVED class:
----------------------
void print() const ...
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...
so what about some answers regarding my original question please..... thanks
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...
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...
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
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...
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...