read_it_file.cpp
来自「强大的C++库」· C++ 代码 · 共 23 行
CPP
23 行
#include <itpp/itcomm.h>using namespace itpp;int main(){ // Declare the it_file class it_file ff; // Open the file "it_file_test.it" for reading ff.open("it_file_test.it"); // Read the variable a from the file. Put result in vector a. vec a; ff >> Name("a") >> a; // Print the result std::cout << "a = " << a << std::endl; // Exit the program return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?