PageRenderTime 11ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/tutorial/external/C++/Bar.cpp

http://github.com/tybor/Liberty
C++ | 23 lines | 15 code | 7 blank | 1 comment | 0 complexity | 2d31990462d1df48a741493e4dce92c5 MD5 | raw file
 1// Basic C++ class to test the Liberty Eiffel C++ interface
 2
 3#include <iostream>
 4#include "Bar.h"
 5
 6char Bar::get_character () {
 7  return character_attribute;
 8}
 9
10double Bar::get_double () {
11  return double_attribute;
12}
13
14void Bar::do_print (int i) {
15
16  std::cout << i << "\n";
17}
18
19char Bar::do_print_and_return (int i) {
20
21  std::cout << i << "\n";
22  return 'Y';
23}