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?:

do{

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

or use the library and worry about only one :

#include <cctype> 
//..
int main(){
 //...
 do{
 }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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.