Good Stopping point for CS480 Prep
++ Phases 1-6 Preparation ++ C, H, Makefiles
This commit is contained in:
parent
b861b15368
commit
ca321e6c4e
19 changed files with 889 additions and 0 deletions
32
Preparation/Phase5/Phase5_Prep.c
Normal file
32
Preparation/Phase5/Phase5_Prep.c
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// header files
|
||||
#include "StringUtils.h"
|
||||
|
||||
// constants
|
||||
|
||||
/*
|
||||
Name: main
|
||||
Process: Runs all the functions listed above that was used as preparation for
|
||||
CS480. Videos were used as the similar practice.
|
||||
Function input/parameters: NONE
|
||||
Function output/parameters: NONE
|
||||
Function output/returned: NONE
|
||||
Device input/---: NONE
|
||||
Device output/---: NONE
|
||||
Dependencies: included by standard libraries
|
||||
*/
|
||||
int main()
|
||||
{
|
||||
// define/initialize variables
|
||||
int stringLen = 0;
|
||||
char newString[] = "This is my new string!!!";
|
||||
printf("\n---Phase 5: Getting String Length---\n");
|
||||
printf("====================================\n");
|
||||
// get user input
|
||||
// do calculations
|
||||
stringLen = getStringLength(newString);
|
||||
// display results
|
||||
printf("\nThe length of string '%s' is %d.\n", newString, stringLen);
|
||||
printf("\nProgram End\n");
|
||||
// return success
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue