Beginners - August 2018 (Page 15)

by Ch1156
Loading entire contents of text file into string
 
I am trying to load the entire contents of a file into a string, and for some reason I cannot get it to work. I have done this many times before but I cant seem...
[6 replies] Last: Hello Ch1156, As Repeater has pointed out the file needs to be in the... (by Handy Andy)
Overloading a Pointer with New Operator
 
Hey, My name is Corey, I've been doing programming off and on as a hobby over the last 10 years or so. I needed to do a string operation in C++ to separate ...
[3 replies] Last: feels like you should return a vector of string that could be empty or... (by jonnin)
how to file handling
 
help please 1) how can i make C++ program to search for files that start with A and end in B, and to delect those files? 2) how to get the directories where...
[2 replies] Last: ok thanks Thomas1965 (N) (by jamesgodspower)
STL and Lambda Expression
 
I don't understand why my commented lambda expression doesn't work as expected (when uncommented, of course :-)). The function returns a vector<int> of random ...
[4 replies] Last: yes, std::transform() wants you to return the new value so it can writ... (by Jaybob66)
by stav
Returning list without forcing the data structure
 
Hi I have run in to this problem a few times and im never really sure what to do: Basically, sometimes, i have a function that needs to return a selection of o...
[1 reply] : Sounds like a template is what you need. Something like this: templat... (by Repeater)
August 2018 Pages: 1... 131415
  Archived months: [jul2018] [sep2018]

This is an archived page. To post a new message, go to the current page.