that's make sense!!! Thanks you so much!!!
Type: Posts; User: ok_good
that's make sense!!! Thanks you so much!!!
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?
i have a very simple c program
int main()
{
int i;
int four_int[4];
char* c;
for (i=0; i<4; i++)
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?
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...
how about between C and Java? Is it Java take less code than C?
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!
also i cannot use array to hold the number..
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!!!
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...
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...
Fibonacci numbers counting from 0, not 1.
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,...
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.
...
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...
i think so!!!
here is the code that i was changed:
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
i think no, it should be output 44.2.
so i don't know how to do that.
the average output is 8.58994e+007 when i change the code (double)sum / 10.
Thanks!
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.
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...