No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
Remove the "+1" please. [CODE]int value = rand() % range;[/CODE] rand() returns a integer between 0 to RAND_MAX. Also, make sure that you use srand() before the calling, or you may get the same each running time. [URL="http://www.becoding.com/source/rand/"]http://www.becoding.com/source/rand/[/URL] [QUOTE=coolbeanbob;1634007]Hello, I am trying to figure out how to get the rand() …
I agreed with Luce. It's the simplest way to convert a image to jpeg format. If you need more advanced format converting, find some open sources [URL="http://www.becoding.com/source/jpeg+convert/"]jpeg convert[/URL], it would be very helpful.
If you do want to use your code in your project, you may debug it with setting breakpoints. It will help you find out where the hang code is. Anyway, I go though you code quickly, and it looks not so efficient. Find and make some reference from some related …
The End.
ivanx_wu