Small sugggestion for printWhitespace(). You could do the following: void printWhitespace(const unsigned int times) { printf("%*s", times, " "); } I have made the function argument const as it probably isn't meant to be modified. it is generally a good idea to be as "const" as possible as this avoids the mistake of writing to a variable that should be read-only. | | Hello 13ajdf39.blog, | | The average winter use of electricity is 706 kWH - 150% as much as in the summer. That means a much higher electric bill. Try using energy-efficient localized mini heaters that can heat whatever room you are currently in. That means you can crank down that thermostat and save money. | | | | | | |
Aucun commentaire:
Enregistrer un commentaire