Search:

Type: Posts; User: ryan_qut

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    5,763

    i need more hint.

    hi, what shd i add then??sorry for asking, but my first time writting overloading functions. i was not taught overloading for pointers, just normal + only..can give some code snipplets??
  2. Replies
    4
    Views
    5,763

    having trouble with overloading operator+

    Hi,

    i wanted to overload a + operator to add two objects..i have an error which states "invalid operands `employee *' and `employee *' to binary `operator +'".. i do not know what is wrong with...
  3. Replies
    7
    Views
    1,386

    Ok i get it now, Thanks alot.. Initially i...

    Ok i get it now, Thanks alot..

    Initially i thought that the contents of num in main will not be changed even after passing to the function.. but it did, i guess its because of the pointer stuff......
  4. Replies
    7
    Views
    1,386

    thanks dagdarian

    Thanks mate,

    but i wanted to know to write using pointers method..thanks for ur advice anyway. ;)
  5. Replies
    7
    Views
    1,386

    //write in C this example #include ...

    //write in C this example

    #include <stdio.h>
    #include <stdlib.h>

    //function to double the value
    void doublemynum(int *num_pointer) // (*num_pointer) gets the contents of num which is...
  6. Replies
    7
    Views
    1,386

    what is wrong with this simple prg??

    Hi, can anyone pointed out what did i do wrong, i was expecting a 10 and a 20 for the output..Thanks




    //write in C this example

    #include <stdio.h>
    #include <stdlib.h>
  7. Replies
    3
    Views
    4,152

    hi

    Sorry salem,

    where should this loop be then?? and shd the printf statement be array[i] or just array?? because i am printing the results of the array after the loop so i dont need the [i] right??...
  8. Replies
    3
    Views
    4,152

    what is the output of this code fragment?

    #define N_ELEMS 5

    int main(void)
    {
    int array[N_ELEMS];
    int i;

    for(i=0;i<N_ELEMS;i++)
    array[i]=i;
Results 1 to 8 of 8