Search:

Type: Posts; User: lydiapeter

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,008

    You've given me a great example(person) .Thanx a...

    You've given me a great example(person) .Thanx a ton.
  2. Replies
    7
    Views
    1,008

    good example

    Could u suggest a good example for operator overloading other than the fraction or the inches problem.
  3. Replies
    6
    Views
    1,457

    unsigned integers

    main()
    {
    int b=1;
    unsigned int a=-1;
    if(a<=b)
    cout<<" a is less \n";
    else
    cout<<"b is less \n";
    }
  4. thanks a lot

    thanks a lot
  5. for an array object any ctor could be invoked?Right!!

    if it is an arrayObject then the constructor could be invoked like

    myclass m[5]={1,2,3,4,5} for the second ctor, right? Can't it happen for an pointer then!!Help me.
  6. constructor invocation---other than the defaults?

    class myclass
    {
    int i,j;
    public:
    myclass():i(0){}
    myclass(int a):i(a),j(a){}
    myclass(int a,int b):i(a),j(b){}
    void put()
    {
    cout<<i<<" "<<j<<endl;
  7. Replies
    5
    Views
    1,727

    thanks a lot

    thanks a lot
  8. Replies
    5
    Views
    1,727

    what actually happens here

    what actually happens here
  9. Replies
    5
    Views
    1,727

    dangling pointers

    Could anyone explain dangling pointers with better programs.
  10. Replies
    9
    Views
    2,378

    just try out this so u could find the answer for...

    just try out this so u could find the answer for your previous problem


    #include<stdio.h>
    main()
    {
    char *s1="Hello";
    for(;*s1!='\0';s1++)
    printf("%s",s1);
    }
  11. Replies
    5
    Views
    876

    The same gives errors in c++.Is that the default...

    The same gives errors in c++.Is that the default type of augument in c is void and c++ is not void?
  12. Replies
    5
    Views
    876

    Just tell me why this happens.

    #include<stdio.h>
    #include<conio.h>
    void get()
    {
    printf("Hello\n");
    }
    main()
    {
    clrscr();
    get(10,20);
Results 1 to 12 of 12