It's not working, god I suck. I should reread the entire book.
Code:int main() { ofstream outfile ("IntegerProgram.txt"); //Creates textfile cout << "This is the semi-godlike Integer Detection Program. It will allow you to enter a number, then determine if the entered number is an intege.\n"; float integer; int remainder = (int)integer; cout << "Please enter your number: "; cin >> integer; remainder = integer%1; if(remainder == 0) { cout << "Yes, " << integer << "is an integer."; } else { cout << "I'm sorry, " << integer << "is not an integer."; } getch(); return 0; }



Reply With Quote