summaryrefslogtreecommitdiff
path: root/student.c
blob: b0437fc79e9dea67c3431df0ff2b7c168d877155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include "user_defs.h"

int main(void) 
{
	char buffer[100]; fgets(buffer, 99, stdin); //mandatory to fix controller programs input stream, not needed if they use fgets and sscanf instead of scanf

	int num = -2, type = -2, code = -2, value = -2;
	double time = -2;


	while (1) {
		scanf("%d %lf %d %d %d", &num, &time, &type, &code, &value);
		printf("%d, %lf, %d, %d, %d\n", num, time, type, code, value);
	}

	return 0;
}