forked from pezy/CppPrimer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improving 13_34_36_37(message and folder)
- Loading branch information
Showing
4 changed files
with
77 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Unit Test for exercise 13_34_36_37. | ||
|
||
#include "ex13_34_36_37.h" | ||
|
||
int main() | ||
{ | ||
Message firstMail("hello"); | ||
Message signInMail("welcome to cppprimer"); | ||
Folder mailBox; | ||
|
||
firstMail.print_debug(); // print: "hello" | ||
firstMail.save(mailBox); // send to mailBox | ||
mailBox.print_debug(); // print: "hello" | ||
|
||
signInMail.print_debug(); // print "welcome to cppprimer" | ||
signInMail.save(mailBox); // send to mailBox | ||
mailBox.print_debug(); // print "welcome to cppprimer hello" | ||
|
||
firstMail = firstMail; // test for assignment to self. | ||
firstMail.print_debug(); // print "hello" | ||
mailBox.print_debug(); // print "welcome to cppprimer hello" | ||
} |