Skip to content

Instantly share code, notes, and snippets.

@espinz
Created May 18, 2019 20:10
Show Gist options
  • Select an option

  • Save espinz/d733b211b78dcea7bc2016444b38458c to your computer and use it in GitHub Desktop.

Select an option

Save espinz/d733b211b78dcea7bc2016444b38458c to your computer and use it in GitHub Desktop.
A C++ loop to count days
int dayType::set_newahead()
{ //start get_newahead
day += ahead;
while (day > 7)
day = day - 7;
return day;
} //end get_newahead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment