Bug #1.
The index "i" is increased incorrectly. eg, if val is " Beginner", for your purpose, after "while(val[i++]==' ');" the "i" should be 1 and val is 'B'. However, you increase i in the "[]", so when it gets out of "while", the "i" will be 2. It's wrong.
Bug #2.
The index of str should always starts from 0, not the same with i. eg, if val is " Beginner" and str is "beginner", after "while(val[i++]==' ');", the index "i" will be increased, so in the next line "tolower(str)==tolower(val)" will always be FALSE! So I fixed this function like the following:
crazyks wrote:Hi, there is also bugs in rawvf2rawvf.c
Indeed, silly me. Nice job, crazyks.
May i ask, what are you using this program for?
Hi Cryslon, I wrote a program to do some statistic & analysis jobs for all the videos, which is based on your rawvf project. Do you want a try? The program is attached.
BTW, I'm also trying to write a minesweeper game. however, I don't have much knowledge of C++, everything to me is new. I doubt that It would take me many many nights of the following months.