return 0;
}
and got this error msg: c:\documents and settings\paul\my documents\visual studio 2010\projects\ch04p22\ch04p22\ch04p22.cpp(18): error C2664: 'strcmp' : cannot convert parameter 1 from 'char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Would "char* ptr str; and if(!strcmp(&str, numbers[i]))
solve the problem?
& code tags are before and after code in our questions?
Thanks. I looked at the code a bunch of times and missed the d... brackets. Also missed the missing commas in the data! Sign of age!
I have been using a program called 'Clipomatic' written by Mike Lin in C++. I've been using it since Win 95, now on XP. Clipomatic is a clipboard-caching program that remembers text that you have copied to the clipboard, even after it has been replaced by other text. Really useful, especially in coding. You can cut several items and move them 1 at a time to different lines. Find it with a search.