(Dev-c ++) несовместимые типы в присваивании int для char [1]

Я недавно пытаюсь сделать игру на С ++, и это код.

    #include <iostream>
#include <windows.h>
using namespace std;

//cut

void WritePlayerUsername(int PlayerNumber)
{
//clear();  this is same as system("cls");
char First[1], Second[1], Third[1], Fourth[1], Fifth[1];
char Sixth[1], Seventh[1], Eighth[1], Nineth[1], Tenth[1];
cout<<"Username";
for(int a=0; a<2; a++) cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
cout<<"                                                                                            [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]"<<endl;
gotoxy(14, 93);
First=getch(); //Here
cout<<First;
gotoxy(14, 97);
Second=getch(); //here
cout<<Second;
gotoxy(14, 101);
Third=getch(); //here
cout<<Third;
gotoxy(14, 105);
Fourth=getch(); //here
cout<<Fourth;
gotoxy(14, 109);
Fifth=getch(); //here and something like these
cout<<Fifth;
gotoxy(14, 113);
Sixth=getch();
cout<<Sixth;
gotoxy(14, 117);
Seventh=getch();
cout<<Seventh;
gotoxy(14, 121);
Eighth=getch();
cout<<Eighth;
gotoxy(14, 125);
Nineth=getch();
cout<<Nineth;
gotoxy(14, 129);
Tenth=getch();
cout<<Tenth;
fstream file;
if(PlayerNumber==1){ file.open("C:\\Game\\Users\\1\\username.txt", ios::in | ios::out | ios::binary);
file<<First<<Second<<Third<<Fourth<<Fifth<<Sixth<<Seventh<<Eighth<<Nineth<<Tenth;}
}

Мой компилятор Dev-C ++ говорит
[Ошибка] несовместимые типы в присваивании ‘int’ для ‘char [1]’

Я не очень хорош в C ++ прямо сейчас, и я все еще учусь, и мне нужно решение.
Спасибо

-2

Решение

Почему вы используете char First[1]? Это одноэлементный массив элементов типа char, Замени это просто

char First;
2

Другие решения