Using Boost in Visual Studio 2010, help me solve my noob C++ problems
Post #1
JaFF
Jan 31 2012, 7:14 pm
Post #2
Lanthanide
Jan 31 2012, 8:04 pm
|
If this is a university assignment, and you're tasked with using boost, why don't you ask the course supervisor/whoever how to fix the issue? Surely other people are going to have the same problem.
![]() ![]() ![]() ![]() ![]() ![]() O)FaRTy1billion -- "Lanthanide -- surely you have photos of yourself dressed up as a girl, az?" I don't have pictures of me dressed up as a girl.
O)FaRTy1billion -- One time I was jumping on a trampoline (at that very friend's house xD) with water balloons in my shirt held up by a belt. Azrael.Wrath -- ... |
Post #3
CecilSunkure
Jan 31 2012, 8:48 pm
|
You have to use Boost? Or you need random numbers? You can get your own random numbers: http://cecilsunkure.blogspot.com/search/label/PRNG
You can add Boost to your system path. You can also place it somewhere else other than the H drive so that the linker can find it properly. |
Post #4
Lanthanide
Jan 31 2012, 9:25 pm
|
rand() is actually very bad if you want to use it for any serious purpose.
http://www.azillionmonkeys.com/qed/random.html This post was edited 1 time, last edit by Lanthanide: Jan 31 2012, 9:32 pm. ![]() ![]() ![]() ![]() ![]() ![]() O)FaRTy1billion -- "Lanthanide -- surely you have photos of yourself dressed up as a girl, az?" I don't have pictures of me dressed up as a girl.
O)FaRTy1billion -- One time I was jumping on a trampoline (at that very friend's house xD) with water balloons in my shirt held up by a belt. Azrael.Wrath -- ... |
Post #5
HCM™Aristocrat
Jan 31 2012, 9:32 pm
Post #6
Lanthanide
Jan 31 2012, 9:35 pm
|
If you have a good statistically sound PRNG then yes, of course. If your PRNG is not statistically sound, then no.
rand() is implementation dependant: it depends on your compiler/libraries. Most implementations these days are probably ok to use, but in the 80s and 90s that was not necessarily the case - you could take your program that used rand() and compile it with a bad compiler and end up with a program that doesn't operate properly because it is relying on the bad rand() function. Follow the link for more discussion on rand and its pitfalls. In general, C only provides very basic library and general purpose functionality. In a lot of cases you'll have to roll your own (or acquire from a 3rd party) better functions to handle a lot of stuff. ![]() ![]() ![]() ![]() ![]() ![]() O)FaRTy1billion -- "Lanthanide -- surely you have photos of yourself dressed up as a girl, az?" I don't have pictures of me dressed up as a girl.
O)FaRTy1billion -- One time I was jumping on a trampoline (at that very friend's house xD) with water balloons in my shirt held up by a belt. Azrael.Wrath -- ... |
Post #7
JaFF
Jan 31 2012, 10:42 pm
|
This is a final year project, so it's up to me to pick what means I use to obtain results. This isn't a programming course and my supervisor isn't a programmer.
I need a wide range of distributions to be available for a very computation-heavy task. Getting the uniform and the exponential distributions is easy but others are quite messy and I suspect would be much faster if taken from a library written by people who are actually good at programming. What do you mean by "adding Boost to my system path?" I can't place it anywhere else because of file size restrictions - I have huge space available on my H drive but virtually none on any other drive so the Boost folder doesn't fit into C drive. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #8
ShadowFlare
Jan 31 2012, 11:07 pm
Post #9
Lanthanide
Jan 31 2012, 11:51 pm
|
All the more reason that there should be someone at the university you can ask for help, either in the CS department or the IT department (they are not the same thing, generally).
![]() ![]() ![]() ![]() ![]() ![]() O)FaRTy1billion -- "Lanthanide -- surely you have photos of yourself dressed up as a girl, az?" I don't have pictures of me dressed up as a girl.
O)FaRTy1billion -- One time I was jumping on a trampoline (at that very friend's house xD) with water balloons in my shirt held up by a belt. Azrael.Wrath -- ... |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[10:46 pm]
[10:46 pm]
[10:30 pm]
[09:12 pm]
[09:10 pm]
[09:10 pm]
[09:10 pm]






![[close]](/images/up.gif)
I'll try to find another hotspot when I hit Paris.