Mat
How much expert?
Mat
7070 members!
Anonymous
What for ? :D
Elnee
I'll publish one example of meson configuration to build a simple library and linked it to GUI on gtkmm. Library of RLE and LZ77 algorithms for educational purposes. That program can save and open encoded files or plain text to encode. Only text format. And another one will be an example of using cairomm for 3D graphic. How to describe 3D object. How to write class that will create orthographic projections of that object (including axonometric). I'm currently working on it.
Elnee
No userbots here
Mat
What?
CrypVitic
Thank you...reading
Anonymous
Hello
Anonymous
does anyone know a function in iostream which changes float to char array? for example I have 23.7......I want to send that float and an empty char array, and then i want the array to be like arr[5]{'2','3','.','7',0}
Anonymous
I am not allowed to use string for my project. It is my final project. And it works perfectly until someone enters float numbers. because I have a funtion that changes integers to char arrays and write them into text files. I need float changer
Prometheus
What if you filter out floats?
Anonymous
Anonymous
Make them integer?
Prometheus
Round up or have it check what the input is. If it’s a float discard it and tell them they cannot use floats.
Anonymous
Round up or have it check what the input is. If it’s a float discard it and tell them they cannot use floats.
Yeah, an option. But I like to face a problem rather than running away. I Its kind of an easy trick to solve the problem 😂
Anonymous
Id listen to maxi than lol
Thank you for your attention and help bro.
BinaryByter
perverted hack you are proposing, mister olli
BinaryByter
I like it :D
Prometheus
Would his teacher like it though lol
BinaryByter
no xD
BinaryByter
+ its kinda inefficient
Prometheus
It’s a school project. Inefficiency doesn’t matter lol.
BinaryByter
sorry, I forgot that
BinaryByter
xD
BinaryByter
the first test in informatics lessons will be awkward if the teacher doesnt specify which language to use
olli
+ its kinda inefficient
what's inefficient?
BinaryByter
You want him to printf the float and read the buffer or something right?
BinaryByter
its more instructions than really needed
olli
s(n)printf prints into a char array...
BinaryByter
oh I wasnt aware of that funciton
BinaryByter
see Andrew not even god knows everything
Prometheus
oh I wasnt aware of that funciton
Don’t feel bad. I had no idea either. I was making up stuff I figured it would do in my head.
Prometheus
see Andrew not even god knows everything
I do though. I just forget sometimes.
BinaryByter
xD
Razaa
Hey what will be the logic of finding maximum number between three numbers
Razaa
Stuck here
olli
Hey what will be the logic of finding maximum number between three numbers
Find the bigger one between the first two, then compare it to the third one. You could also use std::max Please read the rules regarding pictures of code
Swaroop
What should be the output
Indra
Hi
Swaroop
Hello
Anonymous
Hello guys
Nehal
Why this message appears on telegram '' click here to prove you're human'' and how by just clicking on it, it verify that.?
Nehal
Am i allowed to ask this type of questions?
Nehal
These*
Swaroop
Just run it
I got the output as 212 254 But how ?
klimi
I got the output as 212 254 But how ?
Because you wrote that code
klimi
I got the output as 212 254 But how ?
But I think you are grabbing some junk ram
olli
I got the output as 212 254 But how ?
It depends on your arch, to be more precise, on the endianess and on the signed integer encoding of it. On your computer negative signed numbers are encoded using 2's complement and the number in hex is 0xFFFFFED4 Casting to an unsigned char pointer gives a "byte view", since your computer is little endian the order of bytes is 0xD4 0xFE 0xFF 0xFF. Accessing the first two gives you the numbers 212 and 254
olli
Thanks for the information
sure, you're welcome (:
Anonymous
Anonymous
What it is?
klimi
What it is?
Its a project they have to do
Anonymous
Yes
Anonymous
I need coding it
Anonymous
C Programming
Hayk
I've just created a program like this, without gui, for practising
Hayk
C Programming
Ahh, I used OOP
Anonymous
Hayk
Oop means
I used c++.
Anonymous
klimi
/warn You give me coding it
Anonymous
Its a project they have to do
Looks like my messanger
Anonymous
Which I am making
Ибраги́м
https://github.com/intoli/exodus
Anonymous
Why this channel is full of warnings?😒
olli
Why this channel is full of warnings?😒
Because people either can't read or don't follow the rules.
BinaryByter
wat?