Re: [c-prog] Help!Help!

2007-11-02 Thread wang jun
#include #include #include int main() { int s1[101]={0}; int s2[101]={0}; int i,j,r; srand(time(NULL)); int n1,n2; n1=rand() % 100+1; n2=rand() % 100+1; for (i=0; is1[j]) {

Re: [c-prog] Help!Help!

2007-11-02 Thread Thomas Hruska
Wang Jun wrote: > I think it is better if you can state what your code is trying to > do. make a better alignment and add some comment. > I have done some changes based on your code. check whether it is > what you want. > > see attachment!( it works in ubuntu ) Attachments are not allowed on thi

Re: [c-prog] Help!Help!

2007-11-02 Thread Wang Jun
I think it is better if you can state what your code is trying to do. make a better alignment and add some comment. I have done some changes based on your code. check whether it is what you want. see attachment!( it works in ubuntu ) On Thu, 2007-11-01 at 22:08 +0800, xiaoxinchen1989 wrote: > H

[c-prog] Help!Help!

2007-11-01 Thread xiaoxinchen1989
Hello all! This one of my programe, when it is running, a warning that" 0xC0FD: Stack overflow"!Can you help me!Thank you! #include "stdafx.h" #include #include #include void makemerge(int *, int *); void disresult(int *queue, int *front, int *rear); void enqueue( in