Why is my program printing out the null termination character?
- by Tyler Pfaff
When I run this, it will SOMETIMES print out a null termination character. Most of the time it will, and probably 1/5 times it will print just the characters.
void cryptogram::Encrypt(){
cout<<"encrypt"<tempS){
len=tempS.length();
int a=0;
for(int j=0;j
if(j!=len){ //if the word still has more characters
…