I get an error which says: error C2065: 'LETTERS' : undeclared identifier.
Isn't it enough to declare Letters in main?
When I write the function with: char randomChar(const int LETTERS) everywhere I know have nothing, the function always gives me the number C. But I want it to give me random numbers. What have I done wrong?
Thanks! that worked! well, almost. I only want letters for A to G. But I get som strange signs as well. Can you see way? I have tried without srand, but that didn't make things any better.
Do you know why I have to have srand() in main instead of in the function? I think it has worked in functions before. But maybe I remember wrong.