mercredi 25 mars 2020

Cannot display two consecutive wchar_t array using wcout

I have two wchar_t array

wchar_t arr1[] =L"@@@@@xxx";
wchar_t arr2[] = L"@@@@trial@@@@@trial";

Now if I use two consecutive wcout to display them then only the first wcout is displayed.

example 1:

wcout << arr1 << endl;
wcout << arr2<<endl;

output: @@@@@xxx

example 2:

wcout << arr2<<endl;
wcout << arr1 << endl;

output: @@@@trial@@@@@trial

Why is the second wcout not displaying an output?

Aucun commentaire:

Enregistrer un commentaire