Thd - #define #define #define #define #define #define...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
#define BLACK 0 #define BLUE 1 #define GREEN 2 #define CYAN 3 #define RED 4 #define MAGENTA 5 #define BROWN 6 #define LIGHTGRAY 7 #define DARKGRAY 8 #define LIGHTBLUE 9 #define LIGHTGREEN 10 #define LIGHTCYAN 11 #define LIGHTRED 12 #define LIGHTMAGENTA 13 #define YELLOW 14 #define WHITE 15 # #define T 255 #define F 0 # #define PROC process1 # typedef unsigned char bool; t class process1{ public: friend process_scheduler; unsigned char cl,act; process1 *next;//,*back; char name[256]; process1(int x,int y,bool iwork,char name[50]){ ext = F; ii = 0; i49 = y; i27 = x; work = iwork; } ~process1(void){ext=F;ii=0; } void draw(void){ v ii+=1; os.process_tabl[work].pp++; box(i27,1,i49,17,8,7); setattrib(color(0,2)); // print("M A T R I X",i27-2,19); for(int j=2;j<17;j++) { for(int i=i27+1;i<=i49-1;i+=2)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
{ gotoxy(i,j); mtx_printchar(_rand()); } } wait(800); } if(ii==400) {ext=T;return;} //exiit!! return; }//DRAW private: //float ii;//time int ii;//time bool ext,work; int i49,i27; //int (* func)() }; } ///////////////// class process_scheduler{
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/21/2011 for the course ECE 271 taught by Professor Eason,r during the Spring '08 term at University of Maine Orono .

Page1 / 4

Thd - #define #define #define #define #define #define...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online