This file contains hidden or 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>//rand func | |
| #include<time.h>//seed | |
| int randNum();//declare the function | |
| int main() | |
| { | |
| //srand(time(NULL));//seed | |
| printf("%i\n", randNum()); |
This file contains hidden or 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 "gfx2.h" | |
| //# include "myGfxShapesLib.h" | |
| // argc: a count of how many command line arguments were given | |
| // when the program was invoked. This includes the command name itself | |
| // argv: a one-dimensional array of strings | |
| // mean argv[someIndex] can be used anywhere you would use string | |
| // anywhere "you could put something in double-quotes" |
This file contains hidden or 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> | |
| #include <time.h> | |
| # include "gfx2.h" | |
| # include "myGfxShapesLib.h" | |
| void printListOfDoubles(double *list, int length) | |
| { |
This file contains hidden or 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 "gfx2.h" | |
| # include "myGfxShapesLib.h" | |
| char h; | |
| int main(int argc, char* argv[]) | |
| { | |
| double cmdLineDataValues [100];//dont use more than one hundred cmd line args | |
This file contains hidden or 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
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x04-p1--chartFromFile | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| # include "gfx2.h" |
This file contains hidden or 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
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x04-p2--testDrawLinesFunction | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> |
This file contains hidden or 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
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x04-p3--creativeLines | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> |
This file contains hidden or 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
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x04-p4--plotMath | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> |
This file contains hidden or 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> | |
| #include <time.h> | |
| # include "gfx2.h" | |
| # include "myGfxShapesLib.h" | |
| #include <unistd.h> | |
| int main(int argc, char *argv[]) | |
| { |
This file contains hidden or 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> | |
| #include <time.h> | |
| #include <unistd.h> // for usleep -- only on linux | |
| // defines the max num of rows&cols | |
| #define MAXROWS 200 | |
| #define MAXCOLS 200 | |
| void printTableOfInts(int table[MAXROWS][MAXCOLS], int nRows, int nCols) |