fstream.h
C-- Primer 6th .pdf Github От: Аноним  
Дата: 05.09.08 06:11
Оценка:
подскажите плз где мона скачать fstream.h....а то у мя его поч нема(
Re: fstream.h
C-- Primer 6th .pdf Github От: php-coder Чехия http://slava-semushin.blogspot.com
Дата: 05.09.08 06:12
Оценка:
Здравствуйте, Аноним, Вы писали:

А>подскажите плз где мона скачать fstream.h....а то у мя его поч нема(


А просто fstream пробовали?
Re: fstream.h
C-- Primer 6th .pdf Github От: Bell Россия  
Дата: 05.09.08 06:17
Оценка:
Здравствуйте, Аноним, Вы писали:

А>подскажите плз где мона скачать fstream.h....а то у мя его поч нема(


Нигде — это устаревший достандартный файл. Сейчас вместо него нужно использовать fstream:
#include <fstream>


Ну и конечно не забывать о том, что сущности стандартной библиотеки лежат в пространстве имен std.
Любите книгу — источник знаний (с) М.Горький
Re[2]: fstream.h
C-- Primer 6th .pdf Github От: Аноним  
Дата: 05.09.08 06:28
Оценка:
Здравствуйте, Bell, Вы писали:

B>Здравствуйте, Аноним, Вы писали:


А>>подскажите плз где мона скачать fstream.h....а то у мя его поч нема(


B>Нигде — это устаревший достандартный файл. Сейчас вместо него нужно использовать fstream:

B>
B>#include <fstream>
B>


B>Ну и конечно не забывать о том, что сущности стандартной библиотеки лежат в пространстве имен std.

но с просто fstream код кот должен работать почемуто не работает...говорит что не знает что такое ofstream
Re[3]: fstream.h
C-- Primer 6th .pdf Github От: Bell Россия  
Дата: 05.09.08 06:32
Оценка:
Здравствуйте, Аноним, Вы писали:

B>>Ну и конечно не забывать о том, что сущности стандартной библиотеки лежат в пространстве имен std.

А>но с просто fstream код кот должен работать почемуто не работает...говорит что не знает что такое ofstream

Не работает, или не компилируется?
А про std не забыл?
std::ofstream f("test.txt");


Ну и диагностику компилятора в подобных ситуациях бывает полезно привести.
Любите книгу — источник знаний (с) М.Горький
Re: fstream.h
C-- Primer 6th .pdf Github От: Аноним  
Дата: 05.09.08 06:34
Оценка:
вот в этой строчке
ofstream fnews("news.html",ios::out|ios::binary);
следующие ошибки
Error 1 error C2065: 'ofstream' : undeclared identifier c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173
Error 2 error C2146: syntax error : missing ';' before identifier 'fnews' c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173
Error 3 error C2653: 'ios' : is not a class or namespace name c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173
Error 4 error C2065: 'out' : undeclared identifier c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173
Error 5 error C2653: 'ios' : is not a class or namespace name c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173
Error 6 error C2065: 'binary' : undeclared identifier c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173
Error 7 error C3861: 'fnews': identifier not found c:\distrib\src\localspy\hook_man\hook_mandlg.cpp 173

как их исправить?
Re[2]: fstream.h
C-- Primer 6th .pdf Github От: Sanik Россия http://sergeysthoughts.blogspot.com/
Дата: 05.09.08 06:43
Оценка:

C-- Primer 6th .pdf Github 🆕

| Option | Cost | Coverage | Best For | | :--- | :--- | :--- | :--- | | | ~$35 | C++11/14 | Serious learners who want the real book. | | GitHub based notes | Free | C++17/20 | Practical learners who want modern examples. | | LearnCpp.com | Free (donation) | C++17/20/23 | Beginners wanting a web-based, updated Primer. |

Be cautious of sites or repositories offering copyrighted materials for free. Downloading or sharing copyrighted materials without permission is illegal. Always look for legitimate sources, such as the publisher's website or online libraries that offer previews or rentals.

It teaches the use of the Standard Library from the start. C-- Primer 6th .pdf Github

Widely regarded as the best, most up-to-date, completely free tutorial site for learning C++ from scratch. It is continuously updated for C++20 and C++23.

There is currently no official available in print or digital format. Why the 6th Edition Does Not Exist Yet | Option | Cost | Coverage | Best

The phrase is a highly frequent search query among aspiring programmers and computer science students. It represents a collective hunt for one of the most revered learning resources in the software engineering world. However, this specific search query contains a mix of industry misconceptions, copyright risks, and open-source alternatives.

A curated list of incredibly useful C++ frameworks, libraries, and learning resources. Recommended Alternatives for Learning Modern C++ | Be cautious of sites or repositories offering

GitHub is an incredible resource for C++ learners, even if the specific "6th Edition" doesn't exist yet. Instead of searching for a pirated PDF, use the platform to enhance your learning through these common repository types:

by Bjarne Stroustrup – A concise overview of modern C++ (up to C++20) for people who already know how to program.

Re[3]: fstream.h
C-- Primer 6th .pdf Github От: VoidEx  
Дата: 06.09.08 08:07
Оценка:
Здравствуйте, Sanik, Вы писали:

S>std::ofstream fnews("news.html", std::ios::out | std::ios::binary);


Тут тоже не забудьте.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.