I am wanting to generate random data and store it in an hpp file so that I can then include and access it in another file. For Example:
random_data.hpp
uint32_t input[] = { 938, 916, 829, 803, 284, 796, 357}
Now if I include the file random_data.hpp, I can directly use the array "input".
#include "random_data.hpp";
printf(input.size()); //Do somthing
I am trying to generate the hpp file for a object. I was trying to write it by hand in a file but im having trouble on formatting. Is there a better-way to generate it? using std::out?
The object I am tring to currently make is of type Node:
class XY{
public:
int x;
int y;
}
Node{
public:
std::vector< XY > xy;
std::vector< std::string > name;
}
What is a good way to generate this data/file? And what format would the hpp file be in if manually typed, I have tried:
Node input = { {{1,2},{3,4}}, {'BOB','JOE'} }