I'm beginner and trying to read the file using fopen_s but error shows that
Build: Debug in histimg (compiler: GNU GCC Compiler) ===|
E:\CCS\histimg\main.cpp|19|error: 'fopen_s' was not declared in this scope|
Code:
fopen_s(&fp,"C:\\Users\\asus\\Pictures\\SavedPictures\\1.png", "rb");
if (fp == 0)
{
cout << "Open image failed!" << endl;
exit(0);
}
Can you please guide me how to resolve it. Thanks.