⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hello-funct.cc

📁 SensorSimII is the framework of a simulator that I have been working on to study how future sensor n
💻 CC
字号:
#include <stdio.h>component print_string {public:    inport void in(const char*);};void print_string::in(const char*s){    printf(s);}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);}int main(){    driver<const char*> d;    print_string s;    connect d.out, s.in;    d.run("hello world!\n");    return 0;} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -