Skip to content

Commit

Permalink
Update ex7_23_24_25.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
shbling committed Nov 16, 2014
1 parent 89d2111 commit 4107b83
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ch07/ex7_23_24_25.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ class wyScreen

//! constructs:
wyScreen() = default;
wyScreen(const pos h, const pos w, pos n) : height(h), width(w)
{
while(n--) this->contents += " ";
}
wyScreen(const pos h, const pos w, const std::string &c) : height(h), width(w){ this->contents += c; }
wyScreen(const pos h, const pos w) : height(h), width(w),contents(ht * wd, ' ') { }
wyScreen(const pos h, const pos w, const std::string &c) : height(h), width(w) contents(ht * wd, c) { }

private:
pos cursor = 0;
Expand Down

0 comments on commit 4107b83

Please sign in to comment.