@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8



Comments:

<0> yes
<0> the problem is,if i define it as static varible
<0> i recive link error
<0> and if i dont define it as static varible i recive compile error
<1> well try implementing and method to return the variable's value
<0> oh,thats good idea
<0> i will try it
<1> do all that internally .. don't try to acces variables from outside cl*** functions
<1> that's the OOP programing style anyway
<2> dr3f: cl*** mycl*** { public : static bool variable; }; // DECLARES variable, you still need to DEFINE it.
<0> now the compiler complain that i'm trying to access none-static function from a static function
<2> e.g. bool mycl***::variable; // in a .cpp file
<0> illegal call of non-static member function
<0> _m_,the problem is accessing it from a callback function
<0> like a timer procedure
<3> dr3f : another common approach is to p*** an object pointer to the callback



<2> No, '< dr3f> the problem is,if i define it as static varible < dr3f> i recive link error'
<0> exception,i already doing it for other data
<3> you can always extend the parameter to be a struct that contains both
<0> _m_ ?
<0> yes
<0> hmm,there is no other way ?
<2> that's what you wrote and it is what my answer was for.
<0> if that the case i will p*** it as a struct
<0> thanks
<4> a good question : I'd like to ask a WinForm created & owned by mirc to do a beginupdate call... can it be done using a dll ?
<4> i'm asking cause i never tried to control a program via another program...
<4> ----------
<4> i found the anwser.. it can be done... like for mdx.dll (mirc hack tool)
<5> hi all; do the attributes public, protected and private have any other use than to help the programmer (Or more: the group of programmers) ?
<6> do you have good uml tutorial
<0> uml ?
<6> yes
<0> whats that ?
<7> helo?
<8> HELO
<7> speak/parlez c++ amigo non-alien?
<8> Well, I can speak C++. My french is rusty, and my spanish non existant
<7> char *stud ="10-04, roger";
<9> Asriel I thought you were travelling
<8> not I, not yet
<8> I want to, after my finals
<7> _asm(mov, all, 56);
<9> must be MrAshe... brain is mushy after installing team system all week
<8> indeed :)
<9> esselfe we don't care about asm stuff
<9> not gonna even think about it today
<7> either, sorry, I can't build legos
<8> if my health permits, plan is to see bits of the USA in the late summer
<9> Asriel but I may actually have it running.... with the "Scrum" plugin
<7> am i really on c++ channel or fancy bracket brokers?%
<8> ooo. congrats :)
<9> Asriel any plans on getting out here? (Yellowstone, Grand Teton national parks)
<8> you too now can pay a small fortune for a barely functional system
<7> don't spam public, go pv!!!!!1
<9> esselfe speak plainly (and try english which most of us understand)
<9> esselfe and YOU don't tell ME how to run the channel
<7> 0100 1011 0111 0100
<8> not decided on an itenary yet. definately planning on Colarado (friends there) and Pennsylvania (family there)
<8> but I've got about....3.5 months off starting in mid june. ***uming the doctors can fix me up in short order, I'll probably spend anything up to a month out there
<9> well, we're about 7-10 hours by car from Denver
<9> and it's some of the prettiest parts of the country
<8> *nod*. I'd like to see Yellowstone, I've seen lots of pictures
<8> in terms of natural stuff, I really want to see the scale which I can't easily get in Europe
<8> but without going too touristy. Can't stand being the cliche tourist :)
<9> well, Yellowstone isn't exactly beautifil, but it _is_ spectacular.... geysers, waterfalls, lots of hot stuff coming out of the ground (not lava)
<8> *nod*. stuff we don't have at all
<5> hi all; do the attributes public, protected and private have any other use than to help the programmer (Or more: the group of programmers) ?
<8> right, afk for an hour. got to do a charity collection
<9> right, and I live 60 miles (by road) from the S entrance to Yellowstone park
<9> pretty close to the best route from Yellowstone to Denver (if that's where you're gonna be in Colorado)
<3> Len48 : yes, it affects what can access the methods/data members or be aware of the inheritance
<9> Len48 depending on how abstract you want to get, ALL language elements are there just to help the programmer
<9> AsCharitable have a good time
<5> but there could be elements to prevent other users from something; e.g. access to certain data fields
<9> users have the access the programmers give them
<9> I'm not sure where you're going with this train of thought



<5> I wondered whether this attributes also effect runtime handling of how the data-fields are saved from access by any user (for example cheating by reading a map out of memory, etc)
<9> cheating circumvents all the stuff you do to protect it
<9> what problem are you trying to solve?
<9> lo, [Teacher]
<5> only theoretical; whether its neccessary to distinguish between this attributes when u are programming alone and know your code
<10> vawjr :)
<9> Len48 of course
<9> it's part of partitioning the problem
<5> yeah, you always make mistakes and it prevents u of some, and if u are using some code-completition, than its much more easier with the methods that can be used
<9> brb, gotta fix breakfast for the daughter
<9> no, it has nothing to do with mistakes
<9> it has to do with partitioning the problem correctly
<9> example.... suppose you want to write a cl*** that describes a mathematical "point" say in 3D
<9> your choice of how to handle it (x,y,z or phi, theta, r) should be "invisible" to ANY user of your "point" whether it's you, or someone else
<9> so, you make your variables private
<5> so; invisible at runtime?
<10> vawjr yo bro
<9> Len48 what are you talking about runtime for?
<9> yes, [Teacher] ?
<10> i'm a helper (UnetSchool) can i have acces here ?
<9> why do you need access to help?
<10> Ok, can i stay here ? for help
<5> the diffenence between other programmers not seeing the variables or the user when he tries to read variables in runtime
<9> of course, unless you start being obnoxious or dispensing mis or dis information
<9> Len48 the USER never sees ANY of the stuff
<10> ckey, thnx bro :)
<9> users don't "read variables"
<5> only cheaters ^^
<9> users don't see the source
<9> **** cheaters
<5> yeah, btu they do or at least try
<9> Len48 what world do you live in? what kind of programs do you write??
<9> if it's games, forget it
<9> security is a completely different subject
<5> u cant read the whole memory of the system, do u?
<9> Len48 that would depend on the system
<9> and I STILL don't know where this train of thought is going
<9> WHAT PROBLEM ARE YOU TRYING TO SOLVE??
<5> what exactly the use is of private, public and protected
<5> to whom can i make anything invisible?
<5> to other cl***es? thats useless because YOU write the other cl***es. to other programmers? could be useful, for preventing mistakes. to users? they cant read anything in the normal case....
<11> Hello. If I wanted to make a new cl*** say SqlException cl*** that derives from Exception how would i do it?
<11> something like cl*** SqlException : public std::exception { public: SqlException(const char* error) : std::exception(error) {} }
<9> Len48 if you're trying to hide everyting from someone who has physical access to the computer, forget it, it canNOT be done
<5> no, of course not
<9> and you REALLY don't understnad partitioning if you think making things private is useless simply because YOU are going to be the only author, you need to re-think partitioning
<9> and encapsulation
<9> mopos I don't believe std::exception has a constructor with char*
<5> vawjr, but if its not because of helping u to prevent from mistakes (as u said above), or to help u to find the appropriate method or something, then i DONT understand
<9> Len48 then read some books on OOP
<8> bleh. charity collecting gets more and more depressing
<8> doing this for a decade, and the rudeness level's goning up exponetially :/
<12> that's cause you're a ****er for doing charity work
<8> probably. but someones gotta do it
<12> pfft, nah
<12> no one needs to
<5> vawjr some (even) more; k; but I think that we must misunderstand
<8> only a few hours a year to collection and an afternoon to count all the money.
<8> though it's pretty much fallen to the level that it'd be more time efficient for me to work the hours I collect then cut a cheque for the amount I would have collected
<8> which is depressing as hell. only reason I do it anymore is to give people the feeling that they've done their civic duty
<5> vawjr one more try: in the example above, with invisible vairables; u spoke of 'users'. what kind of users did u mean? (so what exactly does all mean; as its unsure since u said yourself that hardware access allways will give the user access)
<9> Len48 yes, they can dump the memory if necessary
<9> you STILL haven't said what problem you're addressing
<9> if it's simply that you don't understand, that's solvable by reading up on OOP and encapsulation
<13> with automake & autoconf, the shared library names I get are like libfoo instead of libfoo.so. any idea ?
<5> vawjr do these attributes have any effect on the binary? (This question is much better than the ones before, to give u a clue what my problem is))
<5> vawjr so can u, when u have an alpha version, change all to public without any difference to the binary?
<9> Len48 that would be up to the compiler
<9> and I _STILL_ don't know where you're going with this
<9> gribouille ask Run, he's the automake/autoconf expert around here
<13> vawjr, did you see here today ?
<5> vawjr ah; i think im on the way to understand; so on a system where all access to memory by other progs is not allowed, a change to public would have no effect, right?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#skype
#MissKitten
brew rand function
irgirl
geri kuch
#linux
prison dartmoore
#AllNiteCafe
#AllNiteCafe
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes