lab5.h:94:30: error: empty character constant while(full_name [i]!= '')




Need help with this error in C++




this is my code and error in the end :



lab5.h:94:30: error: empty character<br>constant<br>while(full_name [i]!= '')<br>

Extracted text: lab5.h:94:30: error: empty character constant while(full_name [i]!= '')
std::string extractLastName (std::string full_name, std::string email){<br>int i = 0;<br>while(i<full_name.length()){<br>while(full_name [i]!='')<br>i++;<br>i++;<br>int j=i;<br>int k-1;<br>while(j<full_name.length() && k<email.length()){<br>char c1=full_name[j];<br>char c2=email[k];<br>if(c1>='A' && c1<='z')<br>c1 +=32;<br>if(c2>='A' && c2<='z')<br>c1 +=32;<br>if(c1!=c2)<br>break;<br>j++;<br>k++;<br>}<br>if(j== full.name.length())<br>return full_name.substr(i);<br>}<br>return

Extracted text: std::string extractLastName (std::string full_name, std::string email){ int i = 0; while(i='A' && c1<='z') c1="" +="32;" if(c2="">='A' && c2<='z') c1="" +="32;" if(c1!="c2)" break;="" j++;="" k++;="" }="" if(j="=" full.name.length())="" return="" full_name.substr(i);="" }="" return="" "";="">

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here