#include <fstream> // For ofstream #include <iostream> // For cout using namespace std; int main() { ofstream fich("misol.dat"); if (!fich) { cout << "Misol.dat\n ochishda xato"; exit(EXIT_FAILURE); } for (int i = 0; i < 10; ++i) fich << i << endl; } Keling, eng muhim satrlarni ko'rib chiqaylik: ofstream fich("misol.dat"); ofstream - bu faylni yozish uchun fich instansiyasini yaratishga imkon beradigan sinf. Ushbu holatda "misol.dat" deb nomlangan yozish uchun fayl yaratiladi. IDE faylni qaerda yaratishi yoki uni o'qishi mumkinligini bilish qulay. CodeBlocks holatida, loyiha direktori
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence