BinaryByter
I m not getting it,.
What do you expect scanf to do?
Soma
What do you expect scanf to do?
Get the input ..but it gets till a white space .... For that other things like gets is used...
BinaryByter
how to parse recursively🙄
I'll show you 😉
BinaryByter
its very easy
BinaryByter
so it reads until the first space
BinaryByter
what does it fill into the array?
Soma
what does it fill into the array?
The thing that it had parsed... Like in first case till hacker ....cause after that there is a white space
Anonymous
sure
Anonymous
😁
Soma
In second case what does happen???
BinaryByter
In second case what does happen???
it fills the data into the array
BinaryByter
from point 0
Soma
Yeah...so how "have \0kers got into it...
BinaryByter
yea
Dima
Anonymous
yea
Hy cat
BinaryByter
yea, we do
Soma
BinaryByter
we have that string in the array
Soma
we have that string in the array
String content is \0\0hackers\0\0\0\0\0\0 like this ..... now we are again inputiig "hackers have put us on hit list" then how have \0kers is getting ...
BinaryByter
its because the array wasnt emptied after filling it
BinaryByter
🙄
Still coding 😉
Anonymous
oh okie
Anonymous
😍😁
Anonymous
Anonymous
Hy yeah
BinaryByter
BinaryByter
oh okie
@HimanshuSharma07
BinaryByter
I am well aware that it wont do * before +
BinaryByter
but implementing that is dirt simple
Anonymous
yes reading
BinaryByter
also notice that it expects the expressio to be terminated by "<space>;"
BinaryByter
thats because I was too lazy to do it well
Dima
Delete this
Dima
my eyes hurt 😧
BinaryByter
lol
BinaryByter
why though?
Dima
if it was built with rvo then it’s okay ¯\_(ツ)_/¯
BinaryByter
wat?
Dima
BinaryByter
I should use char*, I know
Dima
revolvero
BinaryByter
rvo?
return value optimization
Fabi
Does someone have good resources to encode a set of images into H.264 and stream online (Maybe using RTP protocol or something else)? I'm capturing those images directly using DirectX9 API.
Anonymous
its a chain of function calling each other i loved this approach 😍
BinaryByter
because I don't have to store everything
BinaryByter
btw: you know the rule of * before +, right?
BinaryByter
why don't you try doing that in my code?
BinaryByter
(I didnt implement it, but it should be a change of 4-5 lines of code)
Anonymous
bodmas
Anonymous
sure will try 😁
Foxner
Hey guys my problem is something different which I really want to discuss with you guys,it may not be very big problem for you but I really need help: Problem:I learn new things everyday related to C and C++ and in general we all know that our brain can't remember each and every new thing we learn everyday ,So as I learn new things I don't get much time to make notes of each and every new thing I learn ,and by the period of time I start forgetting new things I learnt in my life which could be very important to solve a real life problem and I have to go through each and everything again. I want some help regarding this problem from those who are able to cope up with these things thanks in advance.
I've been programming for 10 years and I still constantly need to look up library documentation and sometimes even language syntax. Once I look up something, I do usually remember it until I finish the project that I'm working on, at which point I often forget it again. :P There are a few snippets of code that I have almost in my muscle memory, but that's because I wrote those same pieces of code so many times, that my brain simply remembered them. What matters though (in my opinion at least) is to remember what you need, how fast you are able to find it, and to remember where to look for it.
Anonymous
hey maxi why u used std::string exp;?
BinaryByter
BinaryByter
I did an oopsie
BinaryByter
its not required
Anonymous
okie
BinaryByter
please remove it!
Anonymous
yup
Anonymous
hey guyss
Anonymous
nice to meet you :)
Anonymous
I'm new here
klimi
HEYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYyy
klimi
welcome new here
Anonymous
Does someone know in order witch languages I should learn after the html and css?
Dima
Welcome! 0) You should forget html/css
I_Interface
Abdulmueez
Hello, I'm Abdulmueez I'm sort of a newbie with programming, currently trying to learn to work with Qt but been having a lot of challenges, Hoping to use this platform as a mentoring one.