It is necessary to display an array of 20 q. But instead he prints: qqqqqqqqqqqqqqqqqqqqММММT?HЎhэУ
. How to fix it?
#include "pch.h" #include <iostream> #include <Windows.h> using namespace std; int main(int argc, const char * argv[]) { setlocale(LC_CTYPE, "rus"); char tt[20] = { 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q', 'q' }; cout << tt << endl; cin.get(); return 0; }