Search:

Type: Posts; User: just_rookie

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    13,514

    But when i =2,we can get "if(p[2]>p[3])…" or...

    But when i =2,we can get "if(p[2]>p[3])…" or "if(p[2]<p[3])…",so i mean that we already checked "p[3]",why we need to do it again?
  2. Replies
    14
    Views
    13,514

    My problem is why we need the "if(i==3)"...

    My problem is why we need the "if(i==3)" statement?
  3. Replies
    14
    Views
    13,514

    hi,someone send me a piece of code as follows,but...

    hi,someone send me a piece of code as follows,but i can not understand this code well,so please do me a favor!Thank you!


    #include <cstdlib>
    #include <ctime>
    #include <iostream>
    using...
  4. Replies
    14
    Views
    13,514

    whiteflags' suggestion is good for me,because I...

    whiteflags' suggestion is good for me,because I didn't learn generic algorithm.Thank you for your reply!
  5. Replies
    14
    Views
    13,514

    my code as follows.I used your method,but it...

    my code as follows.I used your method,but it cannot solve this problem:

    :
    #include <iostream>
    #include <ctime>
    #include <cstdlib>

    using namespace std;

    void displayarr( int arr[],int size )
  6. Replies
    14
    Views
    13,514

    How to detect if a array is sorted.

    Hi,all!
    Is there a way to detect if a array is sorted or not?
  7. Thank you very much!You taught me a very...

    Thank you very much!You taught me a very important lesson!
  8. Thank you! Please post your code ,and i think i...

    Thank you! Please post your code ,and i think i will learn something form your code !Thank you again!
  9. Thank you! Please post your code ,and i think i...

    Thank you! Please post your code ,and i think i will learn something form your code !Thank you again!
  10. who can help me ? "Imagine trying to come up...

    who can help me ?
    "Imagine trying to come up with an algorithm for a program that displayed the English
    name for a number (example: 1204, one thousand, two hundred four). "
    How to work it out?
  11. solution:jumping into c++ chapter 7 exercise 1 (turn numbers into English text)

    Hi,everyone
    I'm tring to solve this problem ,but i have no idea how to break the number up into chunks of 3 digits and compute the text of a three digit chunk……Just help me! Thanks!
Results 1 to 11 of 11