Message from C, C++ discussions
December 2019
— Still I dont know why they have to dynamic allocate everything
I have already read a lot of times, I know the theory more or less and now I was trying to do this exercise to put it into practice, I encountered this difficulty, I looked for people with similar problems or explanations from various parts but I did not find nothing. Rereading the slides again with the explanations of class theory I don't see how it should help me
— I T 'S A N E X E R C I S E
— Then programming it's not your thing.
— I´ve seen horrible things in my life:
auto add_floats(float a, float b) -> float {I dont know who wrote this but I would call him the Dynalloc Psycho!
return a + b;
}
auto main(void) -> signed {
float* a = new float(3.14f);
float* b = new float(2.44f);
float* c = new float();
*c = add_floats(*a, *b);
delete a, delete b;
print("%f", *c);
delete c;
}
— The beep test is an exercise designed to measure aerobic fitness
— Mhhh
— Is this your help? Okay
— Come on guys - stop beeing so toxic
— No one knows?
— Is it an error or a warning?
— Error:
error C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
note: см. объявление "scanf"