Bruce
Change one
Ok ,u r correct , by changing its working,but I don't know why before one is wrong
Mihail
Mihail
They literally have the same name
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Mihail
What do you expect the compiler to do?
Mihail
Try and read you mind with the crystal ball or something?
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Dima
top 10 anime reveals
🐰🐾 سمیه
Hi, I'm having trouble understanding how this C function works. Would you please explain it in details?
Francisco
Sarandonga
Dima
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Anonymous
s1 : array of characters ( in shortend notations eg a-c or c-g or a-f)
Anonymous
HI
Anonymous
Am i allowed to post job opening here
BinaryByter
i take the job
Anonymous
What job?
Anonymous
What's the experience needed
Anonymous
I can do hello world programming
Dani
Dani
the job is yours
Sid Sun
Anonymous
Ok thanks
Sid Sun
Obviously don't post i need hacker to hack facebook, snapchat or whatever the "cool" kids are doing these days
MᏫᎻᎯᎷᎷᎬᎠ
.
🐰🐾 سمیه
Ok
Anonymous
Hi
ㅤ
Hello
klimi
hey
Anonymous
How to find subarray in O(2*N) with DP
BinaryByter
How would you search for a subarray?
Anonymous
Anonymous
It is generating of subarray sorry my mistake
BinaryByter
?
meis
hello
which is better - to implement the unique_ptr<T> and unique_ptr<T []> with inheritance or separated?
BinaryByter
why do you need separation?
BinaryByter
they are the same thing
meis
I have implemented this https://pastebin.com/4J3vS6f9
Anonymous
?
Like I want generate subarray of 12345
So,I have think this first take size of array 1 then then add 1 to that array and delete 1 from it and add 2 that subarray and so on...and if we reach 5 increase subarray size by 1 and do same thing
meis
but now I think it is better to do it with inheritance
Anonymous
But I don't know how to implement any idea!!!
BinaryByter
BinaryByter
https://stackoverflow.com/questions/44521991/type-trait-to-get-element-type-of-stdarray-or-c-style-array
meis
Mihail
Anonymous
Ok
Anonymous
If I want to generate subarray of 1,2,3,4,5
Anonymous
Then first I will make array of size 1
Anonymous
And add 1in that array
BinaryByter
make an array of size 5
BinaryByter
that way you don't have reallocations
Anonymous
Then I delete 1 and add 2 in that array and so on ..
Mihail
Why?
Mihail
Like wdym generate sub array?
BinaryByter
BinaryByter
Anonymous
Otherwise I m getting tle
Mihail
Ok but what are you trying to do
klimi
Mihail
So you have the array 1,2,3,4,5?
Mihail
What's the end result?
BinaryByter
why not?
Mihail
If you can't share it describe it better
BinaryByter
yes
Mihail
So you have the array 1,2,3,4,5?
Mihail
What's the end result?
Ибраги́м
https://www.reddit.com/r/cpp/comments/azt391/lambdas_from_c11_to_c20_part_2/?utm_source=reddit-android
Ибраги́м
https://www.youtube.com/watch?v=_4D1y_KyEzA
BinaryByter
and you are afloat as a float
Mihail
Why is that?
Anonymous
👍👍
Dima
Welcome!
Anonymous
😇