| |
| |
| |
|
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 27 28 29 30
<Sine2UNI> sorry to ask such a noob question, but what does it mean when main memory is 4 byte addressable? <Anf> In UML whats the difference between an aggregation and generalization, and how do show each relationship in c++? <strtok> that totally sounds like a homework question <strtok> :P <Sine2UNI> haha <strtok> Sine2UNI: you can address a location in 4 bytes? <Sine2UNI> i have a 1M x 16bit main memory, which is built using 256K x 8-bit RAM. suppose main memory is 4-byte addressable <strtok> oh ok <Sreearm> could anyone provice pointers on some good open source project to start with <Sine2UNI> strtok: too many now i have to find the number of address bits needed for the full memory <strtok> Sreearm: a new search engine <strtok> kill google for me <markovich> baby <Sine2UNI> -too many, duno where that came from <Sine2UNI> but all the terms are confusing me <Sine2UNI> bigtime <markovich> 4 byte addresseable means you cannot address less than 4 bytes <Sreearm> i need all your real help <markovich> wait, is that right` <markovich> oh yeah <matja> yeah, 'word size' <markovich> it means that the memory is too small to play half life <markovich> all you got is 4 bytes to store your pointers in, meaning the size of your memory is limited <markovich> Sreearm: Just come and work for me for free <sriram> is tht true <Sine2UNI> markovich: cause i managed to figure out how many address bits were needed for the whole ram chip, and the full memory <markovich> Anf: Aggregation is when you hang out at the corner with your homies, and in generalisations is how you speak when the cops come around <markovich> Sine2UNI: so? <markovich> Sine2UNI: What are you trying to tell me? <Anf> markovich, anyway u can relate that to c++? :) <_amnesia_> markovich, you speak when the cops come around? i usually just run.... <Anf> markovich, i've read generalizations mean that it can get to protected, public of base cl***, and aggregations means it can only see public, but how is that done in C++? <Sine2UNI> markovich: i#m trying to tell you that i dont understand what it means by 4 byte addressable :P <markovich> inherit your cl*** using the appropriate modifiers <markovich> cl*** XXX : public CPorn <markovich> Sine2UNI: how big is 4 bytes? <Anf> markovich, but Cporn will still be able to see XXX public and private?, so thats a generalizatoin <markovich> Anf: A cl*** can see the protected and public members of a cl*** it inherits <Anf> right <markovich> it does not see the private members <Anf> right <markovich> it inherits from, I mean <Anf> yeah <markovich> cl*** C : public D <markovich> C will see the public and protected thingys of D <Anf> so C can see D's <markovich> of course <Anf> but how would u show an aggregation <markovich> you want it to see everything? <markovich> I think you can only do that with "Friend" <markovich> someone correct me if I'm wrong <Anf> If you want it to only see public <markovich> hmm <markovich> only public? <Anf> yea <Sine2UNI> markovich: 4 bytes = 32 bits? <markovich> that's not possible <Anf> oh <markovich> Sine2UNI: Give me a decimal number <markovich> is it like 10.000? <markovich> Two raised to power...? <Sine2UNI> oh <Sine2UNI> well i know bits are power of 2 :P <Sine2UNI> base <Sine2UNI> i mean <Anf> markovich, http://www.smartdraw.com/tutorials/software-uml/uml2.htm#whatcl*** the last paragraph of that page... <strtok> Sine2UNI: are you CS or CE? <strtok> i'm guessing CS <strtok> :D <Sine2UNI> cs? :P <Anf> computer science <Sine2UNI> ah <Sine2UNI> cs indeed :P <Anf> or computer engineering <Sine2UNI> conversion course, to something i've never done before <markovich> I'm applied CE <strtok> what the heck is applied CE <markovich> which is like the lowest C course evar! <Sine2UNI> i'm prolly the biggest noob in here :P <markovich> it't like CE, but everything is practical <markovich> no theory at all <markovich> like applied mathematics or something <strtok> i'm CW <Anf> how do you not learn theory <strtok> a corporate ***** <markovich> well, we don't <markovich> we just learn what we need to get the job done <strtok> we write uncommented code for job security <Anf> hah <Anf> u dont care why it works? <markovich> hehe <berty> i don't <Anf> yeah me either <Anf> as long as it works <markovich> that's the philosophy of my school <markovich> anyways, abck to the question <markovich> the answer is 2 raised to the power of the number of bits <markovich> that will give you a decimal numer <markovich> that is the maximum number of addresses that can be stored in that byte <markovich> and it follows that it is the max size of your memory <markovich> I want to do a phd in CS people <markovich> anyone done that yet? <berty> heh I'd be surprised if they offered that at your applied school <Anf> no but i bet it sure would be interesting! <markovich> of course they don't <Anf> sorta like a PHD in paint drying <markovich> I want to go to the U.S and do it at a university <berty> it's all theory <markovich> that's the problem of course <berty> well <matja> i want a BS in BS <Anf> matja, bioscience? <markovich> but a phd is also a freelance paper <matja> bull**** <markovich> so I can write freely <markovich> I do not need to deal with the uninteresting parts of the theory <Anf> can anyone explain the last paragraph of this page, and how it can be done in c++, http://www.smartdraw.com/tutorials/software-uml/uml2.htm#whatcl*** <Nick_E> inheritance ? <Anf> how do you do the aggregatoin though <Anf> and only show public <markovich> Anf: What do you want to do? <markovich> actually write C code demonstrating this? <Anf> learn how to implement a design in c++ <Anf> yep <markovich> Dude, one is a variable declared in the cl*** <markovich> and the other is inheritance <markovich> let me explain <markovich> tire is an aggregate of car <Anf> but aggregation is a link between 2 cl***es <Anf> right... so u have a car and a tire cl*** <markovich> car is a generalisation of honda <markovich> one is a PART OF <markovich> the other is a TYPE OF <markovich> that is not difficult to understand, right? <Anf> i get that <Anf> but are they both implemented the same in c++? <markovich> so if it is a type of, you inherit from that type <markovich> if it is a part of, you make it a variable inside the cl*** <markovich> obviously... <markovich> you can inherit if you want, but I would personally see that as bad design <Anf> actually itihnk i get it, in a generalization, Honda would be abstract cl***, and in aggregate, they'd both be concrete <markovich> in any case, UML is not made for C++ <markovich> Honda would not be an abstract cl*** <markovich> Car would be an abstract cl*** <markovich> and Honde would inherit from Car <markovich> but why make it abstract at all? <job> perhaps a GetMake() virtual method ;P <markovich> "Car" is not just a description, there are some things all cars have in common you might add to that cl*** <MachinShi> i think we should start advertising on wired too. i mean it worked for #winprog right? ;) <markovich> yeah, and let's put popup ads and make money!
Return to c++ or Go to some related
logs:
chatzone smpatch bad request nvidiafb Xorg
|
|