why doesnt this work:
Code:#include "stdafx.h" #include "iostream" using namespace std; int main(int argc, char* argv[]) { int i; char letter; char option[2]; int x; do { cout << "Enter a Number: "; cin >> i; letter = i; cout << "\nNumber you entered: " << i; cout << "\nEquivalent Letter: " << letter; cout << "\nRestart from beginning? (Y for Yes, N for No): "; cin >> option; if(option == "N") { return 0; } }while(option != "N"); }





Reply With Quote