Page 48 of 68

Re: Noob learns to code in 3 months

Posted: July 12th, 2017, 6:54 pm
by albinopapa
Yeah, I had forgotten all of my geometry and trigonometry from high school by the time I got around to using it. It's been tough trying to re-learn everything.

Re: Noob learns to code in 3 months

Posted: July 13th, 2017, 9:48 am
by Yumtard
^^ yeah tbh second part of the video got a bit confusing to me :D

Just found out I got accepted to my #1 back up school too :D
So if I hadn't gotten accepted to game programming I'd be doing 3 years of software engineering.

Re: Noob learns to code in 3 months

Posted: July 13th, 2017, 2:41 pm
by albinopapa
congrats again

Re: Noob learns to code in 3 months

Posted: July 14th, 2017, 2:49 pm
by Zedtho
^

Re: Noob learns to code in 3 months

Posted: July 15th, 2017, 4:40 pm
by Tajari
Well done on the school offers bro, you must have really impressed!

Re: Noob learns to code in 3 months

Posted: July 16th, 2017, 4:10 pm
by chili
The second part of the video is the important part :D

You should spend extra time focussing on it. I give the derivation 3 different ways to help people wrap their head around it, and the reason is because rotation is a VERY important math concept for a game programming to understand intimately imo.

Re: Noob learns to code in 3 months

Posted: July 16th, 2017, 7:44 pm
by Yumtard
Thanks guys :) It obviously doesn't really matter since I declined it but still felt good knowing I got accepted to both my top 2 choices!

@Chili, yep i intend to rewatch that :) These math vids gets a bit to much when watching an hour straight. Will first watch part 6 of intermediate though!

Just got back home from bjj camp, so haven't been able to study for a couple days. Will watch part 6 soon though.

Re: Noob learns to code in 3 months

Posted: July 16th, 2017, 8:30 pm
by Yumtard
10 minutes into part 6, now fighting the urges to pur this tutorial on ice and watch interviews with a vampire

Re: Noob learns to code in 3 months

Posted: July 17th, 2017, 6:12 am
by chili
Say what you want about Anne Rice's stuff, at least it's not Twilight :D

Re: Noob learns to code in 3 months

Posted: July 17th, 2017, 8:38 pm
by Yumtard
Feeling like a big ole dummy dumbdumb today.

So I've watched part 6 twice. Both times, for whatever reason, I space out completely half way through.
Read up on copy constructors and googled a bunch of stuff. Still feel very confuzzled.

Anyways, after googling, reading and a bunch of failed button mashing I somehow managed to pass all of the tests. But will need to go back to this one in the future.

Tomorrow I'm gonna rewatch the second half of the trig lesson and if there's time, watch the one about matrices. Then I'm putting programming on ice for a little bit while reading up on linear algebra.

hw
Spoiler:

Code: Select all

#pragma once

class Node
{
	friend class Stack;
	Node* next;
	int data;
	Node() = default;
	Node(Node* n, int d)
		:
		next(n),
		data(d)
	{}
};

class Stack
{
public:
	Stack()
		:
		head(0),
		size(0)
	{};
	~Stack();
	Stack(const Stack& source)
		:
		size(source.size)
	{
		Node* cur = nullptr;
		Node* next = nullptr;

		if (source.head)
		{
			head = new Node;
			head->data = source.head->data;
			cur = head;
			next = source.head->next;
		}
		else
		{
			head = nullptr;
		}

		while (next)
		{
			cur->next = new Node;
			cur = cur->next;
			cur->data = next->data;
			next = next->next;
		}
		cur->next = nullptr;
	};
	Stack& operator= (const Stack& source) 
	{
		if (this != &source)
		{
			this->~Stack();
			size = source.size;
			Node* cur = nullptr;
			Node* next = nullptr;

			if (source.head)
			{
				head = new Node;
				head->data = source.head->data;
				cur = head;
				next = source.head->next;
			}
			else
			{
				head = nullptr;
			}

			while (next)
			{
				cur->next = new Node;
				cur = cur->next;
				cur->data = next->data;
				next = next->next;
			}
			cur->next = nullptr;
		}
		return *this; 
	};
	void Push( int val );
	int Pop();
	int Size() const;
	bool Empty() const;

private:
	int size;
	Node* head;
};

Code: Select all

#include "Stack.h"

Stack::~Stack()
{
	while (!Empty())
	{
		Node* newNode = head;
		head = head->next;
		delete newNode;
	}
}

void Stack::Push(int val)
{
	size++;
	head = new Node(head, val);
}

int Stack::Pop()
{
	if (Empty())
	{
		return -1;
	}
	else
	{
		size--;
		Node* newNode = head;
		int d = newNode->data;
		head = head->next;
		delete newNode;
		return d;
	}
}

int Stack::Size() const
{
	return size;
}

bool Stack::Empty() const
{
	return !head;
}
chili wrote:Say what you want about Anne Rice's stuff, at least it's not Twilight :D
I'm waaaay too into vampire movies/shows, but even I can't stand the twilight ones.
I actually did enjoy the books though
Spoiler:
plz don't tell anyone