Advertisement
Guest User

Untitled

a guest
Sep 28th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. int lines_count = 1;
  2. size_t i = 0;
  3. while ((i = m_tooltips[iter->fname].tooltip.find("\n", i)) != std::string::npos) {
  4. lines_count++;
  5. i += 2;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement