#include #include #include using namespace std; struct Reference { int refnum; string text; }; int main () { const int numRefs = 50; const int textlen = 1024*1024*4; Reference *refs = new Reference [numRefs]; for (int i=0; i (rand()%26+'a'); } for (int i=0; i (rand()%26+'a'); } cout << "[" << refs [rand()%numRefs].refnum << "]"; } cout << "\n@footnote:\n"; for (int i=0; i