Hi I just want to make a Rectangle in C using graphics instead of doing like this:
Please help me if possibleCode:void box_ma() { int c=60,r=1; gotoxy(60,1); printf("%c",218); // ASCII Code of ("Ú") is 218 for(r=2;r<=17;r++) { gotoxy(c,r); printf("%c",219); // ASCII Code of ("³" is 179 & "Û" is 219) } gotoxy(60,17); printf("%c",192); // ASCII Code of ("À") is 192 for(c=61;c<=76;c++) { gotoxy(c,17); printf("%c",196); // ASCII Code of ("Ä") is 196 } gotoxy(77,17); printf("%c",217); // ASCII Code of ("Ù") is 217 for(r=16;r>=2;r--) { gotoxy(77,r); printf("%c",219); // ASCII Code of ("³" is 179 & "Û" is 219) } gotoxy(77,1); printf("%c",191); // ASCII Code of ("¿") is 191 for(c=76;c>=61;c--) { gotoxy(c,r); printf("%c",196); // ASCII Code of ("Ä") is 196 } }



LinkBack URL
About LinkBacks


