小编nag*_*dra的帖子

使用gnuplot使用数据文件制作电影

我有很多数据文件.它们看起来像1.dat 2.dat .... .... 1000.dat

我想制作一部电影,使用这些文件按顺序绘制它们.有没有人有任何想法吗?如果你能帮助我,我将感到非常高兴.ND

c++builder

8
推荐指数
1
解决办法
7257
查看次数

无偏随机数发生器

我使用以下代码在域中生成随机数.当我绘制它们时,它们看起来分组在右边.我可以告诉你我的情节,但我不知道如何上传它.基本上我将一些数据值与相应的点相关联.你能告诉我怎样才能纠正它?我的完整代码是

#include <iostream>
#include <cmath>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cstdio>
#include <time.h>

using namespace std;
string int2string1( int l );
string int2string2( int m );
int main ()
{
    ofstream outFile;
    ofstream myimp;
    string filename;
    srand((unsigned)time(0));
    int nx = 400;
    int ny = 200;
    int i,j,ix,iy,xm,ym,nimp,nfam[nx][ny];
    float vo,rnd,rr,rad,sig,vimp[nx][ny];
    for (i=0; i<nx; i++)
    {
        for (j=0; j<ny; j++)
        {
            vimp[i][j] = 0.0;
        }
    }
    rad = 5.0;
    xm = 0;
    ym = 0;
    vo = 0.08; …
Run Code Online (Sandbox Code Playgroud)

c++ random

3
推荐指数
2
解决办法
1944
查看次数

标签 统计

c++ ×1

c++builder ×1

random ×1