BinaryByter
I even wrote some code for that in the kernel I code
BinaryByter
but I don't generally use it
Anonymous
BinaryByter
because its error prone
Anonymous
but i think that you studied more than a bit of C to do that
BinaryByter
Nope
BinaryByter
I studied C++
BinaryByter
as said: you can always go back
Anonymous
but i tried C++
Anonymous
i stopped at functions
Anonymous
because they were so boring
BinaryByter
they are the same in C
Anonymous
the fun fact is that they are THE SAME thing as C functions
Anonymous
BinaryByter
so why aren't they boring in C?
Anonymous
but the C standard library is funnier
BinaryByter
yea
BinaryByter
its very funny
BinaryByter
funny to a point where its sad
Anonymous
its very funny
for me, yes
Anonymous
i mean
Anonymous
it's interesting to manipulate strings on my own
BinaryByter
oh well, you will find out once you accidentally pass the wrong type to a printf in a seldomly seen output line 😅
Francisco
as said: you can always go back
That's not necessary true. Low level manipulation is way harder when you come from C++
BinaryByter
it's interesting to manipulate strings on my own
you don't actually manipulate them on your own
BinaryByter
just learning the interfaces doesnt make you a good C++ coder
Anonymous
you don't actually manipulate them on your own
i don't implement how strings are defined, of course
Anonymous
i mean
Anonymous
treating strings as char arrays is funnier than just using a type
Pavel
there is a lot of bad!
I don't see a problem, it's good to shoot your leg sometimes. To know why something is bad not only because someone told it.
Francisco
not if you learn C++ WELL
There's stuff harder to do C than in C++
klimi
——
Francisco
treating strings as char arrays is funnier than just using a type
Well, while I understand your joy with that, I think I'd spend more time debugging rather than programming
Anonymous
I read all this last 200 messaages, arguments about C,c++, and operating systems......Actually i got scared now 😂 I just create console applications with functions ,source files ,header files....still didnt learn classes yet......and my apps work with any compilers even online ones.....i get scared when I read your problems with os s linux and bla bla 😂😂god bless programmers
BinaryByter
xD
Anonymous
I hope those problems become yours xD
Its funny but I also hope I ll have those problems😂
Anonymous
Szia guys! Who uses c++ to program *myrio* here?
Dima
What the..
Hl
Hello friends I have a task where I have to calculate a set of fractions numbers obtained through an array of structures and a structure contains a counter and a denominatorand I have to print the amount in such a way: if the number is 13/12 then the answer is 1 and 1/12 Anyone have an idea?
klimi
do it?
Hl
I'm stuck only in the final calculation
Anonymous
I Have a struct. And I created dynamic struct array. the size is 10. Now I have a function to delete any of them, for example third one. I use a loop and arr[i]=arr[i+1]. Now I need to delete the last one, but I have an error.
Anonymous
Anonymous
any suggestions?
Rahul
/cbook
Anonymous
/cbook
Anonymous
/cbook
professor
/cbook
Anonymous
/cbook
Anonymous
whaaaats happeninnng 😱
Anonymous
Hello
Anonymous
Good day
klimi
Anonymous
I need help
klimi
I need help too
klimi
I need help
Any way what's the problem?
klimi
I need help
Well you can try advertising the website somewhere
Anonymous
Dont have money
klimi
Then you can try ask someone for cooperation
klimi
If they do a shout out you would put their ad on the forum ig
Anonymous
Hmm
Anonymous
Like
olli
.
This heavily depends on your compiler and flags, since optimizations may alter the instructions and their memory addresses.
olli
The same code it works under dev c++ perfectly , but not under visual c++
Yes, because the code generated by MSVC is different
professor
How can I have the same behavior?
professor
I fix the compatibility code from dev to visual , but it always get 1 and 1
📕Editar📘
olli
How can I have the same behavior?
look at the generated assembly, although this always results in a compiler dependent and fragile solution. Instead you could think of having an executable page with the code you want to execute and replace the original implementation with a jump to your assembly.