Skip to main content

Timeline for DOS-based Boggle simulator

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Jul 5, 2023 at 15:42 comment added chux Minor: now - start == 180 assumes time_t is a count of seconds. Common, yet not certain. Review diftime().
Jul 5, 2023 at 6:43 comment added Cody Gray You can create a scope at any point you like inside of a function using curly braces. That allows you to, effectively, put the variable declarations wherever you want. This is what I do when I'm forced to use C89. It also forces me to keep my functions really short. (I tend not to refactor things out into separate functions unless I'm calling the code from more than one place. Otherwise, it's easier for me to reason about and maintain if it's all localized in one place, even if it makes for a lengthy function.)
Jul 4, 2023 at 21:55 history edited ArrayBolt3 CC BY-SA 4.0
noticed another problem and pointed it out
Jul 4, 2023 at 18:17 comment added wizzwizz4 If you want paragraphs in your second example, put the line break after the letterLine call, not before it. Then all the letterLine code is together.
Jul 4, 2023 at 17:33 history edited ArrayBolt3 CC BY-SA 4.0
Remove an incomplete sentence chunk
S Jul 4, 2023 at 16:19 review First answers
Jul 4, 2023 at 16:53
S Jul 4, 2023 at 16:19 history edited ArrayBolt3 CC BY-SA 4.0
corrected a misunderstanding of mine in regard to C89 variable declaration
Jul 4, 2023 at 16:13 comment added ArrayBolt3 @TobySpeight That's probably what it's doing (requiring declarations at the start of their containing compound statement). I remember not understanding compile-time errors and discovering that the variables had to be declared at the start of something (I thought it was only at the start of functions). I doubt the compiler is faulty since this is Sybase's Watcom C, which was famous for how good it was back before it was open-sourced. I'll double-check things and correct the answer.
Jul 4, 2023 at 15:59 comment added Toby Speight If the compiler insists that all declarations be at the start of a function, it's faulty. Prior to C99, C required that declarations must be at the start of their containing compound statement before any statements, but never only at the start of functions.
S Jul 4, 2023 at 15:40 review First answers
Jul 4, 2023 at 15:59
S Jul 4, 2023 at 15:40 history answered ArrayBolt3 CC BY-SA 4.0