Browsing 'Programming': Posts from Game Design and Programming
Spelprogrammering Vecka 3
Den här veckan har vi gått igenom hur klasser och arv fungerar i c++. Jag har förut programmerat i språket Ruby och använde mig av object oriented programing. Så jag vet hur det fungerar med klasser och objekt. c++ har lite saker som är annorlunda, man måste förklara om en metod eller en medlemsvariabel i klassen är antingen public, private eller protected. Som standard så är allt i klassen private vilket betyder att till exempel variabler inte kan ändras utanför […]
Spelprogrammering Vecka 3
Den här veckan har vi gått igenom hur klasser och arv fungerar i c++. Jag har förut programmerat i språket Ruby och använde mig av object oriented programing. Så jag vet hur det fungerar med klasser och objekt. c++ har lite saker som är annorlunda, man måste förklara om en metod eller en medlemsvariabel i klassen är antingen public, private eller protected. Som standard så är allt i klassen private vilket betyder att till exempel variabler inte kan ändras utanför […]
Week 2: Arrays and Functions
Hi,
Sorry for this late post. It is a week late, but on the other hand. This weekend there will be two posts!
So.. A new week of Game Programming. This week we have gone through functions, arrays and pointers. This week have been more confusing and hard than the first week. I feel that the reason for that is that I didn’t give it much thought, or much time. The second week I didn’t have so many hours of studying as I […]
Week 2: Arrays and Functions
Hi,
Sorry for this late post. It is a week late, but on the other hand. This weekend there will be two posts!
So.. A new week of Game Programming. This week we have gone through functions, arrays and pointers. This week have been more confusing and hard than the first week. I feel that the reason for that is that I didn’t give it much thought, or much time. The second week I didn’t have so many hours of studying as I […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]

Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]

Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]

Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]

Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]
Programming: Week 3
Week 3 is all about classes. Again, this is totally new to me but it is doable.
Just one exercise this time, more on classes to come.
Ex.2
Define a “Person” class. Within the class, define private variables (member variables/data members) to hold the age (an int
) and the name (an std::string
). Define public methods to assign values to the private variables and access the values in the private variables.
Use the class in a program so that the main()
function calls the methods […]
Programming: Week 3
Week 3 is all about classes. Again, this is totally new to me but it is doable.
Just one exercise this time, more on classes to come.
Ex.2
Define a “Person” class. Within the class, define private variables (member variables/data members) to hold the age (an int
) and the name (an std::string
). Define public methods to assign values to the private variables and access the values in the private variables.
Use the class in a program so that the main()
function calls the methods […]
Slow day but almost Done* with assignment 1
Worked for a few hours before lunch today, got to school later than i’d hoped but i was up late so i got there by ten rather than by nine. During the time i did work i didn’t get that much done other than some cleaning up my functions in the binary search tree class. I fixed the issue about not relocating children properly when removing a node.
In any case, have written the functionality of everything required for the assignment […]
Slow day but almost Done* with assignment 1
Worked for a few hours before lunch today, got to school later than i’d hoped but i was up late so i got there by ten rather than by nine. During the time i did work i didn’t get that much done other than some cleaning up my functions in the binary search tree class. I fixed the issue about not relocating children properly when removing a node.
In any case, have written the functionality of everything required for the assignment […]
LoopNodes for days.
I like the word loopNode, it makes me happy.
Today was a good day. I worked for about a solid seven hours at school.
During that time i wrote and almost finished my binary search tree class, it’s setup is mostly the same as the linked list except that each node has three pointers to other nodes, one to the parent of the node, one to the lower child and one to the higher child. The instructions to the assignment states that […]
LoopNodes for days.
I like the word loopNode, it makes me happy.
Today was a good day. I worked for about a solid seven hours at school.
During that time i wrote and almost finished my binary search tree class, it’s setup is mostly the same as the linked list except that each node has three pointers to other nodes, one to the parent of the node, one to the lower child and one to the higher child. The instructions to the assignment states that […]
Celsius to Fahrenheit
När jag försökte skriva ett program som omvandlar Fahrenheit fann jag att jag hade problem med att vad jag än skrev fick jag samma värde i slutändan. När jag skrev koden använde jag mig utav ett exempel program som vi fick i en PDF från en av de … – Läs hela inlägget här
Celsius to Fahrenheit
När jag försökte skriva ett program som omvandlar Fahrenheit fann jag att jag hade problem med att vad jag än skrev fick jag samma värde i slutändan. När jag skrev koden använde jag mig utav ett exempel program som vi fick i en PDF från en av de … – Läs hela inlägget här