Skip to content

Commit 126076c

Browse files
ww382nonlinearfun
authored andcommitted
Updated BenPost.c (#23)
1 parent 9ad2d88 commit 126076c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

BenPost.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
//** **//
1717
//** Contributors: **//
1818
//** Heather Reed **//
19-
//** Justyna Kosianka **//
19+
//** Justyna Kosianka **//
20+
//** Wensi Wu **//
2021
//** **//
2122
//** Redistribution and use in source and binary forms, with or without **//
2223
//** modification, are permitted provided that the following conditions are **//
@@ -110,7 +111,13 @@ int main (void)
110111
for (i = 0; i < 4; ++i) {
111112
fscanf(ifp[0], "%s", junk_char);
112113
}
113-
fscanf(ifp[0], "%s", junk_char);
114+
if (strcmp(junk_char, "Algorithm") == 0) {
115+
for (i = 0; i < 2; ++i) {
116+
fscanf(ifp[0], "%s", junk_char);
117+
}
118+
} else {
119+
fscanf(ifp[0], "%s", junk_char);
120+
}
114121

115122
if (strcmp(junk_char, "Direct") == 0 || strcmp(junk_char, "Newton") == 0 || strcmp(junk_char, "Dynamic") == 0) {
116123
for (i = 0; i < 6; ++i) {

0 commit comments

Comments
 (0)