// List programs #include using std::cout; using std::endl; struct LINE { short number; char statement[255]; }; LINE code[50]; // BASIC programs int nLines = 0; // How many lines are stored in memory int insert_line(int n, char* s); void list_program(LINE* c); int main() { const int MAX_LINE=10; const int STATEMENT_WIDTH=80; insert_line(10, "A=10"); insert_line(20, "B=20"); insert_line(30, "C=A+B"); list_program(code); return 0; } void list_program(LINE c[]) { for (int i=0; i