Hi,
I have problem,that I have to change programming language from C++ to C, but i don't get how to make these strokes work in C language!
There is the following strokes, what I need to change:
std::ifstream in("file.txt", std::ios::binary);
if (in.is_open()) {
int cnt=0;
in.read(reinterpret_cast<char *>(&iSk), sizeof(int));
mas = (student*)calloc(iSk, sizeof(student));
while (cnt <= iSk) {
in.read(reinterpret_cast<char *>(&mas[cnt]), sizeof(student));
cnt++;
}
}
in.close();
I hope someone can help me,if there is some questions please write to me!