iostream
Access violation error with ioStream
I am creating an ioStream and then using an operator overloaded in a dll: std::istrstream wStream((char *)aString,strlen(aString));[详细]
2023-02-11 12:36 分类:问答Problem with iostream,first write file in Binary mode then convert to and save ASCII
I am using iostreamto collect data from a device.First I Write file in ASCII mode,it works well,but taking quite alot of time.Then I switsch to write in Binary mode and it is faster.[详细]
2023-02-11 00:39 分类:问答C++ OverLoading the << again
So my code is compiling ok - however it is not doing what i hoped :(. Ill try and explain this as best I can -[详细]
2023-02-10 10:04 分类:问答std::cin.clear() fails to restore input stream in a good state
In order to test bool i/o, I tried to run this short program: #include <iostream> int main() { while(true)[详细]
2023-02-10 06:13 分类:问答What guarantees are there on interleaved reads and writes?
When working with a C++ std::iostream (for example, std::fstream or std::stringstream, does the standard guarantee anything about the relationships between reads and writes performed on the same strea[详细]
2023-02-10 03:58 分类:问答cin.eof() functionality
I understand that cin.eof() tests the stream format. And while giving input, end of character is not reached when there is wrong in the input. I tested this on my MSV C++ 2010 and am not understanding[详细]
2023-02-09 15:05 分类:问答gcc std::istream 'error: invalid cast from type ‘std::streamsize’ to type ‘std::streamsize’'
Alright, so here is a really weird one. I am reading raw data into a buffer, nothing fancy, my code went like so:[详细]
2023-02-09 12:24 分类:问答C++: Check istream has non-space, non-tab, non-newline characters left without extracting chars
I am reading a std::istream and I need to verify without extracting characters that: The stream is not "empty", i.e. that trying to read a char will not result in an fail state (solved by u[详细]
2023-02-09 08:56 分类:问答SWIG pass stream from python to C++
C++ I have some logger class in C++. This logger is heavily used in my library. The logger allows to set standart STL stream to use as output stream.[详细]
2023-02-09 00:31 分类:问答Why would I include iostream and ostream separately? [duplicate]
This question already has answers here: iostream vs ostream what is different? (5 answers) Closed 6 years ago.[详细]
2023-02-08 23:49 分类:问答