Search found 54 matches

by Zer0XoL
Tue Mar 09, 2010 2:17 pm
Forum: Current Events and Science/Technology
Topic: New Incredible Computer Input
Replies: 11
Views: 2954

Re: New Incredible Computer Input

OMG Amazing! :shock2:
walking around in school and indentifying objects and watch youtube on the wall or well.. anything! :)
WIN, i wonder when things like these are available. :worship:
by Zer0XoL
Tue Mar 09, 2010 12:52 pm
Forum: Current Events and Science/Technology
Topic: Ubuntu's new look
Replies: 19
Views: 4960

Re: Ubuntu's new look

RazorC wrote:I just thought that I would post this here for all Ubuntu/Linux fans:

http://news.softpedia.com/news/Ubuntu-1 ... 6537.shtml

So, what do you guys think about this? ;)
Nice but the top corner buttons are at the wrong side! :shock2:
by Zer0XoL
Tue Mar 09, 2010 12:42 pm
Forum: Current Events and Science/Technology
Topic: Steam on Mac!
Replies: 12
Views: 2554

Re: Steam on Mac!

Why mac? Why not Linux, i know the linux guys has been wanting it very much, including me.
I hope they eventually port it to linux after the mac ports.. or else :twisted:
by Zer0XoL
Wed Mar 03, 2010 2:50 pm
Forum: Programming Discussion
Topic: <SOLVED>Define multidimensional array in a object
Replies: 11
Views: 968

Re: Define multidimensional array in a object

Make XMAX and YMAX const and then do it like:

Code: Select all

classname(int x, int y) : XMAX(x), YMAX(y) //construcor
{
}
by Zer0XoL
Sat Feb 06, 2010 7:13 am
Forum: Programming Discussion
Topic: [SOLVED]C++ Inherit help
Replies: 10
Views: 1590

Re: C++ Inherit help

GyroVorbis wrote:
qpHalcy0n wrote:For interfaces and abstract types you'll want to consider using a virtual destructor in the above case as well.
VERY important that you listen to this man.
And how do i make a virtual destructor?
Thanks all for the help btw :D
by Zer0XoL
Sun Jan 17, 2010 3:45 pm
Forum: Programming Discussion
Topic: [SOLVED]C++ Inherit help
Replies: 10
Views: 1590

Re: C++ Inherit help

You may want to make g_element an abstract class by adding something like void virtual Handle() = 0; void virtual Update() = 0; void virtual Draw() = 0; and you might want your vector to be of g_element pointers. I tried but it gives me this: cannot instantiate abstract class 1> due to following me...
by Zer0XoL
Sun Jan 17, 2010 2:27 pm
Forum: Programming Discussion
Topic: [SOLVED]C++ Inherit help
Replies: 10
Views: 1590

[SOLVED]C++ Inherit help

Hi everyone, I am making a Gui system and ive come across something i cant seem to solve. This is what the problem looks like: class g_element { protected: int x, y; public: g_element(int _x, int _y){x = _x; y = _y;} }; This is the base class for all elements like g_button should be based on class g...
by Zer0XoL
Sun Aug 30, 2009 2:46 pm
Forum: Programming Discussion
Topic: [SOLVED]Help with function poiners.
Replies: 10
Views: 966

Re: [SOLVED]Help with function poiners.

Thats because you don't call the function. Maskz[mask_wearing].Use (); You forgot the brackets after "Use" and you should use "endl" after cout to make sure everything is printed out. Isn't your compiler showing a warning "This statement has no effect"? Nope it says no...
by Zer0XoL
Sat Aug 29, 2009 4:05 pm
Forum: Programming Discussion
Topic: [SOLVED]Help with function poiners.
Replies: 10
Views: 966

Re: Help with function poiners.

Nope it says nothing, i use dev cpp. I used g++ with the -Wall flag to compile it. Didn't they stop to develop DevCpp? I'd use something else like gcc/g++, CodeBlocks (with gcc/g++) or VC++ (although I don't like it). Thanks for pointing it out for me, also suggestions about how i could make this i...
by Zer0XoL
Sat Aug 29, 2009 1:51 pm
Forum: Programming Discussion
Topic: [SOLVED]Help with function poiners.
Replies: 10
Views: 966

Re: Help with function poiners.

Thats because you don't call the function. Maskz[mask_wearing].Use (); You forgot the brackets after "Use" and you should use "endl" after cout to make sure everything is printed out. Isn't your compiler showing a warning "This statement has no effect"? Nope it says no...
by Zer0XoL
Sat Aug 29, 2009 9:23 am
Forum: Art, Music, and Design
Topic: Games you'd like to see remade (or demade?)
Replies: 120
Views: 21529

Re: Games you'd like to see remade (or demade?)

EDIT 2.0: Just thought of a couple more from the Genesis days - Comix Zone and Vector Man. GOD YES. I would perhaps add Ristar to that list. Most of you probably have no idea what that is... I have played and loved ristar xD Me and my brother were playing it all the time as kids when i was like 8 y...
by Zer0XoL
Sat Aug 29, 2009 9:12 am
Forum: Programming Discussion
Topic: [SOLVED]Help with function poiners.
Replies: 10
Views: 966

[SOLVED]Help with function poiners.

If you ever played zelda majoras mask you know you can wear masks with different effects. I tried making masks so when i use them a special function is executed, it compiles however does not print any text, so i assume the functions is not executing properly. Also if someone knows a better way to do...
by Zer0XoL
Sun May 10, 2009 2:29 pm
Forum: General/Off-Topic
Topic: IRC lulz
Replies: 316
Views: 103573

Re: IRC lulz

May 10 18:46:22 <silvernode> plus if I learn c# I can mess with the linux kernel May 10 18:46:23 <Zer0XoL> why not just C or C++? May 10 18:46:38 <silvernode> Linux kernel is all programmed in C# May 10 18:46:41 <Zer0XoL> isnt C# only windows? May 10 18:46:44 <silvernode> no May 10 18:46:45 <silver...
by Zer0XoL
Tue May 05, 2009 9:14 am
Forum: Programming Discussion
Topic: N00bish function wont work with class thingy
Replies: 13
Views: 1180

Re: N00bish function wont work with class thingy

MarauderIIC wrote:You can reseat a pointer, ie, make it point to something else. You can also delete what it points to. If you shouldn't be able to delete what the pointer points to, you should use a reference.
Ill use a reference :)
by Zer0XoL
Mon May 04, 2009 1:32 pm
Forum: Programming Discussion
Topic: N00bish function wont work with class thingy
Replies: 13
Views: 1180

Re: N00bish function wont work with class thingy

how does constructors work, or what are they? A constructor is automatically called when you create an object. It has the same name as the class. Your constructor could look like that: Player () // same name as class { IsAlive = true; exp = 1; hp = 100; power = 1; mp = 50; } So you don't need to ca...