|
| 11 Nov 2015 05:06 PM |
vs2015 oriented pls
OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 11 Nov 2015 05:21 PM |
| Make a program that prints "Hello world" |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2015 05:24 PM |
harder than that pls
OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Nov 2015 06:12 PM |
| here's a good project: learn it. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 11 Nov 2015 06:17 PM |
| Make a game, link pong or hangman |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 11 Nov 2015 08:50 PM |
>xml why >pointers WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
OT in a nutshell: https://www.youtube.com/watch?v=KDRAhiBtOrQ |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 11 Nov 2015 09:42 PM |
| Theyre slower and our processors have SIB that make standard pointer arrays faster |
|
|
| Report Abuse |
|
|