why cout won't print string s1 or s2? I'm quite new to programming someone please check it out
I have included <iostream>, <cstring> in my code. In the comments below is only the main function of my program.
cout would print string s but not s1 or s2. It print individual characters of s1 such as cout<<s1[2] would work fine.
Aucun commentaire:
Enregistrer un commentaire