Skip to content

Instantly share code, notes, and snippets.

View j1ff's full-sized avatar

Keith Simmons j1ff

  • DSU
  • Ft Smith, AR
View GitHub Profile
@j1ff
j1ff / labFinal-p1-mergeLinkedLists.c
Last active May 4, 2019 02:10
Lab Final - CSC[250]
#include <stdio.h>
#include <stdlib.h>
typedef struct AnimalType {
char species[25];
char genus[25];
char family[25];
struct AnimalType *next;
/* 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>
@j1ff
j1ff / lab6-p1-loadWordList.c
Last active April 29, 2019 22:03
Lab 6 - CSC250
#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
@j1ff
j1ff / lab5-p1-circleThing.c
Last active April 9, 2019 13:43
CSC250 - Lab 05
#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;
@j1ff
j1ff / golFile1.txt
Created March 27, 2019 20:15
CSC250 - Lab4
20 20
* * * * * * *
* * * * * * *
* * * * * *
* * * * * * *
* * * * * * *
* * * * * *
* * * * * * *
* * * * * * *
* * * * * *
@j1ff
j1ff / scrabble.c
Created March 27, 2019 03:05
lab4
/* 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>
@j1ff
j1ff / lab3-p1-sortFile.c
Last active March 14, 2019 02:46
csc250-lab3
#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];
@j1ff
j1ff / lab1-p2-GfxTest.c
Last active March 11, 2019 23:54
csc250-lab2
#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;
@j1ff
j1ff / lab1-p1-letterLib.c
Last active January 26, 2019 18:35
csc250-lab1
//use gfx2 library to draw letters, numbers, symbols
#include <stdio.h>
#include <math.h>
#include "gfx2.h"
#include "lab1-p1-letterLib.h"
/*
* drawChar8
@j1ff
j1ff / drawSquareExample.c
Created January 22, 2019 04:33
[CSC-250] Wk 1 Class Work
/*
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"