Adeyemo
are you banned in google search?
That's not nice a for a newbie like me. Don't be a bully. 😂😂
Victor
That's not nice a for a newbie like me. Don't be a bully. 😂😂
You not reading the rules, why I should be nice with you?
Adeyemo
Still be a good big brother, okay
Adeyemo
It's nice to be nice
Adeyemo
Correct in love
Adeyemo
https://pastebin.pl/view/a213eb82
Adeyemo
You not reading the rules, why I should be nice with you?
Now I've done the correct thing, I hope you'll be nice enough to help
...
Now I've done the correct thing, I hope you'll be nice enough to help
use asio asio will allow you to write network code on every operating system as well. asio will allow you to write shorter code and do more
...
It is available in versions above C++ 17 and in the boost library.
...
https://pastebin.pl/view/a213eb82
void* value = (void*)clientSocket->acceptedSocketFD eate(&id;, NULL,receiveAndPrintIncomingRequest,value);
Adeyemo
Okay, I will check that out, I am just learning. What I am trying to allow multiple clients connect to the server, that's why I am using thread. The app works well with one client connection. The issue I am currently having is passing the file descriptor of the client to the routine function
Adeyemo
The fd is int type but the routine arg is expecting void*
...
Okay let me try that
the void* value is int,float,bool,short, etc. it can be used as such, so it is normal to request the void* value
Adeyemo
Okay
Adeyemo
Thank you, That worked
...
Thank you, That worked
https://www.learncpp.com/cpp-tutorial/value-categories-lvalues-and-rvalues/
...
Thank you, That worked
you can change (the value) in the form of for example: double x = 1.0; int y =(int)x; printf(y); writes 1 to the screen
Realist88
hi how to mod this two array in c    //a=0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f8179 const uint64_t  a[4] =  {0x59f2815b16f81798, 0x029bfcdb2dce28d9, 0x55a06295ce870b07, 0x79be667ef9dcbbac};   // b=0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 const uint64_t  b[4] =  {0x9c47d08ffb10d4b8, 0xfd17b448a6855419, 0x5da4fbfc0e1108a8, 0x483ada7726a3c465}; // result = a%b; uint64_t  result[4];
Bala
I need to c++ support
ale
How do I manage to overcome the cin error that occours when I digit the comma "," instead of the dot "." when digiting the input of a random float with the cin?
ale
I noticed that it ignores all the next code normally, while it returns some random errors although I put a cin . fail() condition
Anonymous
How do I manage to overcome the cin error that occours when I digit the comma "," instead of the dot "." when digiting the input of a random float with the cin?
Your question is not clear. Can you explain it with an example of the input you are giving and some sample code? If your question is about how you can use comma as a decimal point instead of the '.' character for IO then you can do it by deriving from numpunct class and setting decimal_point and then imbuing it in your locale. https://wandbox.org/permlink/aSGhUnIQsmE8ZNUW
Realist88
Anonymous
i am not i am trying to compile wasm so there is no support for gmplib
Well then peasant's algorithm is a good choice. You need to implement things like shifting, adding yourself for a large number represented by an array. Nothing difficult. Look it up on Google
Realist88
https://raw.githubusercontent.com/thearthouse/bign/main/bvn.c
Realist88
gcc -Wall -Wno-unused-function -O2 --std=c99 -march=native -I ./ bvn.c -o bvn && ./bvn
Rose
User Habd has 1/2 warnings; be careful! Reason: don't click every blue text you see 😐
Dima
Lol good hunting
Havoc
Hello
Havoc
when I open empty project in visual studio
Havoc
my "include" function it self is underlined red
Havoc
even if I paste a libary file in the same directory, like standard library etc it still doesn't work
ale
try use string as cin input and then replace , with . and convert it to float
yes I thought about this solution but I wrote a code where I need that the cin has to take a float. I'm gonna attach the code
ale
#res
Rose
#res
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
ale
how can I attach the code with hastebin? the bot delets it
ale
yes I thought about this solution but I wrote a code where I need that the cin has to take a float. I'm gonna attach the code
Oh I see that it is due to the fact that I joined in less than 24 h, so I have to wait to send the code unfortunately
Havoc
Who uses visual stduio it self
Havoc
studio here* auto correct
zahra
Has anyone worked with cgal polyhedron demo?
Rose
Has anyone worked with cgal polyhedron demo?
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Rose
I want to implement the skeleton of 3D shapes, can anyone help me with the help of this link https://doc.cgal.org/latest/Surface_mesh_skeletonization/index.html
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Simple Sorcerer
Hi all. how to specify the folder with .o files when linking an executable ?
Simple Sorcerer
gcc -o main $(PATH_TO_OBJ) file1.o file2.o file3.o file4.o
Simple Sorcerer
-l
no, it is a library
Danya🔥
But I suggest you just using cmake
Danya🔥
no, it is a library
Make everything you want to link libraries
Danya🔥
Use linker directly
Simple Sorcerer
Okay, I'll give it a try.
Danya🔥
https://t.me/cpp20programming/238 This courses has a lecture on toolchain components
Danya🔥
And this course is only about toolchain https://youtube.com/playlist?list=PL3BR09unfgchnggx7IJuSU57mxjMhrSaq&si=51SXhLh-f7E0N397
Danya🔥
I suggest you to watch both courses fully
Simple Sorcerer
-l
no
Simple Sorcerer
-llibrary -l library
Simple Sorcerer
you're confused.
Danya🔥
Simple Sorcerer
it's only used for libraries
Danya🔥
No one needs to link object files by themselves
Simple Sorcerer
Simple Sorcerer
write a simple code for compilation that understands
Simple Sorcerer
I use: gcc -c main.c -o main.o gcc -o main main.o
Simple Sorcerer
this is the simplest example