io - C++ file input with mixed delimiters and data types -


i trying input data text file: line format follows... string|string|int double

example: bob|oranges|10 .89

i can line in string using getline(infile, line)

i don't understand how break line distinct variables string variable.

thanks

for start write old fashioned c code using strchr.

or use string.find / find_first_of if using std::string

http://www.cplusplus.com/reference/string/string/find_first_of/


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -