/* Multiple line in macros */ /* Program to draw horizontal & vertical line */ #define HLINE for ( i = 0 ; i < 79 ; i++ ) \ printf ( "%c", 196 ) ;
#define VLINE( X, Y ) {\gotoxy ( X, Y ) ; \ printf ( "%c", 179 ) ; \ } main( ) { int i, y ; clrscr( ) ;
gotoxy ( 1, 12 ) ; HLINE
for ( y = 1 ; y < 25 ; y++ ) VLINE ( 39, y ) ; }
|
| Author: Lenin 10 Jun 2008 | Member Level: Diamond Points : 2 |
hi giri are you a computer student , i know only small programs in C.But i know C is a SEA.Am i right ? I remember the days when i used to mugup the codings for Lab exams.still c fear is there. Also still C is in flying colours
|