char* strerror(int iErrorNumber);
#include <cstdio>
#include <cstring>
int main()
{
// Output the first 10 error messages
for (int iIndex = 0; iIndex < 10; ++iIndex) {
char* cpErrorMsg = strerror(iIndex);
printf("Error number %i is %s\n", iIndex, cpErrorMsg);
}
return 0;
}
© 20072024 XoaX.net LLC. All rights reserved.