klimi
im not a slave
klimi
i hate humans....
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
klimi
this is like cipher on another level
Tony
So many questions!
klimi
i think i know what is happening
klimi
Encryption?
some stack thing
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
Anonymous
now i am looking how to know if value is string or number ;D
these are strings: char * const char * char [] these are numbers: int float ...
klimi
okay
klimi
how to know if string is number
Anonymous
klimi
"123"
klimi
atoi("123") = 123
Nameful
how to know if string is number
Do you mean if string represents a number?
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
Anonymous
Well... you should learn other languages but if you really want one cpuld go down that road 😅
MilkBeforeCereal
isdigit i found in ctype.h
but you wanted more than one char ig?
klimi
isnumber
doesnt exist?
klimi
Nameful
doesnt exist?
Maybe I remember it incorrectly
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
klimi
kay its done
klimi
time to sleep, good night
MilkBeforeCereal
time to sleep, good night
wut'd you use
MilkBeforeCereal
klimi
i did my assigments i think i am done for today
MilkBeforeCereal
what
for string to int
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
C is harder than i thought
Yeah, it's pretty messy... It's really bothersome to me...
NXiss7
It's messy, you don't need that much of control everywhere, and with power comes GREAT responsibility...
klimi
Oyasumi...
おやすみなさい
NXiss7
NXiss7
おやすみなさい
おやすみなさい。。。 またアドミンから怒られる前に日本語止めます 😁😁😁
NXiss7
Yeah, just like that
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
GCC since version 9. MSVC no idea
msvc since vs 2017 15.7
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