etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
cpp-souce-file-1.cpp
[詳解]
1 #include <cstdio>
2 #include "libcpp-test.h"
3 #include "ev3api.h"
4 
5 LibSampleClass::LibSampleClass() {
6  member = 0x12345678;
7 }
8 
9 void LibSampleClass::draw() {
10  static char buf[256];
11  sprintf(buf, "Lib Member is 0x%08x.", member);
12  ev3_lcd_draw_string(buf, 0, 64);
13 }
14 
15 extern void libcpp_test_cpp_echo_function(int val) {
16  LibSampleClass a;
17  a.draw();
18  printf("%s(): %d\n", __FUNCTION__, val);
19 }
20 
void libcpp_test_cpp_echo_function(int val)