This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#76 2012-09-05 13:13:44

Anarcial
Scratcher
Registered: 2012-08-19
Posts: 100+

Re: C/C++ Official Topic

Well if you want a good example of game made with it : Half-Life 2

Offline

 

#77 2012-09-05 13:17:41

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: C/C++ Official Topic

Cool! Have you learned any others? I've heard that C++ is one of the hardest out there (besides Assembly).

Last edited by BirdByte (2012-09-05 13:28:31)


http://i50.tinypic.com/312u714.jpg

Offline

 

#78 2012-09-05 13:49:45

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: C/C++ Official Topic

lol, epic pun "any pointers"  lol


http://i.imgur.com/1QqnHxQ.png

Offline

 

#79 2012-09-05 16:15:18

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C/C++ Official Topic

Yes, there are many types of pointers. Pointers to values, pointers to pointers, arrays using pointers (like string), etc.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#80 2012-09-06 12:43:04

firedrake969_test
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: C/C++ Official Topic

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


Alt of Firedrake969.

Offline

 

#81 2012-09-07 16:23:11

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: C/C++ Official Topic

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  yikes  (think of that with angryface) ) it should be OK.

Last edited by DigiTechs (2012-09-07 16:23:27)


I'm back.
Maybe.

Offline

 

#82 2012-09-08 02:03:22

360-International
Scratcher
Registered: 2011-07-17
Posts: 100+

Re: C/C++ Official Topic


https://lh4.googleusercontent.com/Oib6kyze-OrCFIRlqL6HYnWuHBQp1GfFoh5CkBlZGe3_9WCk-_DDwgfFrnD_mxJ_x2b18hMUyV2KVtIDiLdebyWaQQ6fbpKpZs-8auVep1zoSgOv-iA

Offline

 

#83 2012-09-16 01:54:25

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: C/C++ Official Topic

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)


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#84 2012-09-16 03:30:58

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: C/C++ Official Topic

im learning it to so i can make a ... not telling you yet

(and yes i am back)


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#85 2012-09-16 09:22:31

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

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:

Code:

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.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#86 2012-09-16 10:44:12

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: C/C++ Official Topic

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.


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#87 2012-09-16 16:15:35

Laternenpfahl
Scratcher
Registered: 2011-06-24
Posts: 1000+

Re: C/C++ Official Topic

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.  tongue


http://i46.tinypic.com/6yd4c0.png

Offline

 

#88 2012-09-16 17:56:17

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

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.  tongue

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.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#89 2012-09-16 18:09:38

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: C/C++ Official Topic

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.  tongue

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.


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#90 2012-09-16 19:06:45

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: C/C++ Official Topic

But that's only any good for games!


Posts: 20000 - Show all posts

Offline

 

#91 2012-09-17 19:44:25

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: C/C++ Official Topic

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?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#92 2012-09-17 19:53:56

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

Better yet, Google has made a program to convert Java code to Objective-C.  tongue


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#93 2012-09-17 23:47:51

stevetheipad
Scratcher
Registered: 2011-08-06
Posts: 1000+

Re: C/C++ Official Topic

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.  smile


http://i.imgur.com/0x8ia.jpg
gone

Offline

 

#94 2012-09-18 01:46:34

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: C/C++ Official Topic

16Skittles wrote:

Better yet, Google has made a program to convert Java code to Objective-C.  tongue

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  tongue  But if it works it works!


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#95 2012-09-18 07:44:53

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

slinger wrote:

16Skittles wrote:

Better yet, Google has made a program to convert Java code to Objective-C.  tongue

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  tongue  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).


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#96 2013-01-15 10:33:59

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: C/C++ Official Topic

Cout << 10/0
//crash!?!
(I was kinda told to necropost, but this is a forum without this rule (I think) )

Last edited by KrIsMa (2013-01-15 10:51:33)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#97 2013-01-15 11:55:31

Necromaster
Scratcher
Registered: 2010-04-07
Posts: 1000+

Re: C/C++ Official Topic

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

 

#98 2013-01-15 20:53:28

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

Meh, I wouldn't mind if we could get a C discussion rolling again, personally.  tongue


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#99 2013-01-15 21:00:38

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: C/C++ Official Topic

16Skittles wrote:

Meh, I wouldn't mind if we could get a C discussion rolling again, personally.  tongue

Yeah! Let us talk about division by 0!!! lol!


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#100 2013-01-15 23:28:40

Programmer_112
Scratcher
Registered: 2012-02-17
Posts: 100+

Re: C/C++ Official Topic

I'm completely skipping C to learn Objective-C for XCode.


http://i49.tinypic.com/rk60py.png

Offline

 

Board footer