#include <iostream> #include <string> #include <fstream> using namespace std; int main() { int currentPhase=0, workingPhase, taskid=0, steps=0, days, maxDays=0, accumulator=0; string fileName; cout << "Please enter your filename.txt. "<<endl; cin>>fileName; ifstream myfile; myfile.open(fileName.c_str()); while (myfile>>workingPhase) { myfile>>taskid; myfile>>days; // this is the part im stuck on.. // I dont how to separate it from the different phases. while (workingPhase>currentPhase){ ++currentPhase; cout << workingPhase<< } return 0; } |