Purchase Solution

System Calls Cls and Clear

Not what you're looking for?

Ask Custom Question

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

Purchase this Solution

Solution Summary

Understanding of the System Calls Cls and Clear

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 ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.