cout<<"\n\n Please Input The Drive Letter Of Your Input Device \n";
cin>>DRL;
string str(DRL);
string str2(":");
string src;
string hi;
src=str.find_last_of(DRL);
cout<<src;
if(src!=str2)
{
hi=string(DRL)+string(str2);
cout<<hi;
}
else*/
cout<<hi;
[What am i dong wrong.i am trying to enure a colon input in the drive letter regardless of user input.well it does work if i don't input a semicolon,but if i do it adds a semicolon regardless.What's wrong