hello
i am a complete novice programmer
now i want to give my c program a nice look
to do so i made a program like this
Code:
#include <stdio.h>
main(void)
{
int i=1;
printf("----------------------------------------------------------------------------------------------------------------------------------------------------------------");
while(i<=20)
{
printf("
|| ||\n");
i++;
}
printf("----------------------------------------------------------------------------------------------------------------------------------------------------------------");
getch();
return 0;
}
dont laugh this prints a box like this
http://i1147.photobucket.com/albums/.../something.jpg
http://i1147.photobucket.com/albums/.../something.jpg
. but the problem is if i try to write something inside it the border collapses so i have to re arrange the order. now i have seen some c programs that actually has a border now how do i do that. i mean i there a logic to do so. please give answer in c language only. thanks in advance.