Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Using Library... please help me

Hi everybody...
I'm having trouble with a program that needs a number of the gaussian distribution.
I have found a library and I think that it should help me to find the solution... the library is called newran03 http://www.robertnz.net/ftp/newran03.zip with its documentation...
A programmer has told me to use this code

#include <iostream>

#include "newran.h"

int main()

{

MotherOfAll urng;

Random::Set(urng);

Normal N;

SumRandom Z = 10 + 5 * N;

for (int i = 0; i < 10; ++i)

std::cout << Z.Next() << "\n";

std::cout << std::endl;

}

to solve my problem but on my machine it doesn't work (but on his machine works...)
What I have to do?
Perhaps Do I have to add to the project some file.cpp ?

Thanks!!
[920 byte] By [AYAMY] at [2007-11-11 10:23:47]
# 1 Re: Using Library... please help me
yes, you need whatever .lib or .cpp file or whatever came with the pacakage you downloaded, and if its not .cpp you have to have the binary that matches your system.
jonnin at 2007-11-11 20:59:03 >