tecplot 脚本文件

本文介绍了一段C++代码,该代码能够生成tecplot的脚本文件,实现自动绘图功能。通过读取特定格式的文件,进行镜像处理,并能创建动画效果。然而,此方法要求输入文件名遵循特定的规则。
摘要由CSDN通过智能技术生成

一个简单的C++代码,可以生成tecplot的脚本文件,打开文件就能自动绘图。绘图过程是先把文件导入,然后镜像,最后生成一个动画,但是导入的文件名称要求是有规律的。

 1 /*
 2 ** This program is used to create macro command file
 3 ** execute the file to draw picture automatically
 4 */
 5 #include <iostream>
 6 #include <fstream>
 7 
 8 using namespace std;
 9 
10 int main()
11 {
12     cout << "Hello world!" << endl;
13     ofstream fcout;
14     fcout.open("macro_new.mcr");
15     string file_name_num;
16     cout<<"enter the file name number:"<<endl;
17     cin>>file_name_num;
18     cout<<"enter end file number:"<<endl;
19     int first_file_number(10002);
20     int zero_file_number (10000);
21     int end_file_number(10052
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值