Hi I was practising on arrays and got unexpected outputs, pleas help Tanks
#include<cstdlib>
#include<fsream>
include<iostream>
#include<locale.h>
#include<string.h>
using namespace std;

string sone;
string stwo;
string sthree;
string sfour;

int one;
int two;
int three;
int four;
int main(int org,char** argv){
char array={'a','b','c','d'};
while(four<=10){
three=0
while(three<=10){
two=0
while(two<=10){
one=0
while(one<=10){

setlocale(LC_CTYPE,"Local");

ofstream out("file.txt",ios::app);
sone=array[one];
stwo=array[three];
sthree=array[four];
sfour=array[five];

out<<sfour+sthree+stwo+sone;
out<<"\n";
ou.close();


one++;}
two++;}
four++;}
five++;}



}



output

1-aaaa
2-aaab
3-aaac
4-aaad
5-aaa#
6-aaa?
7-aaa0
8-aaa#
9-aaa'
10-aaa_
11-aaa?
12-aaba
13-aabb