void perror(const char* kcpString);
#include <cstdio> int main() { char* cpFileName = "XoaX.net"; // Try to open a file that doesn't exist FILE* qpFile = fopen(cpFileName, "r" ); // Check that the file was opened successfully. if (!qpFile) { perror("Could not open the file"); return 1; } fclose(qpFile); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.