数学の恋人
Yep I'm in C++
BinaryByter
my answer was hasted
BinaryByter
I don't think that there are string ops that do that 😂
BinaryByter
would be nice to use rep on non-string ops
BinaryByter
😢
BinaryByter
No
BinaryByter
you implied that theres a better operation than a loop to do it
Mihail
I said that looping to increment every element of an array is likely unnecessary
Mihail
And that you could probably design it in such way where that won't be necessary
Mihail
Should probably try reading twice next time
🐰🐾 سمیه
http://www.learntosolveit.com/cprogramming/Ex_5.10_exprcmd.html
🐰🐾 سمیه
http://www.learntosolveit.com/cprogramming/Ex_5.10_exprcmd.html
hi, everything is ok with this program, but somehow it doesn't recognize mulitiplication command (*), I couldn't figure out the reason because everything is correctrly implemented for this command. could you please tell me the reason?
Anonymous
Hi guys i've a problem anyone can help me? (The problem its about multithreading and sockets)
Anonymous
Ah sorry, the problem is that: the client connects to the server and for 2 times the connection is successful if I try a third time the client crashes
Anonymous
Hi!
RJ
Hello
Anonymous
Write a c program for special symbol???
Leonardo
hello someone can explain to me how to do a cycle to read from the beginning to the end a file.txt (in input) c ++. thank you.
Anonymous
What
BinaryByter
Anonymous
^
???
Anonymous
No, really, what?
Ибраги́м
https://www.reddit.com/r/cpp/comments/boxxpl/c_coroutines_resources/?utm_medium=android_app&utm_source=share
Ибраги́м
Disagree
Ah, someone who's NOT in the dark.
Dima
Lol
Pavel
Disagree
About not being against C? Or about C is more low-level than C++?
🐰🐾 سمیه
BinaryByter
Sure - it wraps a lot of the low level stuff of C
BinaryByter
but you can be just as "low level" in both
Pavel
Well, C++ introduce more high level concepts on the level of the language. Sure you can write in OOP style using C, or in pure procedural style in C++.
BinaryByter
Well, C++ introduce more high level concepts on the level of the language. Sure you can write in OOP style using C, or in pure procedural style in C++.
>Well, C++ introduce more high level concepts on the level of the language. Sure, but that doesnt imply thats its somehow less "low level" than C
BinaryByter
neither are low level btw
BinaryByter
they are... medium rare level lol
🐰🐾 سمیه
why would it be?
Because I think of it as next version of C, and besides it just has two plus more than C😂
MᏫᎻᎯᎷᎷᎬᎠ
I thought Cpp is just a bit higher level than C🤔
Both You can choose the level of abstraction in C++ Which means you can do low or high level whatever you like And i think the concept of zero-overhead abstraction came from it + C++ is a superset of C
Pavel
neither are low level btw
Well, if we got that pedantic, then I don't know how to express that I wanted to say.
BinaryByter
Both You can choose the level of abstraction in C++ Which means you can do low or high level whatever you like And i think the concept of zero-overhead abstraction came from it + C++ is a superset of C
C++ is not a superset of C, stop it with the expressions that sound fancy but were just said by one marketer who wanted to get some attention... try compiling int *a = malloc(1000); in C++
Anonymous
no
Why?
BinaryByter
(its good that it doesnt work, btw)
BinaryByter
Why?
it works in C
Anonymous
it works in C
In C, sure
Pavel
There are some things that are different in C++. It is not just C with classes anymore.
Anonymous
Useless, but it works
Anonymous
But why not in C++?
BinaryByter
Unless if I used reinterpret_cast
this disproves that C++ is a superset of C
BinaryByter
But why not in C++?
Pointers are typed in C++
BinaryByter
MᏫᎻᎯᎷᎷᎬᎠ
this disproves that C++ is a superset of C
Well Can C do it?!! int* a = malloc(100);
BinaryByter
pointers are typeless in C
MᏫᎻᎯᎷᎷᎬᎠ
Hold on Let me check it
Anonymous
why useless?
I don't find any uses to a 1000 bytes memory allocation
Pavel
I don't find any uses to a 1000 bytes memory allocation
Well, you can use it as a memory pool, for example
Pavel
To store some data in, without additional allocations
Anonymous
thats an array of 1000/8 ints
That is, 1000 bytes?
Anonymous
yes
Still, i don't find any uses
BinaryByter
Still, i don't find any uses
I am currently using arrays of size 10000 for pulse code modulation
BinaryByter
for example, audio source samples
BinaryByter
having a huge array for them is a must
BinaryByter
unless you only need one sample
BinaryByter
enjoy your FT over one sample :D
BinaryByter
pretty sure that its going to be epic