Код: Выделить всё
#include
#include
int main()
{
const char* filename = "database.txt";
const FILE* fp = fopen(filename, "r+");
// If opened correctly, prints out a memory addr.
// if not, prints out 0.
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79366174/why-if-the-file-is-successfully-opened-it-prints-out-a-memory-address-and-if-it[/url]
Мобильная версия