Hey there..
Trying to do this simple C++ program where I have to print my name but honestly, its not working right.. I figured that I would have to simply put my letters in the quotes but the problem is that the lines of the letters keep getting messed up and I have to make adjustments.. Why is this so?
Moreover, after the S, there is no space on the right so the W messes the whole output out.. Why?
Thanks much..
Trying to do this simple C++ program where I have to print my name but honestly, its not working right.. I figured that I would have to simply put my letters in the quotes but the problem is that the lines of the letters keep getting messed up and I have to make adjustments.. Why is this so?
Moreover, after the S, there is no space on the right so the W messes the whole output out.. Why?
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
int main()
{
int i,j;
char A[6][11]={
{" J"},
{" J"},
{" J"},
{" J"},
{"J J"},
{" JJ"}};
char B[6][11]={
{" "},
{" AA "},
{" A A "},
{" A A "},
{" A AA A "},
{"A A" }};
char C[6][11]={
{" "},
{" IIIII"},
{" I "},
{" I "},
{" I "},
{"IIIII"}};
char D[6][11]={
{" FFFFFF "},
{" F "},
{" FFFF "},
{" F "},
{" F "},
{"F"}};
char E[6][11]={
{" "},
{" AA"},
{" A A"},
{" A A"},
{" A AA A"},
{"A A" }};
char F[6][11]={
{" RRR"},
{" R R"},
{" RRR"},
{" RR"},
{" R R"},
{" R R" }};
char G[6][11]={
{" "},
{" SSSSSS"},
{" SS " },
{" SSSSS"},
{" SS"},
{" SSSSSS"}};
char H[6][11]={
{" W W "},
{" W W "},
{" W W "},
{" W W "},
{" W WW W "},
{" WW WW"}};
for(i=0;i<6;i++)
{
for(j=0;j<11;j++)
{
cout<<A[j];
}
for(j=0;j<11;j++)
{
cout<<B[j];
}
for(j=0;j<11;j++)
{
cout<<C[j];
}
for(j=0;j<11;j++)
{
cout<<D[j];
}
for(j=0;j<11;j++)
{
cout<<E[j];
}
for(j=0;j<11;j++)
{
cout<<F[j];
}
for(j=0;j<11;j++)
{
cout<<G[j];
}
for(j=0;j<11;j++)
{
cout<<H[j];
}
cout<<endl;
}
return 0;
}
Thanks much..