📄 example2.cc
字号:
// example2.cc#include "cpptcl.h"#include <iostream>#include <string>using namespace std;using namespace Tcl;void hello(){ cout << "Hello C++/Tcl!" << endl;}int main(){ interpreter i; i.def("hello", hello); string script = "for {set i 0} {$i != 4} {incr i} { hello }"; i.eval(script);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -