| |
| |
| |
|
Page: 1 2
Comments:
<0> bye <1> anyone know a graphing library like rrdtool? <1> something that has an actual c api, perhaps <2> libjpeg? <2> libpng? <1> that's a bit too low-level :) <3> graphs, not graphics. <2> ah <2> mm, nope:P <1> ah well, gotta dive into the web <1> just have to point out that while rrdtool has a c api, it's positively horribly stupid and awful and completely undocumented :) <4> liff what is your OS and dev GUI ? <1> ubuntu w/gnome <4> nothing then, i have one graphic lib for Win32 & MSVC, and its c++ ... <5> hello, how to follow into child ? <5> in gdb
<5> set smth.. <5> hmmm got problem with redirected connection <5> it's not being accepted <5> thus my program doesn't work <5> is here anyone who understands transparent proxies? <6> what is there to understand? <5> well I'm stuck in port forwarding now <6> iptables or what? <5> I want to forward 127.0.0.1 to 0.0.0.0/0:80 -> 127.0.0.1:12345 <5> like this <6> man iptables :P <6> it can be done <5> thei0s I know that -t nat doesn't work <5> made with that table every possible trick <5> it's just not nat <5> thei0s then how? <5> :) <5> going to toilec <5> rb <5> brb <7> hi, I ve downloaded old c files as examples for linux. But the c files have been created by microsoft c 6.0. Do you know what that notation means? void main (argc, argv ) int argc; char * argv[]; { int timeslot; <8> it is pre-standard, but still valid, function definition syntax. <8> which declares two arguments, argc and argv, which have types int and char*[] respectively. (and one local automatic variable named timeslot, and ...) <7> I dont understand the declarations after the function parameter list. Why are these variables not declarated in the function? <7> ah ok <8> because they are declaring the types of the parameters. <9> moin <4> m_0_r_0_n: twkm told that it is an old notation, but still valid for C <7> mirex3, thanks, I got it <10> wow, gcc -shared is giving a lot of ld trash on a sol10 box <10> oh, gcc -fpic fixes <9> lol <9> what's the topic about? <11> lindi's hacking some linux based switch <9> oh <12> bunasera <11> ay carumba <7> What is the advantage of defining constants like #define ESC 0x1b instead of #define ESC 27 ? Why hexidecimal? <7> or #define RIGHT_ARROW 0x4d00 <8> doesn't matter, so long as you don't use a plain 27 or 0x1b in the code, the names help people understand the purpose. <7> So the code has been written by a programmer who likes hexadecimals more than decimals? :-) <8> pretty much, yes. <12> perhaps they talk (encode thier talk) in hexadecimal too? <13> mhm eleven changed nick again? to m_0*? <13> mhm and hex values are simplier to manipulate;P <11> vandaal: to your mum <13> :) <11> ;) <11> well, it's as simple to type 27 & 5 vs. 0x1b & 0x5, isn't it? <11> unless you have dvorak layout I guess <8> i might use \033, in fact i prefer it within string literals, over hex which is greedy. <13> nah, beside 0x1xb is more l33t than 27, ;p <11> twkm: indeed <13> nah y0u d0 not know anyth1n9 d0odZ0rZ <14> greedy in what way? <8> additional hex digits will be consumed. <8> puts("\0x1bcfoo") -- you might expect output of ^[c (clear+reset a vt100-ish terminal) and "foo", instead you see something weird and "oo". <14> thanks! good to know <15> c <15> c++ <15> ?
<15> ucMh <16> I wonder what he wanted to say. I didn't quite understand him. <17> probably he is from italy <17> india <16> I was going to try if he'd respond to Klingon. <17> :) <12> hm.. anoyne happens to have an idea about an algo + data structures to traverse a dir tree without recursion? :-) <0> well yeah <18> Heh. <18> Instead of the implicit stack use explicit one. <12> that's what i was planing <0> azi lets us do his homework! <12> michai: it ain't a homework.. i was just thinking how to do that and i was wondering if there was some standard way <12> "standard" <12> we don't have school in summer too ;) <0> lucky b... <12> :-D <12> 2,3 month;) <0> them younguns... <11> oh get out and play with other kids boy <11> till you still can <11> until you grow into your chair like we did <4> azi: my idea was like to have a local stack/array of paths which have to be traversed. as first step you should insert an first path into it. there would be one loop which would traverse first directory placed into stack (it would be deleted from the stack too), and you would add newly found directories into stack <4> this way you would traverse whole dir tree <12> mirex3: same as my idea.. the only problem is that the code implementation in my head looks a bit dirty <0> isn't it sort of simple <0> (sorry...) <12> sorry, for? :) <0> for thinking it's simple <12> it should be indeed <0> realloc() etc <0> dunno how big yuor table is <4> you can do it in c++ with dynamic arrays ;) <4> yes it is quite simple, azi just think about it and try to create it <12> mirex3: dinamic arrays in c++, how do they look like? <11> awful <4> you just use their functions like insert() or remove() and they care about reallocing <4> std::vector<> for example <0> azi, finished yet? :) <0> how to pad with space (on the right) a number? %2 d ? <0> % 2d works with left padding <0> I think <4> not sure, but can be done by advanced formating <0> quick examle? <4> sprintf( format, "%%s%%%is", length - strlen( string ) ); <4> printf( format, string, "" ); <4> maybe could be done easier too <4> format would be something like "%s%10s" after sprintf <0> eek <4> yep :) <0> I want just %d :) <0> let's rtfm... <14> ie. "%-20s"? <4> I knew there was something with '-' but my help is broken <0> %-2d, right <0> thx <0> or % -2d or whatever <0> %-2d <4> i don't think that spaces are needed/allowed in the formating <4> ah i see now that it is allowed <4> blank (' ') Prefix the output value with a blank if the output value is signed and positive; the blank is ignored if both the blank and + flags appear. <0> ok <0> azi, finished yet? :P <0> 0-sized arrays are ok ? <0> I am lobotomizing some code <19> it kinda depends where they are <19> in structs they are flexible array members. i don't think you can have them elsewhere <0> I have a static 0-sized array of structs <0> (normal structs) <0> it compiles, but I wonder <19> try with -pedantic <0> 1 sec
Return to
#c or Go to some related
logs:
#worldchat singer chech porn #worldchat #worldchat #worldchat #worldchat #metal #worldchat #worldchat #worldchat
|
|