Search found 574 matches

by Yumtard
April 15th, 2021, 6:15 am
Forum: Everything
Topic: Absolute Beginner Documenting C++ Progress [daily updates]
Replies: 3
Views: 272

Re: Absolute Beginner Documenting C++ Progress [daily updates]

albinopapa wrote:
April 14th, 2021, 3:31 pm
Oh man, I remember when Yumtard did this it was a lot of fun. How are things going Yumtard?
I was getting some flashbacks as well, hope OP keeps updating!

Things are going quite well :) Programming simulators for different vehicles.
How are things with you?
by Yumtard
March 19th, 2021, 10:06 pm
Forum: Everything
Topic: Possible Request.
Replies: 1
Views: 230

Re: Possible Request.

It varies between companies But usually there's some type of project management software like jira, hansoft or trello. The project can then be broken down into different tasks with different priority. The tasks can also be broken down into sub tasks. These tasks are then assigned to different progra...
by Yumtard
October 1st, 2019, 1:18 pm
Forum: Everything
Topic: Multidimensional Array
Replies: 7
Views: 1527

Re: Multidimensional Array

Just rewrite the signature, I don't understand your problem. If you want vectors then something beautiful like this: void function( const std::vector<std::vector<int>>& a, const std::vector<int>& b ) or create a matrix class and just change the signature so it takes a matrix instead. If you need mor...
by Yumtard
September 30th, 2019, 11:21 am
Forum: Everything
Topic: Multidimensional Array
Replies: 7
Views: 1527

Re: Multidimensional Array

I would've made a matrix class. Else you could use vectors.

If it's stricly 3x3 matrices you can also do this

void function(float a[3][3])
by Yumtard
September 28th, 2019, 5:58 pm
Forum: Everything
Topic: A quick question on reference initialisation
Replies: 5
Views: 1279

Re: A quick question on reference initialisation

References must know what they're referencing when they are created. This is why they need to go in the initializer list. Stuff that get its value in the body of the constructor are actually first default constructed and then copy assigned. For this reason it's actually more efficient to initialize ...
by Yumtard
September 12th, 2019, 10:50 pm
Forum: Everything
Topic: Help with Collision code - :(
Replies: 5
Views: 1285

Re: Help with Collision code - :(

I don't see a box to collide with. Anyways, x_botFixed and y_botFixed is set to 0 in the h file then const int left_fixed = x_boxFixed - 5; const int right_fixed = x_boxFixed + 5; const int top_fixed = y_boxFixed - 5; const int bottom_fixed = y_boxFixed + 5; So the reticle changes color when it goes...
by Yumtard
August 28th, 2019, 8:36 pm
Forum: Everything
Topic: Beginner Tutorial 17 Framertimer
Replies: 3
Views: 1083

Re: Beginner Tutorial 17 Framertimer

What's happening is that you're creating another variable called last which is local to the mark function At the beginning of the function you also create a variable old and set its value to the member variable last. The value of the member variable never changes though since, as we established you'...
by Yumtard
May 19th, 2019, 4:55 pm
Forum: Everything
Topic: Homework 5 - Beginner C++
Replies: 9
Views: 2511

Re: Homework 5 - Beginner C++

at the end of episode 5, chili gives you homework.
In the homework video he then shows his solution to the homework so obviously the code will be a bit different
by Yumtard
May 8th, 2019, 3:52 pm
Forum: Everything
Topic: Intermediate HW 16 - Problem 2 error with istream_iterator
Replies: 2
Views: 915

Re: Intermediate HW 16 - Problem 2 error with istream_iterator

try this std::istringstream ss( nambies ); std::transform( std::istream_iterator<std::string>( ss ), std::istream_iterator<std::string>(), std::ostream_iterator<int>( std::cout ), [&numbers]( const std::string& word ) according to the documentation, istream_iterator takes a ref to stream, not a cons...