N
N
NekitZ0r2018-02-01 19:26:28
C++ / C#
NekitZ0r, 2018-02-01 19:26:28

Displays kryakozyabry, why?

Displays kryakozyabry? how to solve the problem

#include "stdafx.h"//podkluchaem include
#include <stdio.h>
#include <iostream>
 using namespace std;
int main()
{
    setlocale(LC_ALL,"RUS");
    char dani[1024] = {0};//для (перезагрузка памяти)
    char nazva[1024] = {0};//переменная для названия
    char avtor[1024] = {0};//toje samoe
    char god[1024] = {0};
    char kategoria[1024] = {0};
    cout<<"Введiть данi бiблiографiчного джерела : -> ";
    cin>>dani;// для не перезагрузки памяти
    cout <<"Ввeдiть назву лiтературного джерела : -> ";
    cin>>nazva;
    cout<<"Введiть автора книги : -> ";
    cin>>avtor;
    cout<<"Введiть рiк видання книги : -> ";
    cin>>god;
    cout<<"Введiть категорiю книги : -> ";
    cin>>kategoria;
    cout<<"";
    cout<<"Данi бiблiографiчного джерела : -> "<<dani;
    cout<<"Назва лiтературного джерела : ->"<<nazva;
    cout<<"Автор книги : ->"<<avtor;
    cout<<"Рiк видання книги : ->"<<god;
    cout<<"Категорiя книги"<<kategoria;

}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2018-02-01
@GavriKos

Use Latin.
Or search on the toaster - the question "how to display Cyrillic in the c++ console" was asked many times.

W
WildRacoon, 2018-02-05
@WildRacoon

Maybe it's because setlocale(LC_ALL," RUS ") , but there is a Ukrainian letter i in the text. Try setlocale(LC_ALL," Ukrainian ")/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question