Oops sorry forgot to include myhead.h but notes28.h is the code I just put there let me do it seperately so you call compile it from the calling program
Code:
// this is the calling program
#include <stdio.h>
#include <stdlib.h>
#include "notes28.h"
int main()
{
// Heading();
ClearTheScreen();
GridBox(5,6,4,4,12);
PauseTheScreen();
}
Code:
//source code
void GridBox(int Row,int Col,int SizeX, int SizeY, int Color)
{
int q,k,m;
char UpperLeft[2],UpperRight[2],LowerLeft[2],LowerRight[2];
char Vertical[2],Horizontal[2];
char UpperTee[2],LowerTee[2],LeftTee[2],RightTee[2];
char Cross[2];
_settextcolor(Color);
UpperLeft [0] = 218;
UpperRight[0] = 191;
LowerLeft [0] = 192;
LowerRight[0] = 217;
Vertical [0] = 179;
Horizontal[0] = 196;
UpperTee[0] = 194;
LowerTee[0] = 193;
LeftTee [0] = 195;
RightTee[0] = 180;
Cross [0] = 197;
UpperLeft [1] = '\0';
UpperRight[1] = '\0';
LowerLeft [1] = '\0';
LowerRight[1] = '\0';
Vertical [1] = '\0';
Horizontal[1] = '\0';
UpperTee [1] = '\0';
LowerTee [1] = '\0';
LeftTee [1] = '\0';
RightTee [1] = '\0';
Cross [1] = '\0';
// CORNERS
_settextposition(Row,Col);
_outtext(UpperLeft);
_settextposition(Row,Color+Row+SizeX+1);
_outtext(UpperRight);
_settextposition(Color+1,Col);
_outtext(LowerLeft);
_settextposition(Color+1,Color+Row+SizeX+1);
_outtext(LowerRight);
// Horizontal Lines
for ( q = 0; q < Row; q++)
{
for ( k = 0; k < SizeX; k++)
{
for ( m = 0; m < 3; m++)
{
_settextposition(Row+2*q,1+Col+SizeX*k+m);
_outtext(Horizontal);
}
}
}
}
i removed the myhead.h since its not really necessary it was just the header