Search:

Type: Posts; User: aldajlo

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Virtual

    by aldajlo
    Replies
    6
    Views
    1,093

    Virtual

    Hi

    Just have a few questions
    1. Virtual functions can be accessed using object pointers only ??
    2. We cannot have virtual constructors but we can have virtual destructors ??

    :confused:
  2. Replies
    1
    Views
    1,618

    Composition & Aggregration

    Please tell me the difference between composition and aggregration.
    They seem to be the same to me.
  3. Thread: about "this"

    by aldajlo
    Replies
    1
    Views
    806

    about "this"

    i am writing a function in which based on some condition i am supposed to call another function with this passed as a parameter to it..

    my code is somewhat like this..


    class b
    {...
  4. Replies
    7
    Views
    1,148

    i have a query..... what is preffered for binary...

    i have a query.....
    what is preffered for binary operators to be overloaded
    1. member function..
    2. friend function..
  5. Replies
    7
    Views
    1,148

    Operator overloading.......

    #include <iostream>
    #include <conio.h>
    #include <string>
    using namespace std;
    const int N=100;
    class A
    {
    private:
    int ar[N];
    public:
  6. Replies
    33
    Views
    3,346

    pointers are important and only when u get...

    pointers are important and only when u get involved in programming with different approaches for the same problem you will come to know of the difference between the approaches.....
    all the guys out...
  7. Replies
    25
    Views
    7,471

    maybe you should..... 1. uninstall the current...

    maybe you should.....
    1. uninstall the current Dev_C++
    2. download the setup for Dev-C++ 4.9.9.0
    3. install it...........with the default directory provided while installing.......

    use all...
  8. Replies
    19
    Views
    2,272

    Thanks a lot ........ Shakti you were...

    Thanks a lot ........

    Shakti you were right........
    i uninstalled Dev-C++ and then downloaded it again.....
    reinstalled it.......
    the program works fine.......

    thanks to all those who...
  9. Replies
    19
    Views
    2,272

    #include using namespace std; ...

    #include <iostream>

    using namespace std;

    class complexnum


    all my question revolves around the first line ..............
    please answer my question ...............
    which is quite to the...
  10. Replies
    19
    Views
    2,272

    oh sorry..... but the problem starts with the...

    oh sorry.....
    but the problem starts with the first line itself.....
    how do i continue........knowing about others?
    please help me with that error it gives to me on the first line :
    "iostream :...
  11. Replies
    19
    Views
    2,272

    yes i know........... but it has to be...

    yes i know...........
    but it has to be there........
    so what is it thats wrong it that..........
    i am not getting it......
    please help me understand........
  12. Replies
    19
    Views
    2,272

    code does not compile

    i am using devc++
    and my code is



    #include<iostream>

    using namespace std;

    class complex
  13. Replies
    13
    Views
    1,860

    i didn't get it...... what did u mean Quzah........

    i didn't get it......
    what did u mean Quzah.....

    it's just using that variable thats making the output go wrong
    and i don't get it . why?

    please explain.......
  14. Replies
    13
    Views
    1,860

    i tried the same code as such but still using the...

    i tried the same code as such but still using the variable 'is'


    int is = 0;
    int isdiagzero(int a[][10],int m,int n,int *i,int *j)
    {
    if(((*i)<m)&&((*j)<n))
    {
    if(a[*i][*j]!=0)
    ...
  15. Replies
    13
    Views
    1,860

    i am still not getting it please help me

    i am still not getting it
    please help me
  16. Replies
    13
    Views
    1,860

    again salem......... 1. this thought too had...

    again salem.........

    1. this thought too had crossed my mind



    is = isdiagzero(a,m,n,(*i)++,(*j)++); //is this parameter passing right i++,j++


    it used to give me some...
  17. Replies
    13
    Views
    1,860

    i had understood that before and tried writing...

    i had understood that before
    and tried writing the code as



    int i=0,j=0;
    if(isdiagzero(array,m,n,&i,&j)==0) //type - recursion
    // if(isdiagz(array,m,n)==0) //type - iteration...
  18. Replies
    13
    Views
    1,860

    i tried that but the exception is still coming...

    i tried that but the exception is still coming
    the output is correct if i use type-iteration
    and an exception is generated from the type-recursive

    the modified code is


    #include<stdio.h>...
  19. Replies
    13
    Views
    1,860

    passing 2d arrays as parameters

    not able to understand where the problem is ..
    Determining if a mtrix has in it's diagonal - all zeros


    #include<stdio.h>

    int isdiagzero(int a[][10],int m,int n,int *i,int *j)
    {
    ...
  20. Thread: maze problem

    by aldajlo
    Replies
    1
    Views
    1,402

    maze problem

    here is a maze problem
    0 indicates - solid cells
    1 indicates - empty cells
    # indicates starting position
    @ indicates ending position

    i have written the program assuming there r no loops
    but...
  21. Thread: question

    by aldajlo
    Replies
    5
    Views
    875

    i agree with vicious this is binary arithmetic...

    i agree with vicious

    this is binary arithmetic as i suppose
    it is like this

    11111111 + 1 = 100000001

    since in binary most significant bit represents a sign
    it gets set to 1 and read as...
  22. Replies
    5
    Views
    1,933

    thanks anyway

    actually i understood that problem after i last posted my message and have rectified it . such a silly mistake!

    well thanks a lot still for providing help

    the output now is

    OUTPUT :
    STACK...
  23. Replies
    9
    Views
    2,293

    i suppose that in yr code add a temp variable to...

    i suppose that in yr code add a temp variable to store the result of previous comparision and compare it with the new result
    if it equals don't print it

    hope so i understood ur question !
  24. Replies
    5
    Views
    1,933

    i tried those corrections but only a minor...

    i tried those corrections but only a minor diffrence in output

    OUTPUT :
    STACK
    push 1 1-------------------------------------->here pushes 1
    push 2 Stack overflow 1-------------------> why not...
  25. Replies
    9
    Views
    2,293

    if i am right you re sorting in hi_rent_model...

    if i am right you re sorting in hi_rent_model
    first u r adding the rents of the models by all of its manufacturers
    storing them into a temporary struct varable
    then u r sorting them according to...
Results 1 to 25 of 31
Page 1 of 2 1 2