#include #include #include #include #include std::vector tokenise( std::string input ) { std::stringstream ssInput( input ); std::vector stream; std::string s; while( std::getline( ssInput, s, ',' ) ) { stream.push_back( std::stoi( s ) ); } return stream; } class IntCodeCPU { public: IntCodeCPU(); std::vector Program; int ProgramCounter; void SetProgram( std::vector program ) { Program = program; } void RegisterOpcode( int opcode ) { } }; int main(int argc, char** argv) { std::ifstream infile( argv[1] ); std::string input; std::getline( infile, input ); std::vector program = tokenise( input ); }