From ca26d384c244d3bfe701fe40633d87ea090ff950 Mon Sep 17 00:00:00 2001 From: Ben Kyd Date: Mon, 2 Dec 2019 14:27:59 +0000 Subject: [PATCH] smh --- 2019/2ndDay/challenge2.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/2019/2ndDay/challenge2.cpp b/2019/2ndDay/challenge2.cpp index 01fa392..786aa9d 100644 --- a/2019/2ndDay/challenge2.cpp +++ b/2019/2ndDay/challenge2.cpp @@ -10,9 +10,10 @@ std::vector tokenise( std::string input ) std::vector stream; std::string s; - while( std::getline( ssInput, s, ',' ) ) { - stream.push_back( std::stoi( s ) ); - } + while( std::getline( ssInput, s, ',' ) ) + { + stream.push_back( std::stoi( s ) ); + } return stream; }