There are some kind of Errors in the Following item:
For some Reason SetAt,str.SetAt(pos), &
for( char c : s ) if( !std::isdigit(c) )
throw std::domain_error( "non numeral in string '" + s + "'" ) ;
return true ;
#include <iostream>
using namespace std;
int main()
{
int firstinteger,secondinteger,result,x;
cout<<"Plesae enter first number"<<endl;
cin>>firstinteger;
cout<<"Please enter second number"<<endl;
cin>>secondinteger;
result=1;
if(firstinteger<secondinteger){
for(x=1;x<=firstinteger;x++){
result=secondinteger*result;
cout<<"Result :"<<result<<endl;
double first;
double second;
double result;
int choice;
bool decision = true;
while(decision){
cout<<"Please enter first number"<<endl;
cin>> first;
cout<<"Please enter second number"<<endl;
cin>>second;
cout<<"Please enter your choice /n1-addition n2-substraction"<<endl;
cin>>choice;
cout<<"3-multipication /n4-division/n5-print/n6-draw/n6-finish"<<endl;
cin>>choice;
}
switch (choice){
case 1:
result=addition( first, second);
cout<<"result="<<endl;
break;
}