Skip to content

Commit

Permalink
Update ex6_44.cpp
Browse files Browse the repository at this point in the history
remove redundancy of including. and added some comments.
  • Loading branch information
pezy committed Nov 1, 2014
1 parent d1a6038 commit 122a9c7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions ch06/ex6_44.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@

#include <iostream>
#include <string>
#include <vector>
#include <iterator>

using namespace std;
using std::string;


inline bool isShorter(const string &s1, const string &s2)
inline bool isShorter(const string &s1, const string &s2) // defining in the header more better.
{
return s1.size() < s2.size();
}

int main()
{


std::cout << isShorter("pezy", "mooophy") << std::endl;
}

0 comments on commit 122a9c7

Please sign in to comment.