Author |
Message |
Captain Mew
Joined: Mon Aug 11, 2008 6:40 am Posts: 1648 Location: ... Not America
|
K, time to be a pushass coder right nao. Imma C++ person, so when I talk, I'm talkin bout C++.
Pointer's are really neat, really useful codes to use. Thai, Nac, I suggest you start using Pointers now. Also, it's really easy to understand
K, you see how variable's are used to keep memory stored. like int crap Y'see, a pointer "points to" a certain variable you assign it to. When you assign a variable to a pointer, the pointer has quick access to the variable's memory.
Ex. int test = 7; //Now the variable test is 7 int* the = &test; //Your giving the pointer the access to the int test *the = 6 //Even though you assigned the to test, it's still an integer. Although, when you assign the to 6, it also changes for test, since pointer's gain access to variable's when you assign them to it.
Ya get it now?
|
Sun Mar 08, 2009 8:24 am |
|
|
necrolium
Joined: Wed Nov 12, 2008 9:23 pm Posts: 124 Location: Charlotte, NC
Gender: Male
|
C++ seems extremely complicated.
_________________Game Maker Awesomenessness http://www.youtube.com/watch?v=11DylA2AuJI
|
Sun Mar 08, 2009 10:49 am |
|
|
Original Unbastard
Joined: Sun Aug 17, 2008 5:39 pm Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
|
We already know all that N00b... what Thai say (and he is probably right) is that using pointers can be messy if you are working on advance data game. For instance, look all the things you should do to create a multi-dimensional array... It's not the same as AS or Java. It's way more dificult... I don't want imagine the dificulty of working with something even harder.
_________________SALU2'S ™ _________________ join date: January 08, 2007 Posts on old MG: 2432, level 16 nà chóu
|
Sun Mar 08, 2009 11:08 am |
|
|
Captain Mew
Joined: Mon Aug 11, 2008 6:40 am Posts: 1648 Location: ... Not America
|
Don't get me started on floats.
|
Sun Mar 08, 2009 12:21 pm |
|
|
Original Unbastard
Joined: Sun Aug 17, 2008 5:39 pm Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
|
N00b... floats is doing 1+1=2 compared with other stuff from coding .
_________________SALU2'S ™ _________________ join date: January 08, 2007 Posts on old MG: 2432, level 16 nà chóu
|
Sun Mar 08, 2009 12:37 pm |
|
|
Captain Mew
Joined: Mon Aug 11, 2008 6:40 am Posts: 1648 Location: ... Not America
|
Not when you use floats for programming purposes.
|
Sun Mar 08, 2009 1:14 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
I already know how to use pointers. I've implemented Linked Lists, Doubly Linked Lists, Queues, Stacks, Trees, Binary Trees, AVL Trees and Heaps using pointers in C (not that different from C++ anyway). They are a complete pain in the a**. But on the other hand, those data structures are quite useful for storing information. Though, thanks to the not so advanced C language, you have to keep track of pointers and memory as well. Note that I was coding in a procedural programming manner at the time since I only knew C/C++.
|
Mon Mar 09, 2009 3:35 am |
|
|
Original Unbastard
Joined: Sun Aug 17, 2008 5:39 pm Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
|
But, but... c++ = c with classes... I don't get why you used proccedural when you could have used Object Oriented. :
_________________SALU2'S ™ _________________ join date: January 08, 2007 Posts on old MG: 2432, level 16 nà chóu
|
Mon Mar 09, 2009 11:33 am |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Because the Lab Instructor told me to.
|
Tue Mar 10, 2009 12:11 am |
|
|
Captain Mew
Joined: Mon Aug 11, 2008 6:40 am Posts: 1648 Location: ... Not America
|
oh, btw, did you guys ever try MFC before? Right now, I'm trying it out and I don't know s*** about it.
|
Tue Mar 10, 2009 6:42 am |
|
|
Original Unbastard
Joined: Sun Aug 17, 2008 5:39 pm Posts: 1248
Gender: Anime Girl
Skype: Nacritico
Currently Playing: LOL
|
Your LI is an a**, know it. I know you are going to say "but he was trying to teach me, etc,etc,etc. That's far from truth... he only wanted to see you suffering.
_________________SALU2'S ™ _________________ join date: January 08, 2007 Posts on old MG: 2432, level 16 nà chóu
|
Tue Mar 10, 2009 11:23 am |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
Admittedly, I didn't know OO programming at the time.
|
Wed Mar 11, 2009 2:11 am |
|
|
Captain Mew
Joined: Mon Aug 11, 2008 6:40 am Posts: 1648 Location: ... Not America
|
K so you guys are Pro at your little scripting language? Does Java have Win32?
|
Thu Mar 12, 2009 4:46 pm |
|
|
SS
Joined: Sat Aug 16, 2008 8:38 am Posts: 6670 Location: Darkest Antartica Country:
Gender: Male
Skype: Thaiberium
Currently Playing: The Game
|
I wouldn't exactly say I was professional though. Why do you need to make a Java program in to a Win32 program anyway (if that's what you're asking)? Java, as far as I can tell, has its own little virtual machine called JRE and the usual method of implementation is interpretation of the source code in to byte code that JRE runs.
Oh, and if anyone is interested in trying some Lisp, I suggest using Emacs.
|
Fri Mar 13, 2009 11:31 am |
|
|
Captain Mew
Joined: Mon Aug 11, 2008 6:40 am Posts: 1648 Location: ... Not America
|
naw, I was asking if Java had some kind of programming similar to Win32 C++
|
Fri Mar 13, 2009 2:18 pm |
|
|