Just a dude who likes to code on occasion and play games; I also like dinosaurs I guess? I mean, they're pretty cool if you were to ask me.
Hello again everyone who happens upon this rather uneventful blog, here are some updates from what I've been doing lately. I have been learning a bit of C++ but I haven't been studying it nearly as much as I was a few days ago thanks to a sudden urge to play my XBox 360, which I had not played in months. I had Assassins Creed: Brotherhood unopened since I got it for Christmas so I played that for awhile and it's pretty great so far. It was kind of hard to persuade myself to play it at first, but I validated my decision by saying if I wanted to make games I would have to play them too. But now I am back to learning C++. I have learned only a little bit more since the last post and the aspects of C++ I have learned mainly deal with structs and arrays.
The book I am reading goes pretty in-depth when describing how things in C++ operate, so each chapter is twenty plus pages. This is the reason why I used a website (learncpp.com) to learn basic concepts and later cover them in the book. With structs I didn't learn anything new (nothing new YET, the rest of the chapter which I have not finished reading, deals with more facets of struct) except on declaring structure variables. Apparently structure variables can be declared like so:
struct Food
{
int weight;
char name[20];
};
Food Apple =
{
10,
"Apple"
};
I was previously declaring by typing the variable, the membership operator (a period (.) though I am not sure if the name membership operator applies to structs, though I think so), and then the member. For example: Apple.weight = 10; Overall I like the way I described in the code box better than the slightly messier version. I am afraid though that all this study of struct might be all for naught, I'll probably be using classes more than struct when I learn them later on.
I hope to cover the subject of arrays in-depth, hopefully there is more on arrays in the chapter I am reading (I would assume). Anyway I'll end this blog entry here, the stuff I am talking about is obviously just a beginner describing basic C++ concepts, but until I start making a game this is all I got folks. :(