📄 prettyprint.cpp
字号:
#include <blitz/array.h>using namespace blitz;int main(){ Array<float,2> A(4,4), B(4,4); Array<int,2> C(4,4); prettyPrintFormat f1; prettyPrintFormat f2(true); string s1, s2, s3, s4; (A+B).prettyPrint(s1,f1); cout << s1 << endl; (A+B).prettyPrint(s2,f2); cout << s2 << endl; (A+B+C).prettyPrint(s3,f1); cout << s3 << endl; (A+5*C).prettyPrint(s4,f1); cout << s4 << endl; { prettyPrintFormat f2(true); string s5; (A+5*C+cos(B)*A+A+pow2(B)+C).prettyPrint(s5,f2); cout << s5 << endl; } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -