I`m doing something wrong. In a right triangle the hypotenuse length is 80.62 the triangle side length opposing the angle is 40. The windows calculator result for inverse sin 40/80.6225 is 29.74 When I do the math with asinf() I`m getting 0.519
I'm writing a C++ class for my company and I finished all the explanation parts. Now I need to intersperse both examples, mostly detailing differences of implementation of basic functionalities between C and C++, and exercises to give the trainees (freshly graduated).
I need them to be an inspiration for me, not going to copy/paste them shamelessly, since I'm going to illustrate the points I've made in the course. Also they will be in powerpoint so I will need to trim them quite a bit.
If you know sources you trust for this kind of content you would help me a lot (yes, I will search with my Google-fu but your knowledge, training, experience and Google-jitsu may help me nevertheless).
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The alternative (and very time consuming) is to go through the list of library/standard template library functions and take the sample code from each. But it all rather depends on exactly what you want to teach them.
Personally you are doing it all backwards you give new graduates the company programming rules and guidelines and tell them what happens if they submit junk that doesn't conform ... which usually involves buying rounds of beers.
They will have a pile of bad habits and completely unacceptable risks they picked up at uni and thought was cool and some are just dam lazy.
Then you get them to try and write a simple program that conforms and discuss the errors and violations they will without doubt submit.
Trust me there will be as many different coding styles as you have graduates and somehow you have to get them all to be able to read each others code as well as you. You aren't trying to stifle thinking and coding imagination but you need to get them on the same pages with standards.