Anonymous
C++
Anonymous
thnk you seniorsss
*AD
hi
*AD
can anyone teach me to write code for sin and cos pattern
T
Hi
*AD
in c
Ritu Raj
This is Working!!
Ritu Raj
But this is not!!
BinaryByter
return b.height < 41;
BinaryByter
This is Working!!
thats not how ternary statements works dude
Ritu Raj
Ritu Raj
This is Working!!
But this code is working!!
Anonymous
Which software your using now?
Ritu Raj
Hackerrank
Ritu Raj
Website
Ritu Raj
C language
Anonymous
Hackerrank
This is a software?
Ritu Raj
No
Ritu Raj
Online compiler!!
Ritu Raj
Ritu Raj
But this is not!!
What is syntax error over here??
Ritu Raj
I can't understand what type of error is this😭😭
Sisodia_Sandeep
Try return b.height<41? 0:1;
Ritu Raj
return b.height < 41;
Let me try this👍👍
BinaryByter
no
BinaryByter
finally!
BinaryByter
Try return b.height<41? 0:1;
this ternary expression clutters the code
Sisodia_Sandeep
Ritu Raj
Does it works ?
I don't have my laptop currently 😅😅
Ritu Raj
But I will surely reply if it is!!
Sisodia_Sandeep
BinaryByter
Does it works ?
why wouldn't it?
Anonymous
i try to change it but it just dont work. c++ is the hardest thing evah!
Dima
firstly, use screenshot software
Dima
your photos are super lameeee
BinaryByter
i try to change it but it just dont work. c++ is the hardest thing evah!
>"c++ is the hardest thing evah" this morning I had to socialize
BinaryByter
thats wayy harder
BinaryByter
+ don't add semicolons after the function definition
Anonymous
the error is still samee
BinaryByter
float myCoolFunction (arguments ) <NO semicolon> { }
Anonymous
its says a function-definition is not allowed here before'{' token
BinaryByter
show me your new code
Anonymous
BinaryByter
you forgot the closing parenthesis of your main function
BinaryByter
@Ariana1729 want to tell him anything?
Anonymous
iyup
BinaryByter
@Ariana1729 want to tell him anything?
or should we just... /warm
BinaryByter
whats that?
} this little boy
Anonymous
already put it in
BinaryByter
which C++ book did you learn from btw?
BinaryByter
i know exactly no C++ book that tells you that you can put functions inside of other functions
Anonymous
Any know about microprocessor
BinaryByter
Me! Me! Me!
Anonymous
i dont use book. just slide from lecturer
BinaryByter
are you from india perchance?
BinaryByter
the stl is the "standard template library" and is a huge part of C++
BinaryByter
basically, almost everything in the STDlib is in the STL
Anonymous
nope
BinaryByter
what?
BinaryByter
the STL is a subset of the set of elements in the C++ standard library
BinaryByter
please learn coding before applying to jobs
BinaryByter
yes?
Mihail
Why are they all in int main()?
BinaryByter
anonymous functions ?
No dont tell her lambdas exist
Mihail
anonymous functions ?
Lambdas? Those are completely different
BinaryByter
I am too lazy to teach her
BinaryByter
lambdas are pretty much function pointers with state, if I remember correctly
Badugar
Lambdas? Those are completely different
Lambdas != Anonymous functions ? Or am i getting smth. wrong ?
BinaryByter
there are no anonymous functions
BinaryByter
how would that make sense?
BinaryByter
how would you call an anonymous function?
BinaryByter
why would you need one to begin with?
BinaryByter
the reason for lambdas is not that they are anonymous