| |
| |
| |
|
Page: 1 2 3
Comments:
<0> salam <1> what is the correct term for a "programm" that is just a set of simple instructions interpreted by some other programm? <2> perhaps script? <1> hmm., already thought about it.. but dont like this term :) <3> It's a god damn script. <4> "interpreter" <2> one might think, given basic knowledge of the language, that an 'interpreter' is something that interprets <2> not something that is interprete ;p <3> Or maybe interpretable code. :) <1> hehe <5> just in case <5> anybody knows about cd copy protection? <3> helio26, I don't think that's something you can do with code :) <6> does rand() in stdlib.h generates double random numbers, or only integer randoms?
<3> Only integer randoms, but you can create doubles using that. <6> well i need 2500 random numbers between 0 and 2 <3> Say, you wanted a random number between 0 and 1. You'd partition that space in RAND_MAX even slices... <3> You see where I'm going or should I continue? <6> maybe few more lines please <3> Actually, http://members.cox.net/srice1/random/crandom.html <3> That looks like a good example. <7> dunno if you'd find boost's random number library useful <7> you might. <3> six, That might be a bit excessive for what he needs - I mean getting boost, and all. <6> rhw thanks a lot <6> thats so far best page speakign about randoms <6> :) <7> rhw, chances of already having boost are quite good tho <7> and in most boost an be installed quite quickly. <3> six, Wanna bet? <3> :) <7> i only bet when it's guaranteed that i win. :) <7> (i.e. i don't bet too often) <3> Hey, shoopz, do you have boost on your PC? <6> thats library or no? <7> yup. <7> quite useful one too, i should add. <3> :) <7> but yeah, could be bit of an overkill. <6> let me look <7> www.boost.org <6> yea i have it <6> downloaded tons of libraries <7> rhw, ha :> <6> :) <6> but i will go with rhw way <3> haha <3> six, ha :> <6> well thing is i will need to run ths program on other pc that migh not have boost <6> but it should ahve standarts libraries <3> It doesn't really matter. <7> you could always compile it on a system that has boost. <3> If you don't use the DLLs and use the static libraries, you can add any library you want. <3> It will be included in the executable (sure, you'll also be paying a price in executable size). <6> i see <7> if rand() gets the job done tho, go for it. :) <6> it should i need only 2500 numbers <7> aye. <6> if i include math.h i can use ^ symbol to denote raising power opperation? <3> No. <3> You meant <cmath>, which is the correct C++ header for the C version of <math.h>. <3> And you can use std::pow() instead. <6> well i include math.h and so far it worked quite nice <6> std::pow (numer_that_i_wanna_raise) <6> ? <3> Ugh, no. Power is a binary operator, correct? <7> what system are you on? if you're on some unix-type system, try man pow <3> You raise something at some power. <6> i'm on win <7> s/type/like/ <6> rhw for example how you write 2^3 <3> x^y = pow(x,y) <6> oh ok <6> thanks
<6> #include std:: pow()? <7> you should really find get the standard library docs <3> What IDE are you using? <3> Ugh, no. <7> err, -find <3> #include <cmath> <6> dev-c++ on windows XP <6> ok ty <3> void f() { double res = std::pow(2,2); //...etc <6> rhw cmath.h isn't valid library :) <6> math.h is <7> cmath <7> not cmath.h <7> math.h, stdio.h etc are "c-style" libraries that you shouldn't really use in c++ <3> Did I write <cmath.h> ? <7> what you want is cmath, cstdio <3> I wrote <cmath>. <7> the c<name> ones put all the functions in the std namespace. <6> well my dear compiler in c++ doens't get that and complains if i use cmath.h insdead of math.h <7> read what he said <7> see the difference: <6> ok <6> yea <7> #include <cmath> <7> #include <cmath.h> <6> tryign that <7> one of those is wrong, one right. <6> cmath <6> awesome, thanks <6> monte carlo method has rather big error but ech ... <6> :) <8> Game05.obj : error LNK2001: unresolved external symbol "public: __thiscall Game::~Game(void)" (??1Game@@QAE@XZ) <8> Game05Dlg.obj : error LNK2001: unresolved external symbol "public: __thiscall Game::~Game(void)" (??1Game@@QAE@XZ) <8> Debug/Game05.exe : fatal error LNK1120: 1 unresolved externals <8> i got a series of this errors <8> can anyone tells me what happened to this? <8> halo.. anyone help me pls.. <2> try defining those missing functions <2> or linking to whatever lib defines them <8> it compiles fine but when i execute it , it got such prob. <2> is t3h funcommer <8> ok i will check for it <8> thanks <2> if that's your own code, then you likely declared the functions, but didn't actually define them, or you defined them but neglected to include the .cpp files in your project <8> ic. <8> okay i will check through it. <3> struct C { void f(); }; // f() is only declared, not defined <3> void C::f() { /* code here */ } // f() is defined now <8> ohhh alright. <8> thank u <3> night all <2> night, rhw <9> beer == pee; <8> ohh!! it's my own fault , i defined cnstructor , but didn't define the destructor well , i define as void game::~game(); <8> thank u guys =DDD <10> Which the best compiler? <10> Def <10> rhw <9> thats a thing of preferance really <10> he knows the dev c++?? <10> compiler <10> you knows the dev c++ <10> ?? <10> PEve <7> asking for best compiler is asking for trouble <7> 'best' is a very subjective thing <10> that it possesses less bugs <8> then i suggest u best learn urself of fixing bugs. <9> i use dev c++ it is good <7> to be honest, if you're asking questions like that, compiler bugs are not going to be your number 1 problem. <9> the thing i like about dev c++ is that you could download it for free <7> gcc is free too <9> ive never really had any trouble with it either.
Return to
#c++ or Go to some related
logs:
#allnitecafe #linux #kl eyedropper picks the #kl #allnitecafe Visitin India
#linux Sparkly text generator #india
|
|