Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- const int MAX_WORDS = 20;
- typedef struct{
- char *word;
- int wordX;
- int wordY;
- } objectWordStruct;
- void SetInitialValues(objectWordStruct *activeWords[MAX_WORDS]){
- for(int i = 0; i < MAX_WORDS; i++){
- activeWords[i] -> wordX = 0;
- activeWords[i] -> wordY = 0;
- }
- }
- int main()
- {
- objectWordStruct activeWords[MAX_WORDS];
- SetInitialValues(&activeWords);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement