printPiece.cc Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
printPiece.cc
Go to the documentation of this file.
1 /* printPiece.cc
2 */
3 #include "osl/piece.h"
4 #include <iostream>
5
6 using namespace osl;
7 int main()
8 {
9 int piece;
10 while (std::cin >> piece)
11 {
12 Piece p = Piece::makeDirect(piece);
13 std::cout << p << std::endl;
14 }
15 }
16
17
18 /* ------------------------------------------------------------------------- */
19 // ;;; Local Variables:
20 // ;;; mode:c++
21 // ;;; c-basic-offset:2
22 // ;;; End: