python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Loading Protocol Buffer From File Does Not Succeed
I want to load Google Protocol Buffer encoded data from a file via "ParseFromIstream". But this call simply returns false (no additional error information available?) and the data is only re...
Boris
Votes: 0
Answers: 0
Transferring an ifstream into an unordered map of a string and vector of strings
int main() {
std::unordered_map<std::string, vector<std::string>> pronunciation_dict;
std::vector<std::string> phonomes;
std::string pronun;
{
std::ifstream pronun_file(&...
Drake Goldsmith
Votes: 0
Answers: 1
Reading from file without using string
I am doing a school project where we must not use std::string. How can I do this? In the txt file the data are separated with a ";", and we do not know the length of the words.
Example:
appl...
petizana
Votes: 0
Answers: 1