Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: 1 2 [3] 4 5 ... 11   Go Down

Author Topic: Programming Q&A  (Read 31396 times)

0 Members and 1 Guest are viewing this topic.

Xiphirx

wat
Re: Programming Q&A
« Reply #40 on: July 01, 2008, 08:15:55 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Quote
Anyway, not anything help related but, how would I go about making a scripting language or programming language? Would any of you know? (just the basics...) Oh, and go as technical as you want.
lol, my speciality. If you want an explanation on this grab my MSN (chleonard@aol.com), its far to complicated to explain on a forum. A warning though, compiler design is considered one of the most complex aspects of programming, unless you want to spend a long time getting to grips with it, forgot it :P.

ok will do, but you gave me an aol email, you sure you didn't mean AIM? (BTW I use AIM, I don't use MSN...)
Logged
  • For The Swarm
Re: Programming Q&A
« Reply #41 on: July 01, 2008, 08:18:25 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
No thats correct. Your msn email dosen't have to be hotmail.com you know, right? If you don't use MSN, try GTalk (helios4ever@gmail.com).
Logged

Xiphirx

wat
Re: Programming Q&A
« Reply #42 on: July 01, 2008, 08:24:25 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
No thats correct. Your msn email dosen't have to be hotmail.com you know, right? If you don't use MSN, try GTalk (helios4ever@gmail.com).

Yeah I use GTalk. I'll add you, any specific times when you are on?
Logged
  • For The Swarm
Re: Programming Q&A
« Reply #43 on: July 01, 2008, 08:47:11 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
No thats correct. Your msn email dosen't have to be hotmail.com you know, right? If you don't use MSN, try GTalk (helios4ever@gmail.com).

Yeah I use GTalk. I'll add you, any specific times when you are on?
24/7?
Logged

Xiphirx

wat
Re: Programming Q&A
« Reply #44 on: July 01, 2008, 08:47:54 pm »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
No thats correct. Your msn email dosen't have to be hotmail.com you know, right? If you don't use MSN, try GTalk (helios4ever@gmail.com).

Yeah I use GTalk. I'll add you, any specific times when you are on?
24/7?

lol k
Logged
  • For The Swarm
Re: Programming Q&A
« Reply #45 on: July 02, 2008, 12:14:17 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Infin, out of curiosity, would you recommend taking a compiler design class?  I just realized my college offers it..
Logged



i love big weenies and i cannot lie
Re: Programming Q&A
« Reply #46 on: July 02, 2008, 06:42:03 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Infin, out of curiosity, would you recommend taking a compiler design class?  I just realized my college offers it..
Depends if your intresting in that kind of thing. I definitely would.
Logged
Re: Programming Q&A
« Reply #47 on: July 03, 2008, 02:31:17 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Well, what exactly are you able to do with that kind of knowledge?
Logged



i love big weenies and i cannot lie

Xiphirx

wat
Re: Programming Q&A
« Reply #48 on: July 03, 2008, 03:20:17 am »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Well, what exactly are you able to do with that kind of knowledge?

make your own programming languages,

build your own compilers for different langauges,  and further your understanding of the microcomputer

BTW Infini maybe you can send MG-Zero that book you were talking to me about?
Logged
  • For The Swarm
Re: Programming Q&A
« Reply #49 on: July 03, 2008, 04:20:13 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Interesting, I'll look into it =)
Logged



i love big weenies and i cannot lie

Xiphirx

wat
Re: Programming Q&A
« Reply #50 on: July 03, 2008, 04:22:41 am »
  • Xiphirx
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3007
Interesting, I'll look into it =)

Be sure to ask infini for a book to get you started!
Logged
  • For The Swarm
Re: Programming Q&A
« Reply #51 on: July 03, 2008, 04:41:45 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 256
I'd say very yes to a compiler class. Not so much so you can 'make your own languages', or what not. For the sole purpose of just getting down and dirty, thinking about the core concepts behind a compiler. When you think about how a compiler is written, it can, and will make you think much differently when you're coding. Compilers are beautiful, but sometimes fickle creatures. Knowing the basic idea of how they work can only help you.
Logged
  • My Myspace?
Re: Programming Q&A
« Reply #52 on: July 03, 2008, 06:50:51 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Interesting, I'll look into it =)

Be sure to ask infini for a book to get you started!

Well I'm gonna be taking it in college, so i'm not gonna bother with a head start or anything.
Logged



i love big weenies and i cannot lie
Re: Programming Q&A
« Reply #53 on: July 03, 2008, 07:02:28 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 266
That sounds like an interesting class, heck I'd take it just for the sake of taking it. It's gonna be geared more towards lower level programmers, ASM and C style. If you're more into VB or C#, it may not be for your tastes, but there's never any harm in learning something new.
Logged
Intel P4 3.2 GHZ
2.5GB SDRAM DDR400
350GB SATA
ATI RADEON HD 2600PRO 512MB
Creative Sound Blaster Audigy2 Z
Windows XP SP2

Current Projects: None.
- Trask
Re: Programming Q&A
« Reply #54 on: July 03, 2008, 09:26:50 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
That sounds like an interesting class, heck I'd take it just for the sake of taking it. It's gonna be geared more towards lower level programmers, ASM and C style. If you're more into VB or C#, it may not be for your tastes, but there's never any harm in learning something new.

lol..I know C++ already, infact I hate VB and I was the only one that knew what I was doing these past 2 semesters in my programming classes XD
Logged



i love big weenies and i cannot lie
Re: Programming Q&A
« Reply #55 on: July 06, 2008, 11:33:41 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Let's play with some operator overloading..Say I have..

Code: [Select]
class BaseClass
{
//blah blah blah
};

class newclass1 : public BaseClass
{
//blah
};

class newclass2 :public BaseClass
{
//blah
};

If I overload an operator (lets say + for the hell of it) to work with the baseclass, will the overloaded operator work with the derived classes as well?  Or will I have to overload it for each derived class?
Logged



i love big weenies and i cannot lie
Re: Programming Q&A
« Reply #56 on: July 07, 2008, 12:03:24 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Let's play with some operator overloading..Say I have..

Code: [Select]
class BaseClass
{
//blah blah blah
};

class newclass1 : public BaseClass
{
//blah
};

class newclass2 :public BaseClass
{
//blah
};

If I overload an operator (lets say + for the hell of it) to work with the baseclass, will the overloaded operator work with the derived classes as well?  Or will I have to overload it for each derived class?
For most operators, yes. However a quirk of the C++ standard is that implicitly declared operators (eg. Ones declared internally by the compiler) overrule any inhereted operators, the only one I can think off off hand that has this behaviour is the assignment operator.
Logged
Re: Programming Q&A
« Reply #57 on: July 14, 2008, 02:42:09 am »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
Don't we all just love linker errors?  specifically

Quote
fatal error LNK1169: one or more multiply defined symbols found

Yea, I can't get rid of this one.  I declared an instance of a class in a header file and it came up.  But it works fine if I declare it in a .cpp file (I need it in the header though..).  I've checked about 3 or 4 times over my preprocessor commands for #include misuses, I can't seem to find any though.  I have inclusion guards on all of my header files as well.

EDIT: http://pastebin.com/m1d3e24f4 code is on here (it's a lot btw)  I seperated each file with a comment of the file name.  Min also went through it, he thinks it's a problem with command.h.
« Last Edit: July 14, 2008, 03:37:57 am by MG-Zero »
Logged



i love big weenies and i cannot lie
Re: Programming Q&A
« Reply #58 on: July 14, 2008, 12:02:22 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
can't you just declare it in a cpp file and then have an extern in the header file?
Logged
Re: Programming Q&A
« Reply #59 on: July 14, 2008, 12:07:48 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Windy is actually correct, for static variables you need to declare them in the H and implement them within the CPP file. Its just a quirk of the C++ standard, it will work perfectly fine though. Have a look at the zfgsdk source and see how I've declared static variables in that (CGameEngine.cpp for example).
« Last Edit: July 14, 2008, 07:29:20 pm by Infini »
Logged
Pages: 1 2 [3] 4 5 ... 11   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.278 seconds with 74 queries.

anything