| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> i have a function push: void push(NODE *sNode, NODE *top) <0> where sNode is to be added to a stack whose top is referenced by Node top <0> when i exit the function NODE gets set back to NULL <0> when i exit the function top gets set back to NULL <0> is there a way to p*** a pointer by value? <0> someone please help <1> _m_: I got it down to 142 lines - can you have another look? <1> <0> when i exit the function NODE gets set back to NULL <1> That is nonsense. <1> NODE is a type, it can't be changed. <2> kahlua75 perhaps you should post your code at the website in the topic <1> top can't be changed either <1> void push(NODE *sNode, NODE *top) already p***es the pointer 'top' by value. <1> vawjr: Can you try to compile something of me with a different compiler than g++, but one that support 'typeof'? <3> Is there a decent cross-platform framework which also has a good GUI builder for C++? I know about Qt but I'd like to know if there are any good alternatives.
<2> what platforms interest you <4> wxWidgets <2> Run typeof is so non-standard it's hardly in any compilers <1> wxWidgets ****s <3> Windows, Linux, MacOS X <2> I've _heard_ that g++ has it <2> .NET (use mono on Linux and Max) <2> err, Mac <3> does that have good gui builder? <1> what about GTK+ ? <3> I thought about GTK+... <3> at the moment I have either Qt or GTK+ in mind <1> I decided on GTK+ because of the license. <3> yes... the license is an issue. I don't mind keeping it open source, but it is a university project <1> But I suppose Qt is still as QPL - I think the other is GPL, isn't it? <3> so I'm not sure if it must be kept "closed" for so and so long <3> I'm speaking to my tutor tomorrow, he might know <5> http://www.noidea128.org/sourcefiles/16280.html . My program was working . Now i'm tryng to put it like with functions , but i am having no output. I tried to change the functions to return something,but no result. Could someone help me ? <3> if i created a program solely for my project.. which means personal use / marking by university.. surely I can do that without conflicting with Qt's license? <3> also if it works out to something that isn't a pile of tripe I'd quite happily make it open source when allowed by the university <6> Pablo, you have to actually print the answers at the end... like cout << milhar << endl; <5> i am sure i tried something like it...i will check. <5> No i didn't. I tried to print mil , cent , but not the arrays. <5> Moonshine: Could u help me with other problem ? I am not getting the numbers in range 10 - 99 (function imprimedezenas) <3> Qt really does look great... but somebody in here commented on something to do with pre-compilation which is bad or something <5> forgot,i fixed.thx <5> =] <1> _m_: I found the problem... there is a loop dependency between BinaryExpression and binary_operator: the return type of a function of BinaryExpression depends on binary_operator, which in turn depends on BinaryExpression. <5> well...i'm gonna rest a bit. <5> c u all and thx <1> This is definitely the most complex templated code I ever coded... <1> I managed to break the compile-cl***-dependency with an extra inheritance and static_cast, plus 3 extra overload per operator, heheh. <7> wow, that's amazing <8> ...huh? <8> heh <1> template<bool inverted, cl*** EXPR1, beop_type OP, cl*** EXPR2> <1> bool BinaryExpression<inverted, EXPR1, OP, EXPR2>::evaluate(void) <1> { <1> binary_operator<inverted, EXPR1, OP, EXPR2>::return_type result = <1> static_cast<BinaryExpressionDerived<inverted, EXPR1, OP, EXPR2>*>(this)->evaluate_impl(); <1> return only_p***_if_bool(result); <1> } <1> Still have to implement only_p***_if_bool... but then it should work <1> I'll put some interesting code on the paste site ;) <1> I *do* get a headache of the error messages though... <1> ../../ircproxy/src/Expression.h: In member function typename binary_operator<inverted, T1, OP, T2>::return_type BinaryExpressionDerived<inverted, EXPR1, OP, EXPR2>::evaluate_impl() [with bool inverted = false, EXPR1 = WatchedExpression<UserModeMask>, beop_type OP = beop_BITWISE_AND, EXPR2 = ConstExpression<char>]: <1> [difficult 'instantiated from' list] <1> ../../ircproxy/src/Expression.h:863: error: no match for call to (binary_operator<false, WatchedExpression<UserModeMask>, beop_BITWISE_AND, ConstExpression<char> >) (const UserModeMask&, const char&) <1> ../../ircproxy/src/Expression.h:855: note: candidates are: __typeof__ (((T1*)(0)->.evaluate_impl() & (T2*)(0)->.evaluate_impl())) binary_operator<false, T1, beop_BITWISE_AND, T2>::operator()(const T1&, const T2&) [with T1 = WatchedExpression<UserModeMask>, T2 = ConstExpression<char>] <1> Gotta love that. <9> Whee <4> Jslutzen <4> you sre back <4> JSlutzen <9> Wut <4> where were you <9> Vacation <4> damn <4> where <9> Just NY with my family <4> NYC or NY
<9> Upstate <4> ah word <4> khan will finally be out of depression now that you are back <9> Heh <8> oh mannnn <8> jb's back <8> to his old texan self <9> Hi rd <8> how's NY? <9> Cold and overcast as always <8> hehe <8> how was the trip, otherwise? <9> Good but I took two dramamine on the way back and now I can barely stand up <8> heh <1> It compiles!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <1> Finally :) <8> now to get it to work <1> It also works <1> NOTICE : Entering UserMode::new_server_message_received({prefix:"lskdkglkjal!*@*", command:"MODE" [key:-18], params:{"lskdkglkjal", "+ix"}}) <1> NOTICE : Entering ExpressionEventRequestQueue::trigger(ExpressionEventType const& {expression_value:true, expression:"((UserMode::M_mask & ConstExpression<char>(x)) == ConstExpression<UserModeMask>("+x"))"}) <1> NOTICE : Calling ServerConnection::callback_test({expression_value:true, expression:"((UserMode::M_mask & ConstExpression<char>(x)) == ConstExpression<UserModeMask>("+x"))"}) <1> :) <1> In other words, I get a callback as soon as the usermode is set to +xi <1> That was done with: <1> ON_TRUE((*M_identity->user_mode() & ConstExpression<char>('x')) == ConstExpression<UserModeMask>('x'), *this, &ServerConnection::callback_test); <1> Basically, I can now add any expression with multiple variables - and it will call a callback function as soon as the expression turns true. <1> Those variables will have to be wrapped in a template, but that template is opague to all operations on it... Ie, M_identity->user_mode() returns actually a Watched<UserMode> reference. <10> , missed it. <10> mistell. <10> hmmmm. you are employing STL and ... and a design pattern of some kind. <1> zeitnot: me? <10> yes. right? <11> harro <10> i am guessing this code is running in some flavor of unix. <1> zeitnot: I don't think it's a design pattern - I just made it up myself. And it doesn't use the STL except somewhere in some detail where I use a set<> of boost::shared_ptr's to keep a list of expression-event-servers that have a reference to that particular watched variable. <11> how can i change the timeout on a recv() winsock2 <12> that's weird Run <12> what's the point? <12> you crazy programmers <12> always doing ridiculous things that have no purpose. <11> dammit <11> curse setsockopt() <10> i'm no win32 wizard, but setsockopt sounds right to me. <10> do you have that win32.hlp file? <11> bleh <11> i've checked it on msdn <10> msdn is full of .NET stuff these days... hard to find win32 things. <11> you're supposed to be able to set the timeout of a recv() with setsockopt(), which I have done, but my program is still coming to a standstill in a recv() <11> zeitnot; tell me about it <10> you are definitely doing a non-blocking receive? <11> i don't know what 'non-blocking' means <10> well, is recv() waiting until there's data and then returning it, or is it just checking for data, returning anything available, and then moving on immediately? <10> if you've set the timeout value, then some other option is not quite right. <11> i have a while loop that recv()'s a buffer, checks if there's anything in it, does the appropriate action, and then repeats <10> okay. lemme see... <11> k.. <13> can anyone refer me to a channel that supports directshow, or may i ask politely here? <9> Go ahead and ask here <10> um. in the MSDN page i'm looking at, <10> it gives a short list of BSD options that are not supported for setsockopt(): <10> and SO_RCVTIMEO is one of th em. <10> them, even. <13> well, im trying to use the vmr9 filter. and it works great to some extent. i can only render a file stream. <13> im using a video overlay to render my tv tuner stream <13> i'd like to get the tv tuner to render with vmr9, so i can put an bitmap mixer on it <13> i dont know how to connect the pins to the tv tuner, or if im missing a filter or not <11> zeitnot; http://www.noidea128.org/sourcefiles/16281.html <11> zeitnot; oh ok, elsewhere i read that it was available with winsock2 <11> if i can't use SO_RECVTIMEO then how else could i do it? <10> well, i could be wrong. lemme look a little more. <11> ok, i just left it running for a while, and it does eventually get out of the recv(), but it takes like 5 mins :/ <10> interesting. what was the timeout value? <10> check this url out, by the way.. it might be useful: http://www.intel.com/cd/ids/developer/asmo-na/eng/76431.htm?prn=Y <11> 1000
Return to
#c++ or Go to some related
logs:
did the title character in John Fowles's The Collector collect miniclit ISO C90 gentoo #AllNiteCafe #mirc 637-2690
#c++ #c++ #linux st312082 driver
|
|