I am new to programming so I dont know a whole lot yet, but I start working on an assignment for my programming class and have hit a few snags...
Here is the problem from the book:
In a program write a function named drawPattern. The draw function should accept two arguments: one for the patterns width and another for the height. When the program runs the darkgdk function should ask the user for the width and height of the pattern, and then pass these values as arugments to the drawpattern function.
so far I got:
Any help would be much appreciated.
void __cdecl drawPattern(int);
void drawPattern(int width, int height)
int height = dbScreenHeight();
int width = dbScreenWidth();
int x = width/2;
int y = height/2;