Search:

Type: Posts; User: ok_good

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,208

    that's make sense!!! Thanks you so much!!!

    that's make sense!!! Thanks you so much!!!
  2. Replies
    4
    Views
    1,208

    i thought it just output 1111, but i don't know...

    i thought it just output 1111, but i don't know why the output is 1010101 if print out four_int[0], can you explain why this happen?
  3. Replies
    4
    Views
    1,208

    a output question

    i have a very simple c program


    int main()
    {
    int i;
    int four_int[4];
    char* c;

    for (i=0; i<4; i++)
  4. Replies
    5
    Views
    1,961

    just like you said after freed ptr then assign...

    just like you said after freed ptr then assign prt = NULL, it work fine. do we have any other method that checks the consistency of the free list?
  5. Replies
    5
    Views
    1,961

    how to check list is free

    For the storage management, we can use free() function, but the storage management functions might have bugs, like accidentally freeing a section of memory twice, or overwriting an array. Some of...
  6. Replies
    11
    Views
    10,893

    how about between C and Java? Is it Java take...

    how about between C and Java? Is it Java take less code than C?
  7. Replies
    11
    Views
    10,893

    most line of codes for programming language

    Hi:

    I have a simple question that which programming language likely takes the most lines of code between Java, C and MIPS assembly language? Thanks!
  8. Replies
    8
    Views
    1,305

    also i cannot use array to hold the number..

    also i cannot use array to hold the number..
  9. Replies
    8
    Views
    1,305

    Very simple question

    hi:

    If i can use getchar() function to input some numbers from keyboard only, how i can convert or use any method to sum those numbers up? Thanks!!!
  10. Replies
    0
    Views
    2,370

    A question of the MIPS assembly program

    I have a question about the memory allocation of MIPS assembly program. I need to declare a array to hold the dates, like mm/dd/yy

    I declare the .data section like this:
    .data
    size .word 0...
  11. Replies
    7
    Views
    9,075

    this program is ask user input a number, such as...

    this program is ask user input a number, such as 4, and then do the Fibonacci numbers, output the result, suppose is 3. But my program increase the result for 3 each time, so my result is 6. I can't...
  12. Replies
    7
    Views
    9,075

    Fibonacci numbers counting from 0, not 1.

    Fibonacci numbers counting from 0, not 1.
  13. Replies
    7
    Views
    9,075

    This is MIPS assembly language program. Suppose...

    This is MIPS assembly language program.
    Suppose Fibonacci numbers counting from 0, the resule is 0, 1, 1, 2, 3, 5, 8, 13, 21
    but my program can not output the correct answer, which it's i input 6,...
  14. Replies
    7
    Views
    9,075

    Fibonacci number program problem(assembly)

    anyone can help me to fix my program problem? I can't output the correct number, what's the problem on my code? Help me, thanks.


    ## Program to computes the value of Fibonacci number.

    ...
  15. Replies
    2
    Views
    3,840

    how to sort the scores(small to large)

    Acutally i have 10 good scores:
    23 5 87 29 87 0 100 55 33 23

    how can i sort good score in ascendant order(samll to large)

    here is my code:


    void soreScores(ofstream& outdata, int...
  16. Replies
    13
    Views
    1,091

    i think so!!! here is the code that i was...

    i think so!!!

    here is the code that i was changed:

    #include <iostream>
    #include <fstream>
    #include <iomanip>

    using namespace std;
  17. Replies
    13
    Views
    1,091

    i think no, it should be output 44.2. so i don't...

    i think no, it should be output 44.2.
    so i don't know how to do that.
  18. Replies
    13
    Views
    1,091

    the average output is 8.58994e+007 when i change...

    the average output is 8.58994e+007 when i change the code (double)sum / 10.
    Thanks!
  19. Replies
    13
    Views
    1,091

    the average output suppose is 44.2 but i was...

    the average output suppose is 44.2

    but i was change the Code:
    outdata << "The average of good scores is: " << (double)sum / index;

    it also cannot output the correct answer.
  20. Replies
    13
    Views
    1,091

    i have a problem on my program, please help!

    my program suppose input:
    23 5 87 -3 29 87 0 104 300 100 55 -34 -3 101 33 23

    suppose output the bad scores:
    -3 104 300 -34 -3 101

    suppose output the good scores:
    23 5 87 29 87 0 100 55 33...
Results 1 to 20 of 20