Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void add_table(struct Table* t, const char* _code, const char* _name, const int _numb)
- {
- for (int i = 0; i < current_num_tables; ++i)
- {
- if (!strcmp(_code, t[i].code)) {
- t[i].numb += _numb;
- return;
- }
- }
- strcpy(t[current_num_tables].code, _code);
- strcpy(t[current_num_tables].name, _name);
- t[current_num_tables].numb = _numb;
- current_num_tables++;
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement