if (partySize < openSeats)

Dublin Core

Description

This code keeps track of the number of clean seats at a bar for a math problem. Throughout the code are several comments explaining what the code does.

Creator

Anonymous Submitter

Publisher

Unpublished

Date

Language

English

Identifier

Coverage

2000-2024

Notebook, Marginalia and Annotation Item Type Metadata

Genre

annotation

Material

digital

Circulation

None

Linguistic Text

if (partySize <= openSeats) // If there are enough clean seasts in general loop thru seats
{
// printk(KERN_INFO "STEP ONE two ICHI");

while (i < NUM_STOOLS && isSeated == 0)
{
//printk("in da loopdyloopoooopopopoppoooopoop");
if (mainBar.allTables[tblCount].stools[i].currentState == C && i != 7) // Keep track of how many consecutive clean seats there are
{
if(consecClean == 0) // Keep track of the first clean seat
j = i;

++consecClean;
}

Visual Text

Some words are different colors, indicating their status as variable names, function names, or special characters. Comments are a slightly darker grey.

Uploaded

Anonymous Submitter 03/22/23

Files

IMG_6073.JPG

Citation

Anonymous Submitter, “if (partySize < openSeats),” Museum of Everyday Writing, accessed May 3, 2024, https://museumofeverydaywriting.omeka.net/items/show/2231.

Output Formats