#include<conio.h>
using namespace std ;
struct Coord
{
int x;
int y;
};
struct Box
{
Coord left_top;
//Coord right_top ;
//Coord left_bottom;
Coord right_bottom;
};
int main (void)
{
Box title ;
title.left_top.x = 3 ;
title.left_top.y = 3;
title.right_bottom.x =30 ;
title.right_bottom.y = 7 ;
for (int y =0 ; y<title.left_top.y ;y ++)
{
cout <<endl ;
}
//for (int x =0 ; x<title.left_top.x ;x ++)
//{
// cout <<" ";
//
//}
for(int y = 0 ; y <title.right_bottom.y ; y++)
{
for(int x = 0; x<title.left_top.x; x++)
{
cout <<" ";
}
for (int x = 0; x< title.right_bottom.x; x++)
{
cout <<"#" ;
}
cout << endl ;
}
_getch();
return 0;
}
가운데를 파내고 글씨를 문자를 집어 넣으려고 하는데 얼케 해야 될지 감이 잘 안잡혀요 힌트좀 주세요
ASCII TABLE
ㅋㅋ