How do I add a capital 'N' to the end of my loop so if the user clicks N or n then we will not continue?:


}while (con!='n');
while (con!='n' && con!='N');

or use the library and worry about only one :

#include <cctype> 
int main(){
 }while( tolower(con) != 'n'); //similarly you can do "while( toupper(con) != 'N');
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.