This crashes midway through, I'm not exactly sure what I am doing wrong.
Code:
#include <iostream>
#include <conio.h>
#include <string>
#include <vector>
#include <fstream>
using namespace std;
int main(void) {
ofstream fout;
fout.open("PERFECT.txt");
for(int NumberInQuestion = 0; NumberInQuestion < 1000; NumberInQuestion++) { //cycle through all the niqs
for(int Tracker = 0; Tracker <= NumberInQuestion; Tracker++) { //Cycle through all the numbers that
if(NumberInQuestion % Tracker == 0)
Tracker = Tracker + Tracker;
if(Tracker == NumberInQuestion)
fout << Tracker << endl;
}
}
fout.close();
return 0;
}
It isn't extremely complicated, brain fart