#include <stdio.h>
#define WIDTH 80
#define HEIGHT 25
// Function to initialize the video template
void initializeTemplate(char template[HEIGHT][WIDTH]) {
for (int i = 0; i < HEIGHT; i++) {
for (int j = 0; j < WIDTH; j++) {
template[i][j] = ' ';
}
}
}
// Function to draw a rectangle in the template
void drawRectangle(char template[HEIGHT][WIDTH], int x, int y, int width, int height) {
for (int i = y; i < y + height; i++) {
for (int j = x; j < x + width; j++) {
template[i][j] = '*';
}
}
}
// Function to display the video template
void displayTemplate(char template[HEIGHT][WIDTH]) {
for (int i = 0; i < HEIGHT; i++) {
for (int j = 0; j < WIDTH; j++) {
printf("%c", template[i][j]);
}
printf("\n");
}
}
int main() {
// Create a video template
char videoTemplate[HEIGHT][WIDTH];
// Initialize the template
initializeTemplate(videoTemplate);
// Draw a rectangle at position (10, 5) with width 20 and height 10
drawRectangle(videoTemplate, 10, 5, 20, 10);
// Display the video template
displayTemplate(videoTemplate);
return 0;
}