Search:

Type: Posts; User: Mr.777

Page 1 of 13 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,656

    Try knowing about dynamic array creation or if...

    Try knowing about dynamic array creation or if you still want to use static ones, in the very start, try initializing your array with null and then after getting input from user, search through the...
  2. And what is this? Your code?

    And what is this? Your code?
  3. Replies
    24
    Views
    9,153

    D is declared no where.

    D is declared no where.
  4. Replies
    2
    Views
    4,351

    1. getDegree() returns an integer but you aren't...

    1. getDegree() returns an integer but you aren't storing it anywhere. Not an error but it's against the rules.
    2. Same is the case for getScale().
    3. convertFtoC (float) is returning and accepting...
  5. Replies
    4
    Views
    1,064

    I want Elysia to comment about this. Elysia can...

    I want Elysia to comment about this.
    Elysia can better explain everything about it.
  6. Try it and if got any problems, post here. And...

    Try it and if got any problems, post here. And read homework policy.
  7. And what are the problems with this code?

    And what are the problems with this code?
  8. Yes my typing mistake. it will be numbers[k++]....

    Yes my typing mistake. it will be numbers[k++]. Sorry.
  9. Replies
    3
    Views
    1,231

    Add to front and delete from last.

    Add to front and delete from last.
  10. Now simple do; int temp=0; for(int...

    Now simple do;


    int temp=0;
    for(int index=0;index<k;index++)
    {
    temp=numbers[k];
    numbers[k]++=numbers[index];
    numbers[index]=temp;
    }
  11. 1. Depends upon the function you've implemented...

    1. Depends upon the function you've implemented for your class stack.
    2. Depends upon the function you've implemented for your class stack.
    3. Depends upon the function you've implemented for...
  12. I think you will have to use one temporary...

    I think you will have to use one temporary variable.
  13. I want to ask one thing, that you aren't allowed...

    I want to ask one thing, that you aren't allowed to use even a single variable except the specified ones?
  14. Hahaha... For showing only, you can do; ...

    Hahaha... For showing only, you can do;


    for(int i=k;i<lengthOfArray;i++)
    {
    cout<<numbers[i];
    }
    for(int j=0;j<k;j++)
    {
    cout<<numbers[j];
  15. Show your code.

    Show your code.
  16. Replies
    8
    Views
    1,120

    Well, you've declared double item_cost but you...

    Well, you've declared double item_cost but you are trying to use it like a pointer. double is a datatype that doesn't mean that by doing this, you are able to declare a pointer. If you want to create...
  17. Replies
    6
    Views
    3,113

    You need to code all this inside main function.

    You need to code all this inside main function.
  18. Thread: Linked List

    by Mr.777
    Replies
    81
    Views
    4,983

    Remember the difference between single pointer...

    Remember the difference between single pointer and the double pointer.
    Pointers are just to store the addresses and nothing else.
    Single pointer stores the address of a single variable or array or...
  19. For your explaination: Suppose i do float...

    For your explaination: Suppose i do


    float x=2.24;

    2.24 is actually treated as double but implicit type cast will convert it into float.
    So if you want to keep it float,


    float x=2.24f;
  20. Thread: help me !

    by Mr.777
    Replies
    2
    Views
    661

    1. Do you really think, it is sorting...

    1. Do you really think, it is sorting efficiently???
    2. What is l and r??? No initialization... so expecting garbage or 0 for both.
    3.

    if(l>=r)
    {
    printf("element not found");
    ...
  21. Replies
    19
    Views
    1,831

    Okay for your ease, it's just a little help, but...

    Okay for your ease, it's just a little help, but you can move forward while getting this little idea if you really want to do.

    So,

    You should know that integer (int) is a primitive data type...
  22. Thread: anithmetic

    by Mr.777
    Replies
    8
    Views
    995

    1. From where the variable fileline is accessed?...

    1. From where the variable fileline is accessed? (As i can't see through your whole code, anyways let i suppose it's initialized or set somewhere.)
    2. Okay, let take a case.
    e.g. Your line array...
  23. Thread: String equality

    by Mr.777
    Replies
    11
    Views
    1,147

    Use std::string or std::vector(preferable) Or...

    Use std::string or std::vector(preferable)
    Or compare them index by index.
  24. Replies
    4
    Views
    771

    First, these are not multidimensional arrays but...

    First, these are not multidimensional arrays but only single arrays.

    Definiterly, crash..... Boooooooooommmmmmmm!!!
    No it will not go back to zero, a runtime error.
  25. Replies
    23
    Views
    1,573

    I first enter 1 and then 4. Now check your...

    I first enter 1 and then 4.
    Now check your pointer condition....
    Your pointer is not pointing to any where, means it's a dangling pointer.
    Now, start handling it...
    Good luck
Results 1 to 25 of 322
Page 1 of 13 1 2 3 4