This shows you the differences between two versions of the page.
| — |
c:conio.h:delline [2024/02/16 01:05] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== delline ====== | ||
| + | <code c> | ||
| + | void delline (void); | ||
| + | </code> | ||
| + | ==== description of delline ==== | ||
| + | delete the line containing the cursor and move all lines below it one line up. | ||
| + | |||
| + | <code c> | ||
| + | #include<stdio.h> | ||
| + | #include<conio.h> | ||
| + | |||
| + | int main(void) | ||
| + | { | ||
| + | |||
| + | printf("This line will be deleted ... press a key."); | ||
| + | getch(); | ||
| + | delline(); | ||
| + | printf("Line deleted successfully."); | ||
| + | getch(); | ||
| + | return 0; | ||
| + | } | ||
| + | </code> | ||
| + | |||
| + | ===== output of delline c example ===== | ||
| + | 1 | ||
| + | This line will be deleted ... press a key | ||
| + | |||
| + | 2 | ||
| + | Line deleted successfully. | ||