Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. bool AddElement(std::string(&tablica)[rows][columns], int & rowCount)
  2. {
  3.     if (rowCount < rows)
  4.     {
  5.         for (int i = 0; i < columns; i++)
  6.         {
  7.             ShowInputData(i);
  8.             getline(std::cin, tablica[rowCount][i]);
  9.             //std::cin.clear();
  10.             std::cin.ignore(1, '\n');
  11.         }
  12.  
  13.         rowCount++;
  14.         return true;
  15.     }
  16.     return false;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement