📄 hello-incl.cc
字号:
#include <stdio.h>#include "hello-incl.h"template <class T> component driver{public: outport void out(T t); void run(T t);};template <class T>void driver<T>::run(T t){ out(t);}component system{public: driver<const char*> d; print_string s; system() { connect d.out, s.in; }};int main(){ system s; s.d.run("hello world!\n"); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -