Search:

Type: Posts; User: Mr. AB

Search: Search took 0.00 seconds.

  1. Thread: program

    by Mr. AB
    Replies
    3
    Views
    1,185

    Check this program #include...

    Check this program




    #include<iostream.h>
    void main()
    {
    int count=0;
    char name[15];
  2. Thread: Homework Help!!

    by Mr. AB
    Replies
    10
    Views
    2,454

    I am giving you the logic just try it out: ...

    I am giving you the logic just try it out:

    Take two variables max and min
    and find the max number put of these and print it
    then again print the second maximum element and so on

    Repeat the...
  3. Replies
    9
    Views
    3,162

    It seems to me that hte logic you have applied to...

    It seems to me that hte logic you have applied to store even and odd positions character is making the error.

    Just try this out for storing even and odd characters:

    insert


    int n1,n2;
    ...
  4. Replies
    26
    Views
    2,487

    This is one point that you mentioned there...

    This is one point that you mentioned

    there are other reasons for this also

    A program divided into many small functions is easier to maintain,update and debug.
  5. For generating numbers between 40 and 120 use...

    For generating numbers between 40 and 120 use this

    (rand()%120)+40

    or
    you can use this one also
    random(81)+40
  6. You have done a very sill mistake my friend ...

    You have done a very sill mistake my friend

    you have writtten
    num1=max;

    it should be
    max=num1;

    Same with num2 and num3.
  7. Thread: array help

    by Mr. AB
    Replies
    4
    Views
    1,012

    Solution is very simple. Just try this logic...

    Solution is very simple.
    Just try this logic and report me the errors if occured.


    LOGIC:
    Take a while or do while loop and asks from the user each time whether he wants to enter more codes or...
  8. Replies
    6
    Views
    1,218

    You have done very silly mistakes scanf("%d.%d",...

    You have done very silly mistakes
    scanf("%d.%d", &c,&d);

    no dot b/w %d and %d
    it should be like %d%d
  9. Replies
    4
    Views
    1,355

    There is no as such difference between them.

    There is no as such difference between them.
  10. Answer to Querie

    C c=new C;
    now accessing all the variable of a&c
    and that of B can be accesed by B->x;(if x is any variable in it);
    So, only one instance is created;

    I hope you are satisfied if any more...
Results 1 to 10 of 10