klimi
im not a slave
klimi
i hate humans....
Anonymous
klimi
i am not
klimi
i cry
Anonymous
You can do low level stuff as well like drivers etc. It pretty much can do everything you want and i would argue modern c++ is very high level, even tho. It is native and can be used for low level stuff it's a high level language that gives you the freedom to optimize or alter things at a low level.
But even tho. it is high level due to the freedom it gives you, you still have to know what you are doing and set things up correctly.
Actually why wouldnt you c++? Although it's an alrounder, it's actually pretty good at everything and is more maintained than c that is for sure. There are modern c versions but most people still use ansi c, for c++ the new version 20 just dropped and will be available in most compilers soon. And the features there actually get adopted pretty "fast" id say.
Tony
Howdy, not here to ask questions, just to talk with other devs occasionally.
klimi
@Bigconfig
klimi
C is harder than i thought
klimi
~/caesar/ $ ./caesar 1
plaintext: abcd
ciphertext: zabc
~/caesar/ $ ./caesar 1
plaintext: abcd
ciphertext: jklm
~/caesar/ $ ./caesar 1
plaintext: abcd
ciphertext: LMNO
Tony
klimi
this is like cipher on another level
Tony
So many questions!
klimi
i think i know what is happening
Anonymous
Anonymous
klimi
but if i would not to create new array on stack
klimi
nvm!
Anonymous
C is harder than i thought
There are so many undefined behaviors in C which your code MUST refuse to trap in such undefined behaviors
klimi
i fixed that error
klimi
now i am looking how to know if value is string or number ;D
klimi
okay
klimi
how to know if string is number
Anonymous
klimi
"123"
klimi
atoi("123") = 123
klimi
yes
MilkBeforeCereal
klimi
isdigit i found in ctype.h
MilkBeforeCereal
strtoi() ?
o wait i think only strtol ( string to long int ) exists
klimi
yep
klimi
now it crashes everytime
klimi
thats handy
Nameful
Anonymous
Well... you should learn other languages but if you really want one cpuld go down that road 😅
klimi
klimi
klimi
i will do it with this
klimi
this could work
MilkBeforeCereal
Tried atoi()?
klimi
i use that
Mat
Because there are superior languages 🤷♂
Anonymous
C and C++ have so many undefined behaviors which programmers MUST refuse; so it is not good for careless programmers
gallo
There isn't a superior language, there are things that are better to do with a language X and things that are better to do with a language Y
gallo
Sorry for my english ahaha
NXiss7
klimi
kay its done
klimi
time to sleep, good night
MilkBeforeCereal
MilkBeforeCereal
klimi
klimi
i did my assigments i think i am done for today
MilkBeforeCereal
MilkBeforeCereal
klimi
atoi
MilkBeforeCereal
ah nice
NXiss7
Yeah, fuck MS, I'm not a slave
💪😁👌
NXiss7
i cry
Don't...
It's not worth it...
😕
klimi
well its my work
gallo
Who says that C++ can do anything with the max efficiency, hasn't desire to learn other languages
NXiss7
It's messy, you don't need that much of control everywhere, and with power comes GREAT responsibility...
NXiss7
klimi
NXiss7
NXiss7
おやすみなさい
おやすみなさい。。。
またアドミンから怒られる前に日本語止めます
😁😁😁
NXiss7
Yeah, just like that
klimi
NXiss7
You don't have dangling pointers in Java....
No need to mess with copy elision...
Ибраги́м
Francisco
g++ -v ?
GCC since version 9. MSVC no idea
Stanislav
Stanislav
~1 year before gcc 9
Francisco
Yep, I hope the gcc team gets rid of the TBB dependencie
And no idea when llvm's libc++ will implement it
Stanislav
strange