Explore BrainMass
Share

System Calls Cls and Clear

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Use the function call system ("cls") or system (clear") so that the screan is clear on the begining of the pogram
What happend when the output is redirected
In file heads_or_tails.h:
#include <stdio.h>
#include <stdlib.h>
#define MAXWORLD 100
int get_call-from user(void)
void paly (int how_many);
void prn_final_report(int win, int lose, int how_many);
void prn_instruction(void);
void report_a_win(int coin);
void report_a_loss(int coin);
int toss(void);
I need to input the function clear on the begining of the program to make it clear

© BrainMass Inc. brainmass.com October 24, 2018, 8:23 pm ad1c9bdddf
https://brainmass.com/computer-science/processor-architectures/system-calls-cls-and-clear-95254

Solution Preview

#include <stdlib.h>

int system(const char *command);

The system() function passes the string pointed to by command to the host environment to be executed by a command processor in an implementation-dependent manner. For example, in Dos you issue ...

Solution Summary

Understanding of the System Calls Cls and Clear

$2.19
See Also This Related BrainMass Solution

Text Editor: Create a File on a Newly Formatted Floppy Disk

1. Using a text editor, create a file that is between 5,000 and 6,000 bytes long on a newly formatted floppy disk. Calculate the file directory and FAT entries for the type of disk used, and check your calculations using absolute sector program sector.asm.

2. Write a program that will perform the DOS DIR command for a disk that contains four test files.

View Full Posting Details