Session Start: Sat Jun 18 00:00:00 2011 Session Ident: #glitchpc [00:00] * Now talking in #glitchpc
[00:00] * Topic is 'Welcome to #glitchpc chat. Profanity, trolls, and impersonation are not welcome here. Street1 has become a Silent Keyboard. http://www.legacy.com/obituaries/savannah/obituary.aspx?page=lifestory&pid=139870551'
[03:19] * pottsi (Mibbit@pottsi.staff.mibbit.net) has joined #glitchpc
[03:19] * ChanbotIV sets mode: +v pottsi
[04:10] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) has joined #glitchpc
[04:10] * ChanbotIV sets mode: +v camerongray
[04:49] * Tux2 (Tux2@mib-740E216C.hlrn.qwest.net) Quit (Ping timeout)
[05:05] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) Quit (Quit: )
[06:19] * jacky (the_kink@mib-FA782987.slsbmd.east.verizon.net) has joined #glitchpc
[06:19] * ChanServ sets mode: +q
[06:19] * ChanServ sets mode: +o jacky
[06:19] * ChanServ sets mode: -q
[06:19] * ChanServ sets mode: +o jacky
[07:19] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) has joined #glitchpc
[07:19] * ChanbotIV sets mode: +v camerongray
[07:37] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) Quit (Quit: )
[07:42] * pottsi (Mibbit@pottsi.staff.mibbit.net) Quit (Quit: http://www.mibbit.com ajax IRC Client)
[07:55] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) has joined #glitchpc
[07:55] * ChanbotIV sets mode: +v camerongray
[08:09]<@jacky> be back later
[08:09] * jacky (the_kink@mib-FA782987.slsbmd.east.verizon.net) has left #glitchpc
[09:07] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) Quit (Quit: )
[09:09] * Mulreay (mulreay@mib-10E4E6F.cable.virginmedia.com) has joined #glitchpc
[09:09] * Mulreay (mulreay@mib-10E4E6F.cable.virginmedia.com) Quit (Client exited)
[09:15] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) has joined #glitchpc
[09:15] * ChanbotIV sets mode: +v camerongray
[09:16]<@BC_Programming> woo rioter's are getting their just dessert from wednesday's riot
[09:17]<+camerongray> lol
[09:17]<@BC_Programming> people are tagging people in photos taken where they looted and stole, and set police cruisers on fire
[09:18]<@BC_Programming> It was some insane stuff
[09:18]<@BC_Programming> over a bloody hockey game...
[09:18]<@BC_Programming> I'm not really sure what their thought process was
[09:18]<+camerongray> Yeh, heard about that
[09:19]<@BC_Programming> "oh no the Canucks lost... I know let's break into sears and steal stuff"
[09:19]<@BC_Programming> the best part- rioting brings a life sentence
[09:19]<@BC_Programming> mwa haha
[09:24]<@BC_Programming> http://www.cbc.ca/news/canada/british-columbia/story/2011/06/15/bc-stanley-cup-fans-post-game-7.html
[09:24]<@BC_Programming> lol love the pic
[09:25]<@BC_Programming> sears, smashed windows- right beside it "new store hours"
[09:25]<@BC_Programming> that's for sure!
[09:26] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) Quit (Quit: )
[09:32] * Chosen (Mibbit@mib-345FE48B.direct-adsl.nl) has joined #glitchpc
[09:32]<Chosen> Hello!
[09:32]<Chosen> Anyone that's competent with C++ here?
[09:32]<@BC_Programming> somewhat... y
[09:32]<Chosen> Great!
[09:32]<Chosen> You are online :D
[09:32]<Chosen> I have been trying to reach you for days.
[09:32]<Chosen> Always offline...
[09:33]<Chosen> But anyway, do you know about functions?
[09:33]<@BC_Programming> yep
[09:33]<Chosen> That's great.
[09:33]<Chosen> Wait while I put the thing on pastebin, please.
[09:33]<@BC_Programming> k
[09:38]<Chosen> http://pastebin.com/7jLTiF87
[09:38]<Chosen> Here it is.
[09:38]<@BC_Programming> k
[09:38]<Chosen> Comments on what I am trying to do are in the file.
[09:41]<@BC_Programming> well
[09:41]<Chosen> Yes?
[09:41]<@BC_Programming> b is never assigned
[09:41]<Chosen> line 9?
[09:41]<Chosen> b=2?
[09:41]<Chosen> Or the overwriting in line 22?
[09:42]<@BC_Programming> in line 26 you pass b to dividemultiply
[09:42]<@BC_Programming> the only definition for b in scope is the int b; on line 9
[09:42]<@BC_Programming> sorry not line 9...
[09:42]<@BC_Programming> line 5
[09:42]<@BC_Programming> 6! line 6 :P
[09:43]<Chosen> x]
[09:43]<@BC_Programming> that's my final answer....
[09:43]<Chosen> And now you are letting me fix it myself?
[09:43]<Chosen> I'm fine with that.
[09:43]<@BC_Programming> no no I mean that's my final answer for what line it was on
[09:43]<Chosen> I don't think I will learn anything otherwise (:
[09:43]<Chosen> Oh, okay.
[09:43]<@BC_Programming> same with c, c is undefined when you use it on line 20
[09:43]<Chosen> Also...
[09:44]<Chosen> A.
[09:44]<Chosen> Ah.
[09:44]<Chosen> Wait.
[09:44]<@BC_Programming> the dvidemultiply routine's a b and c variables are local, they aren't accessed or seen outside that function
[09:44]<@BC_Programming> accessible*
[09:44]<Chosen> Ah.
[09:44]<Chosen> So...
[09:44]<Chosen> What can I do to have those variables set only by in divedemultiply?
[09:45]<Chosen> I know that I can do (2) to only define the first...
[09:45]<Chosen> *assign
[09:45]<Chosen> But what if I only want to assign a value to the second or third?
[09:46]<@BC_Programming> remove the =2 and =4 parts of the function declaration- they, aren't doing anything as they are now anyway
[09:46]<Chosen> I was talking about int main.
[09:46]<Chosen> For example (undefined, 14, undefined), for line 20
[09:47]<Chosen> Or whatever one uses for 'undefined'
[09:47]<@BC_Programming> you can't do it that way- optional arguments only work one for trailing args
[09:47]<Chosen> 'arg'?
[09:47]<@BC_Programming> argument
[09:47]<Chosen> So, I can only let the second and the third/the third unassigned?
[09:48]<Chosen> E.g.: (1) or (1,2)
[09:48]<@BC_Programming> I think the effect you want would be achieved by initializing the variables you declared earlier, ie line 5-7, ie you would use int b=3; int c=4
[09:48]<Chosen> But not (...,2)?
[09:48]<Chosen> Aha!
[09:49]<Chosen> Wait...
[09:51]<Chosen> But what if I only want it pre-assigned in the first calculation, but not in the second?
[09:51]<Chosen> Global variables seem to be unable to be changed.
[09:51]<Chosen> Or at least, without cin functions
[09:52]<@BC_Programming> I'm not sure what you mean... once you assign it it will only change if you change it
[09:53]<@BC_Programming> if you want it different for the second call you would simply assign it, or, call the function with the desired value
[09:54]<Chosen> Yeah, sorry.
[09:54]<Chosen> English's not my native language
[09:54]<Chosen> Anyway, AFK, dinner time.
[10:22]<Chosen> Back.
[10:30]<Chosen> Also, I fixed my program.
[10:30]<Chosen> Thanks for the pointers!
[10:30]<@BC_Programming> yw
[10:31]<Chosen> YW = You're welcome, amirite?
[10:31]<@BC_Programming> yep
[10:31]<Chosen> Okay.
[10:31]<Chosen> Now, just a bit more of function theory, and I can move on to the arrays :D
[10:32]<Chosen> As I want to be a game dev eventually, I especially look forward to arrays and object-orientation.
[10:32]<Chosen> Heh.
[10:32]<@BC_Programming> cool
[10:32]<Chosen> If I would have followed one tutorial on AS2, I'd have a game right now.
[10:32]<Chosen> C++ is really complicated.
[10:32]<Chosen> But it will be worth it later on, I guess.
[10:33]<Chosen> Also, what languages do you program in, excluding C++?
[10:33]<@BC_Programming> I've never written a non trivial program in C or C++, actually
[10:33]<@BC_Programming> currently It's usually C#
[10:34]<Chosen> Oh, okay.
[10:34]<Chosen> What is 'non-trivial'?
[10:34]<@BC_Programming> not simple
[10:34]<Chosen> Similar to 'non-abstract'?
[10:34]<Chosen> Oh wait, never mind.
[10:34]<Chosen> Non-abstract is about languages, rather than programs.
[10:34]<Chosen> I think.
[10:35]<Chosen> What's the difference between C, C#, and C++?
[10:35]<@BC_Programming> C++ is a superset of C that adds classes and other features
[10:35] * sonicrules1234 (sonicrules@mib-3E9DB4DC.lsanca.dsl-w.verizon.net) has joined #glitchpc
[10:35]<Chosen> Hello.
[10:35]<Chosen> Oh, okAY.
[10:35]<sonicrules1234> Hi
[10:35]<Chosen> sORRY, CAPS LOCK
[10:35]<Chosen> Turned off.
[10:35] * Chosen scolds Chanbot
[10:35]<@BC_Programming> C# is pretty much a completely new language, in comparison to them, it just uses a similar syntax
[10:36]<Chosen> Oh, okay.
[10:36]<Chosen> Do you use XNA?
[10:36]<Chosen> I heard it was some kind of 'expansion' on C#
[10:36]<@BC_Programming> XNA is the game studio
[10:36]<@BC_Programming> it's b een useless to me, personally I would rather use C# and one of the open sourced OpenGL libs
[10:37]<Chosen> Kind of an 'IDE', but for C#?
[10:37]<@BC_Programming> no
[10:37]<Chosen> Oh.
[10:37]<@BC_Programming> the IDE is Visual Studio 2008... usually
[10:37]<@BC_Programming> XNA is basically a class library you use
[10:38]<Chosen> Like <iostream>?
[10:38]<Chosen> Or 'namespace STD'?
[10:38]<@BC_Programming> well not exactly but that could be one way of putting it
[10:38]<Chosen> Oh, okay.
[10:38]<Chosen> I guess you can't really compare it, but whatever.
[10:39]<@BC_Programming> I have BASeBlock on github :P
[10:39]<@BC_Programming> https://github.com/BCProgramming/BASeBlock
[10:39]<Chosen> Oh, okay.
[10:40]<Chosen> I don't know if you know a lto about this, but...
[10:40]<Chosen> What do you think is more useful, LUA or Python?
[10:40]<@BC_Programming> haven't used LUA
[10:40]<Chosen> Because I want to learn a somewhat higher-level language eventually.
[10:40]<Chosen> Okay.
[10:40]<Chosen> *lot
[10:41]<Chosen> What about Python?
[10:41]<Chosen> Is it very useful?
[10:41]<Chosen> Is the fabled compatibality really that great?
[10:41]<Chosen> *compitability
[10:41]<@BC_Programming> you meant between platforms?
[10:42]<Chosen> If you are talking about different operating systems, yes, that too
[10:42]<Chosen> But I also was referring to other languages.
[10:42]<@BC_Programming> well, yeah, as long as you don't use anything that's platform dependent, but really that is true for Perl, PHP, Python, and a number of other script languages as well
[10:42]<Chosen> Okay.
[10:43]<Chosen> Do you know what the difference is between programming and scripting languages?
[10:43]<Chosen> What defines it?
[10:43]<@BC_Programming> a scripting language is a programming language... there is no difference
[10:43]<Chosen> Okay...
[10:43]<@BC_Programming> the difference would be between compiled and interpreted, really- but that's blurred quite a bit
[10:43]<Chosen> Okay.
[10:44]<Chosen> Hmmmm.
[10:44]<Chosen> Then, what's the difference between these?
[10:44]<Chosen> I hope you don't mind me asking so much questions, but I just don't know much x]
[10:44]<@BC_Programming> compiled means it get's turned into something else before being run, interpreted means it is run "as is"
[10:44]<Chosen> Okay.
[10:45]<@BC_Programming> for example C++ is compiled because it usually get's compiled to machine code for a given platform/architecture
[10:45]<Chosen> That's why people use interpreted languages like Python and Lua for the gameplay in a game, and something like C++ as an engine?
[10:45]<@BC_Programming> I guess so
[10:45]<@BC_Programming> it would make sense for additional content, anyway
[10:46]<Chosen> Okay.
[10:46]<Chosen> Well thank you for answering all those questions. That pretty much was it.
[10:46]<@BC_Programming> oh ok
[10:46]<Chosen> I am going back to the tutorial now.
[10:46]<@BC_Programming> k good luck
[10:47]<Chosen> Thanks.
[11:38]<Chosen> What is 'modulo'? (%)
[11:48] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) has joined #glitchpc
[11:48] * ChanbotIV sets mode: +v camerongray
[12:59] * Chosen (Mibbit@mib-345FE48B.direct-adsl.nl) Quit (Quit: http://www.mibbit.com ajax IRC Client)
[13:48] * Mulreay (mulreay@mib-10E4E6F.cable.virginmedia.com) has joined #glitchpc
[13:49] * ChanbotIV sets mode: +v Mulreay
[14:18]<+Craig> where is every one?
[14:19]<+Craig> Where is everyone?
[14:19]<+Craig> Oh heh. :P oops.
[14:26]<+camerongray> Hey Craig
[14:26]<+camerongray> !lastspoke Craig
[14:26]<+Craig> How goes it Cam?
[14:26]<+camerongray> Good thanks, how are you
[14:26]<+camerongray> ?
[14:27]<+Mulreay> hey, both
[14:27]<+Craig> Great, what are you up to?
[14:27]<+Craig> Hey Graham
[14:27]<+camerongray> Nothing much, FINALLY worked out how to burn an AVCHD DVD
[14:28]<+camerongray> And amazingly, it plays :P
[14:28]<+Craig> Nice
[14:28]<+Mulreay> I updated my forum.... it's all go in here today
[14:29]<+Craig> Awesome
[14:29]<+Craig> link me
[14:31]<+Mulreay> the forum?
[14:31]<+Mulreay> http://spaceandscience.co.uk/forum/index.php
[14:31]<+Mulreay> if so
[14:32]<+Mulreay> the update has been LONG overdue... was on 1.1.1 now on 2.0 RC Gold
[14:32]<+Mulreay> couple of things need tweaking
[14:32]<+Mulreay> like the birthday section is driving me nuts
[14:32]<+Craig> Nice
[14:33]<+camerongray> New version might be more spam-proof than 1.1.1
[14:33]<+Mulreay> Yeah, there are a few more tools that I have used in 2.0
[14:38]<+Craig> Awesome
[14:38]<+Craig> Spam proof is much better, But I think you mean Spam Resistant. :P
[14:39]<+Mulreay> Very true
[14:39]<+Mulreay> brb
[14:39] * Mulreay (mulreay@mib-10E4E6F.cable.virginmedia.com) Quit (Quit: Smoke me a Kipper, I'll be back for breakfast!)
[15:21] * pottsi (Mibbit@pottsi.staff.mibbit.net) has joined #glitchpc
[15:21] * ChanbotIV sets mode: +v pottsi
[15:28] * pottsi (Mibbit@pottsi.staff.mibbit.net) Quit (Quit: http://www.mibbit.com ajax IRC Client)
[15:29] * pottsi (Mibbit@pottsi.staff.mibbit.net) has joined #glitchpc
[15:30] * ChanbotIV sets mode: +v pottsi
[15:50] * camerongray (camerongra@4459C9DC.1A37B192.2CE956DE.IP) Quit (Ping timeout)
[16:11] * Tux2 (Tux2@mib-740E216C.hlrn.qwest.net) has joined #glitchpc
[16:12] * Tux2 (Tux2@mib-740E216C.hlrn.qwest.net) Quit (Client exited)
[16:19] * Tux2 (Tux2@mib-740E216C.hlrn.qwest.net) has joined #glitchpc
[16:34] * pottsi (Mibbit@pottsi.staff.mibbit.net) Quit (Quit: http://www.mibbit.com ajax IRC Client)
[17:58] * GlitchPC (Mibbit@mib-9FCDF15E.nwrknj.east.verizon.net) has joined #glitchpc
[17:58] * ChanServ sets mode: +o GlitchPC
[17:58]<@GlitchPC> !seen rayvtirx
[17:59]<@GlitchPC> !seen jacky
[17:59] * GlitchPC (Mibbit@mib-9FCDF15E.nwrknj.east.verizon.net) Quit (Quit: http://www.mibbit.com ajax IRC Client)
[20:46]<@BC_Programming> http://www.dontevenreply.com/
[20:49]<@BC_Programming> http://www.dontevenreply.com/
[20:49]<@BC_Programming> that guy is an expert troll
[20:49]<@BC_Programming> oh I already posted the url... oops
[21:03] * Craig (ce@EA3EABBF.9871C301.B29F9450.IP) has left #glitchpc
[21:04] * Craig (ce@EA3EABBF.9871C301.B29F9450.IP) has joined #glitchpc
[21:04] * ChanbotIV sets mode: +v Craig
[21:23] * Tux3 (Tux2@mib-740E216C.hlrn.qwest.net) has joined #glitchpc
[21:24] * Tux3 (Tux2@mib-740E216C.hlrn.qwest.net) Quit (Client exited)
[23:02] * sonicrules1234 (sonicrules@mib-3E9DB4DC.lsanca.dsl-w.verizon.net) Quit (Ping timeout)