Pretty simple really, I hope. I have opened a text file, and I want it to read the first line with getline. I want it to take all the integers in that line, separated by commas, and add them together to be stored in a variable. However, I'm not quite sure how to set this up with delimiters.
#include <fstream>
#include <iostream>
int main(){
std::fstream codeBreaker;
int x,y,z;
codeBreaker.open("input.txt");
void decipher();
void encode();
std::cout << "Have a nice day!" << std::endl;
return 0;
}
void decipher(){
}
void encode(){
}