This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct AnimalType { | |
char species[25]; | |
char genus[25]; | |
char family[25]; | |
struct AnimalType *next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* myLettersLib.c | |
* uses gfx2 library to draw letters, numbers, symbols | |
* | |
* | |
* Author: Keith Simmons | |
* Last modified: 3/11/19 v0.2 | |
*/ | |
#include <stdio.h> | |
#include <math.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> // for strcopy() and string funcs | |
#include <stdlib.h> // for malloc(), realloc() | |
// our goal: | |
// read a list of words entered by the user | |
// store the list in an array of strings | |
// print the list back | |
#define MAXWORDS 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "myGfxShapesLib.h" // contains functions to draw shapes with gfx2 | |
#include "gfx2.h" // needed for graphics | |
int main(int argc, char *argv[]) | |
{ | |
char postDrawAction, colorSelect; // var to track what user wishes to do after first draw | |
int xCoord,yCoord,radius; // vars to store x y coords and radius of user input for use in circleThing() | |
int xSize = 800, ySize = 800; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 20 | |
* * * * * * * | |
* * * * * * * | |
* * * * * * | |
* * * * * * * | |
* * * * * * * | |
* * * * * * | |
* * * * * * * | |
* * * * * * * | |
* * * * * * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Scrabble game | |
* Builds a 21x21 game board then allows user to specify row/col to start word, and (d)own | |
* or (a)cross. Checks to make sure a word crossing another word has correct letter at crossing point. | |
* | |
* | |
* Author: Keith Simmons | |
* Date modified: 3/26/19 | |
*/ | |
#include <stdio.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "myGfxShapesLib.h" | |
#include "myFunctionsLib.h" | |
#include "gfx2.h" | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
int i = 0,j; | |
double numbers[100]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include "lab1-p2-letterLib.h" | |
#include "gfx2.h" | |
#include <string.h> | |
int main(void) | |
{ | |
char word[100]; | |
char c; | |
int r, g, b, height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//use gfx2 library to draw letters, numbers, symbols | |
#include <stdio.h> | |
#include <math.h> | |
#include "gfx2.h" | |
#include "lab1-p1-letterLib.h" | |
/* | |
* drawChar8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A simple example of using the gfx library. | |
CSE 20211 | |
9/7/2011 | |
by Prof. Thain | |
*/ | |
#include <stdio.h> | |
#include "gfx2.h" | |
#include "myGfxShapesLib.h" |
NewerOlder