- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
[CODE=C] while(true) { printf("it's good idea,and all of those can help us to learn c program well!\n"); }[/CODE]
[code=c] void* ptr = buf_ptr[20]; //----------->error [/code] what i want to say is "buf_ptr[20]" is not a pointer,it's the value of the 20th in buf_ptr
first of all,u should add seed of random data void srand( unsigned int seed ); use current time as seed!
use "pointer" to define ur function like this void PrintMatrix(int *matrix); and it will work good!
U can try to use function like "fflush(stdin)",when u call it ,it can also clear the input buffer
// fill in the array is not shown here qsort(array, NumStrings, sizeof(array[0]), compare); here,"sizeof(array[0])" is 20bytes; // fill in the array is not shown here qsort(array, NumStrings, sizeof(array[0]), compare); but here,"sizeof(arry[0])" arry[0] is a pointer,so it's mean 4bytes
The End.
Beair.GQ