Below is my text file and I can figure out column 7 (which is nextmeeting date l
ID: 3614075 • Letter: B
Question
Below is my text file and I can figure out column 7 (which is nextmeeting date like 10 September written as 10/9) what data type orwhat strategy I need to use to store into my structure array008 120 3 6.0 p F 10/9 S A MAC VB1 15.00
132 43 1 12.0 p M 10/7 P E NH 110 15.00
490 88 3 12.30 p W 10/12 V 4 UC 212A 0.0
130 32 2 11.30 a T 11/2 F G SEC 112C 10.00
Inside the main:
struct activities group[4];
int iindex;
while(iindex<count &&fscanf(groupfile,"%d", &(group[iindex].groupnum)) !=EOF) //get group number
{
fscanf(groupfile, "%d", &(group[iindex].groupsize));
fscanf(groupfile, "%d",&(group[iindex].meetweek)); //get meeting week
fscanf(groupfile, "%f",&(group[iindex].meettime)); //get meeting time
fgetc(groupfile);
group[iindex].mthalfday = fgetc(groupfile);
fgetc(groupfile);
group[iindex].meetday = fgetc(groupfile);
NEXT ONE WILL BE COLUMN 7, THAT IS THE ONLY ONE I NEED HELP ON.THANKS
Explanation / Answer
x.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.