ina219_app_wifi_g2/menu.cpp
/**
 * Prida k menu novou polozku.
 * Kod polozky musi byt vetsi nez nula.
 */
Prida k menu novou polozku.
Kod polozky musi byt vetsi nez nula.
Prida k menu novou polozku . Kod polozky musi byt vetsi nez nula .
void Menu::addItem( const char * text, int code )
{
  if( this->ct==MAX_MENU_ITEMS) return;
  strcpy( this->items[this->ct], (const char*)text );
  this->codes[this->ct] = code;
  this->ct++;
}
void Menu :: addItem ( const char * text , int code ) { if ( this -> ct == MAX_MENU_ITEMS ) return ; strcpy ( this -> items [ this -> ct ] , ( const char * ) text ) ; this -> codes [ this -> ct ] = code ; this -> ct ++ ; }
Prida k menu novou polozku.
Prida k menu novou polozku .