| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<lck> are pointers real usefull? <lck> err, really that is <Alipha> yes. though c++ is a big step towards "getting rid of" them. (you generally should use references, containers, or smart pointers in c++) <BunkaiSR> Hello, Windows 2005 - does it have somewhere option to link dlls statically? I create console application, and it does not work on anothe XP machine, because of missing dlls that should be linked statically. <lck> darn, i had hoped they wernt to importan now i gotta read all night about em <strtok> they're important still <KimmoA> Windows 2005?! <KimmoA> WTF? <strtok> especially if you want a job in engineering <Alipha> lck: you're making some network program. you have a gui object and you have a network object. how does the gui tell the network object what to send and how does the network object tell the gui what you've received? each object needs to have a pointer to each other <lck> ok <lck> **** crap book, they way it explains it makes it seem really useless <lck> uh, think i understand it a bit more now <Kniht> Alipha: or they can each have contact with a manager <strtok> lck: the book probably isn't trying to make it seem useful yet, it's just explaining how it works <Alipha> still need pointers to the manager or whatever <BunkaiSR> KimmoA, sorry, i am a bit tired already, of course i meant Visual Studio 2005 professional <strtok> Alipha: not necessarily <sculptor> BunkaiSR - link dlls dynamically, but use runtime linking - that way you can detect if dll is missing, and missing, you can perform some other tasks <strtok> it could have a PID of a manager <strtok> :P <sculptor> and, if missing, <strtok> and use some IPC to send a message <lck> i think your right, but it's still a crap book, ****ing norwegian bullocks <BunkaiSR> sculptor, if possible I would like to avoid preinstalling any dlls on target machines where the simple console application will be run <BunkaiSR> I create a win32 console application project <sculptor> then - use static linking <BunkaiSR> sculptor, i checked the linker settings three times but did not find the option <BunkaiSR> it would help if somebody could give me a hint where the settings is <sculptor> check your linker's manual <roopjm> Alipha: that sounds what.. how do you communicate b/n objects etc like that <BunkaiSR> sculptor, ok. <lck> hmm, does c++ have a function for PI, or should i use #define PI or ... <OlaRune> mathemathic pi? <lck> yes <sculptor> include <math.h> <OlaRune> #include <math> <OlaRune> pi(); <OlaRune> ? <lck> aiit <OlaRune> i dunno <OlaRune> just guessing <sculptor> or make program that calculates pi <Ous_> 22/7 <sculptor> i calculated up to 100k pi digits <roopjm> i have a cd image of pi <roopjm> 650MB of pi. w00 <Ous_> lol <roopjm> just the decimals, they didn't bother with 3. <sculptor> digit per nibble format? <sculptor> :) <lck> that's too much work for this program, its going to calculate some simple formula for finding Xc (2pi*f*c) <roopjm> lck: just; const float pi = 3.14159 <Alipha> is the digits of pi suitable for random number generation? that is, is there an even distribution? <sculptor> lck - calculating impedance <lck> indeed <sculptor> of a cap <lck> and of Xl <sculptor> impedance = 1 /(2 * pi * f * c) <roopjm> impedance of what? <lck> o, right, forgot the 1/ <sculptor> for inductor impedance = 2 * pi * f * l <sculptor> of capatior, and intuctor, powered with periodic signal <sculptor> of frequency f <FOXX> ahh, the memories of my electrical circuits cl***es come back to haunt me <roopjm> pi is used in electricity? cool <lck> well, yes alot <GaLiLe0> what happened to winmx? <lck> everybody realised it was crap and stopd using it <OlaRune> i've remembered 3.141592654 <sculptor> i've remembered 3.141592653589793238462643 <_m_> the next digit is a 3 <GaLiLe0> and what are they using now? <Alipha> then 83 <sculptor> 338327950288419... <sculptor> i remembered some more <sculptor> 50 <Kniht> then 279 <OlaRune> that depends on how exact you want to be <sculptor> that's it - don't know any more <Kniht> ...716939937510582097494 <_m_> calc pi <CalcMe> pi = http://3.141592653589793238462643383279502884197169399375105820974944592.jp/ <roopjm> i have a t-shirt with pi to the 4000th place <roopjm> woo thinkgeek <OlaRune> ^^ <OlaRune> thinkgeek <3 <roopjm> i have pi tattooed on my back <FOXX> yeah, but that's more like think-virgin-for-life <BunkaiSR> can dlls be linked to a project, or do I need to link corresponding libs, if those dlls are missing in target machine? <sculptor> i shortened some guys shortest 200+ bytes c program for calculating pi up to 1000+ digits for 8 characters! <Kniht> i like pie <cout_> and thanksgiving is just around the corner <baroncefx> dude <cout_> and we all know nobody really cares about the pilgrims; we just like the excuse to eat pie. <baroncefx> i heard these girls are in this guild wars guild, but i can't read korean <baroncefx> http://warmachine.co.kr/bbs/zboard.php?id=g&no=250 <watv> is it ok to p*** an ifstream by value to another function? <baroncefx> http://warmachine.co.kr/bbs/data/g/%BD%BA%C4%F0%BF%C0%BA%EA%B6%F41(1562).jpg <watv> i do that and it crashes after executing the function's code <baroncefx> i want them all to lick different parts of me <Kniht> sculptor: can you shorten this? int atoi(const char*s,int n=0,int a=0){return isdigit(*s)?atoi(s+1,n+1,a*10+*s-48):n?s[-n]-45?a:-a:isspace(*s)?atoi(s+1):*s-43&*s-45?0:atoi(s+1,1);} <sculptor> this C program calculates 16k digits of pi: <sculptor> int a=1e4,c=56980,d,e,f[56980],g,h; <sculptor> main(b){for(;b=c-=14;printf("%04d",e+d/a))for(e=d%a;g=2*--b;h=d/--g,f[b]=d%g)d=h*b+a*(e?f[b]:2e3);} <lck> something is using 98% of my cpu <OlaRune> baroncefx: ***y <lck> i blame it on XFCE <baroncefx> i know <baroncefx> not many asians get me hot <baroncefx> but those ones do <watv> http://rafb.net/paste/results/YS7zXw63.html <---- is this ok to do? it evaluates the code in the function but then crashes! <OlaRune> neither <sculptor> Kniht - i'll get back to you <sculptor> when i do <roopjm> sculptor: holy crap thats cool <sculptor> that's not mine - i just shortened it from 143 to 134 chars <sculptor> original:long k=4e3,p,a[337],q,t=1e3; <sculptor> main(j){for(;a[j=q=0]+=2,--k;) <sculptor> for(p=1+2*k;j<337;q=a[j]*k+q%p*t,a[j++]=q/p) <sculptor> k!=j>2?:printf("%.3d",a[j-2]%t+q/p/t);} <sculptor> <HaMsTeRs> baroncefx: damnnnn.. they are hottttttttt <sculptor> i'll use pastebin in the future <sculptor> sorry <roopjm> how the crap does that work? <baroncefx> jesus <baroncefx> I only understand half of that, sculptor <sculptor> that's not right original. <sculptor> it uses precise atan() calculation <sculptor> atan(1) is pi/4 <sculptor> but, it uses better approx <sculptor> pi/4 = 4 atan(1/5) - atan(1/239) <sculptor> gtg - bye <watv> how do u upload through ssh :P ? <watv> unix people always ignore me <binrapt> send() <[proxy]> watv: man scp <watv> im on wireless internet <Kniht> so? <watv> would it go through <watv> :P <Kniht> does tcp/ip work? <ismell> watv would it go through <ismell> hahah <watv> this is not my wireless internet im stealing internet from my neighbor :P <LaRssA> lol <OlaRune> nice <binrapt> Well, apparently you can IRC so SSH should work just fine. <watv> how do i rename though?
Return to c++ or Go to some related
logs:
Daniel Negreanu is gay ohmwerk timestamp_format irssi freenode mrhands.mpg
|
|