std
Shadowing functions of C stdlib/stdio
I am writing a game and for now i was able to implement a filesystem via sqlite with a class and its methods. To make life more easy i have planned to write some functions like fopen,fclose,fread,rena[详细]
2023-03-13 04:45 分类:问答Conversion from boost::shared_ptr to std::shared_ptr?
I got a library that internally uses Boost\'s version of shared_ptr and exposes only those. For my application, I\'d like to use std::shared_ptr whenever possible though. Sadly, there is no direct con[详细]
2023-03-12 04:48 分类:问答Simplifying find operation on vector
I\'m using a vector for several arrays in my code due to the 开发者_开发百科requirement of random access to the individual elements of the array. Some user GUI operations require searching through the[详细]
2023-03-11 13:32 分类:问答Faster Alternative to std::ofstream
I generate a set of data files. As the files are supposed to be readable, they text files (opposed to binary files).[详细]
2023-03-11 08:15 分类:问答In C++ check if std::vector<string> contains a certain value [duplicate]
This question already has answers here: How to find ou开发者_运维知识库t if an item is present in a std::vector?[详细]
2023-03-11 01:05 分类:问答Question about EXC_BAD_ACCESS error in std::vector::push_back on a pointer
std::vector sure is great, hey? I\'m getting an EXC_BAD_ACCESS in using push_back to add an element, though. (I had a similar problem once, looked it up on SO, solved! Sadly, this appears to be a diff[详细]
2023-03-10 04:08 分类:问答C++ STL - detecting reaching end of binary file [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Why does std::fstream set the EOF bit the way it does?[详细]
2023-03-08 15:29 分类:问答C++ Stdlib IO Implementation details
Are there any guarantees that C++ std IO will be portable across all Desktop and Mobile OS (I\'m interested in iOS and Android)?[详细]
2023-03-08 13:02 分类:问答Declaring a std::map iterator causes a weird error
I am just trying to declare a map iterator but I get a compile error saying \"expected ; before it\" I believe it is because I haven\'t included the whole std namespace (using namespace std;) but I i[详细]
2023-03-06 08:04 分类:问答Why to use 'errno' at all?
I\'m a CS student at the Technion, I have just learned of errno variable and c-style function calls. This makes me开发者_如何学运维 wonder, if c-style syscalls use registers to return a value, why sho[详细]
2023-03-05 19:30 分类:问答