generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: ideas for a c++ project

Previous Thread :: Next Thread 
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
11 Nov 2015 05:06 PM
vs2015 oriented pls

OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ
Report Abuse
PerilousDanger is not online. PerilousDanger
Joined: 21 Aug 2012
Total Posts: 3773
11 Nov 2015 05:09 PM
with GUI or no?
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
11 Nov 2015 05:19 PM
doesnt matter but im not going the vim way
if its a text editor it cannot be console based

OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
11 Nov 2015 05:21 PM
Make a program that prints "Hello world"
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
11 Nov 2015 05:24 PM
harder than that pls

OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Nov 2015 06:12 PM
here's a good project: learn it.
Report Abuse
Dogejia is not online. Dogejia
Joined: 08 Feb 2012
Total Posts: 1873
11 Nov 2015 06:13 PM
Make an exact replica of roblox, or just a roblox game


Dogemon, gotta pet them all!
Report Abuse
xLink123 is not online. xLink123
Joined: 07 Aug 2014
Total Posts: 11158
11 Nov 2015 06:17 PM
Make a game, link pong or hangman
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
11 Nov 2015 08:14 PM
"Make a game, link pong or hangman "
can mfc even do that


OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
11 Nov 2015 08:20 PM
Make yourself a friend because you need one of those.
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 08:48 PM
I guess I missed this thread.

A good exercise for someone that's learning is to make a family tree program. Make a class for your tree nodes and make a vector for future children and a parent inside:

pastebin(dot)com/twdx10xy

... then save it to an XML file that you can load later. You can then print out the entire family tree.
It uses pointers, which is something that you have to understand, and you can extend it later with some sweet polymorphism for different people that you might have in your family tree.
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
11 Nov 2015 08:50 PM
>xml
why
>pointers
WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 08:52 PM
Pointers are the building block of a working project, without them you can't have OOP-ness.
XML is the easiest to read/write and it retains readability.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Nov 2015 08:54 PM
Without them you can't have anything pretty much, they're used almost everywhere, but not always explicitly.
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 08:57 PM
>but not always explicitly.

that's true, but you could say the same for Lua
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Nov 2015 08:59 PM
I do say the same for Lua :) and pretty much every other language.
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 09:07 PM
yup. just clarifying that pointers aren't always necessary.

as much as it is important to know how to use them it's important to know when you don't need to use them. on that note, use smart pointers.
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
11 Nov 2015 09:11 PM
"and pretty much every other language."

Except Java.

"You don't get those"
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Nov 2015 09:17 PM
Uhm, pointers are used literally everywhere in Java, since it's OOP.
It's just that you can't specifically say "i want a pointer to blah" (for the most part).
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 09:23 PM
java uses references which are the dumbed down, type safe version of C++'s pointers.
and to build on cntkillme's statement, you don't define references to objects in Java, you only access objects by reference.
Report Abuse
heavylifterman192 is not online. heavylifterman192
Joined: 18 Oct 2015
Total Posts: 201
11 Nov 2015 09:29 PM
Pointers don't exist in Lua or Java (the * operator is for multiplication only) but for C++ they are used quite a bit, especially for arrays.
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 09:32 PM
"Pointers don't exist in Lua or Java (the * operator is for multiplication only) but for C++ they are used quite a bit, especially for arrays."

1) cntkillme was saying that pointers are used in the C implementation of Lua, not that you use them in Lua's syntax.
2) you use references in Java, which are very similar to pointers. the * operator thing is because you don't define references in Java.
3) you shouldn't use pointers for arrays. I know what you're trying to say, but for dynamic arrays you should use std::vector / std::list
Report Abuse
heavylifterman192 is not online. heavylifterman192
Joined: 18 Oct 2015
Total Posts: 201
11 Nov 2015 09:34 PM
1) Yeah I'm not talking about implementations, just Lua
2) I guess idk java very well
3) Those take up too much space in a lot of cases but yeah I try to use them
Report Abuse
DrHaximus is not online. DrHaximus
Joined: 22 Nov 2011
Total Posts: 8410
11 Nov 2015 09:38 PM
they only take up as much space as you put inside them. dynamic arrays with pointers will take up the same amount of space (as defined) no matter how many elements are used.
trust me broseph, they're so much easier to use, you don't have to worry about the amount of elements when defining one.
Report Abuse
heavylifterman192 is not online. heavylifterman192
Joined: 18 Oct 2015
Total Posts: 201
11 Nov 2015 09:42 PM
Theyre slower and our processors have SIB that make standard pointer arrays faster
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image