Yes, there are many types of pointers. Pointers to values, pointers to pointers, arrays using pointers (like string), etc.
Offline
bobbybee wrote:
Yes, there are many types of pointers. Pointers to values, pointers to pointers, arrays using pointers (like string), etc.
I don't get pointers. Got any pointers on pointers for me? XD
Offline
Eh. I've tried to make a small login system with it - to login to minecraft.net and run a minecraft instance (I actually made the run minecraft part - but the problem is you just have to press 'Play!' and it launches ( D: ) - so after I finish off with the login system (TEXTBOXES ARE ANNOYING (think of that with angryface) ) it should be OK.
Last edited by DigiTechs (2012-09-07 16:23:27)
Offline
BirdByte wrote:
Cool! Have you learned any others? I've heard that C++ is one of the hardest out there (besides Assembly).
Apparently assembly isn't that hard because there are so few commands. You just need to know a lot about computers :p
firedrake969_test wrote:
bobbybee wrote:
Yes, there are many types of pointers. Pointers to values, pointers to pointers, arrays using pointers (like string), etc.
I don't get pointers. Got any pointers on pointers for me? XD
And the world of Coders' Shed is revealed to you codersshed.webuda.com/forums/viewtopic.php?id=138
Last edited by slinger (2012-09-16 01:56:31)
Offline
I'm learning C++, but am not yet as comfortable as in Java.
Basically, pointers are a way to refer to memory outside of an object, if I know correctly. They refer to a location of a value instead of the value itself. So, if you have a texture parameter on an object, the texture will be on every instance of the object, making it take a lot more memory. If you have a pointer, then you can have this:
class object{ object(int getx, int gety, int textureArrayLocation, getTheGame){ theGame = getTheGame; x = getx; y = gety; theTexture = theGame.theTextures[textureArrayLocation]; } game* theGame; texture* theTexture int x; int y; }; class game{ texture[]* theTextures; };
I think that would work, anyway. I didn't test it.
Offline
I learned the concepts of it before learning Objective-C to get the ideas and have a good base. I probably couldn't write a good solid block of scripting in C++, but it was good to know the concepts before jumping into Objective-C.
Offline
stevetheipad wrote:
I learned the concepts of it before learning Objective-C to get the ideas and have a good base. I probably couldn't write a good solid block of scripting in C++, but it was good to know the concepts before jumping into Objective-C.
Excactly what i'm doing.
Offline
Laternenpfahl wrote:
stevetheipad wrote:
I learned the concepts of it before learning Objective-C to get the ideas and have a good base. I probably couldn't write a good solid block of scripting in C++, but it was good to know the concepts before jumping into Objective-C.
Excactly what i'm doing.
Everything I have heard about Objective-C is that it is an awful language with no real benefits. Unfortunately, Apple makes us developers use it or else the precious iOS market is unreachable.
Offline
16Skittles wrote:
Laternenpfahl wrote:
stevetheipad wrote:
I learned the concepts of it before learning Objective-C to get the ideas and have a good base. I probably couldn't write a good solid block of scripting in C++, but it was good to know the concepts before jumping into Objective-C.
Excactly what i'm doing.
Everything I have heard about Objective-C is that it is an awful language with no real benefits. Unfortunately, Apple makes us developers use it or else the precious iOS market is unreachable.
Answer: Stencyl.
Offline
veggieman001 wrote:
But that's only any good for games!
I only want to program games.
@ stevie
That's what I'm doing. Any suggestions?
Offline
Better yet, Google has made a program to convert Java code to Objective-C.
Offline
Firedrake969 wrote:
veggieman001 wrote:
But that's only any good for games!
I only want to program games.
@ stevie
That's what I'm doing. Any suggestions?
I really enjoyed learning C++ from a physical book...I suggest you check one out at your local library and try it out.
Offline
16Skittles wrote:
Better yet, Google has made a program to convert Java code to Objective-C.
Cool! Unfortunately the converters are never 100% accurate and you usually end up getting a lot of code that doesn't actually need to be there But if it works it works!
Offline
slinger wrote:
16Skittles wrote:
Better yet, Google has made a program to convert Java code to Objective-C.
Cool! Unfortunately the converters are never 100% accurate and you usually end up getting a lot of code that doesn't actually need to be there But if it works it works!
Yeah, I haven't tried it, but I know that I will have to go through the code anyway to update stuff for new OpenGL libraries (instead of LWJGL, java exclusive).
Offline
KrIsMa wrote:
Cout << 10/0
//crash!?!
(I was kinda told to necropost, but this is a forum without this rule (I think) )
No it isn't. We're not supposed to necropost... Heh, Necro.
Offline
Meh, I wouldn't mind if we could get a C discussion rolling again, personally.
Offline