Default a8

This commit is contained in:
2023-11-28 10:39:46 -04:00
parent 5f01274dc4
commit b760363dc9
11 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#include <stdio.h>
char currentDirection;
void fcfs(int start){
int movement = 0;
double time = 0;
printf("Movement: %i Time:%.1lf\n", movement, time);
}
void cscan(int start){
int movement = 0;
double time = 0;
printf("Movement: %i Time:%.1lf\n", movement, time);
}
int main (int argc, char** argv){
int position, time;
char algorithm = argv[1][0];
int start = 0;
currentDirection = 'a';
while ( EOF!=(scanf("%i %i\n",&position,&time)))
{
printf("Delete me: position %i, Delete me: time %i\n",position,time);
}
if (algorithm == 'F'){
fcfs(start);
}else if ( algorithm == 'C'){
cscan(start);
}
return 0;
}