Anonymous
Can cppdroid make best mate with me?
I basically use online code table ( hackearth ide), it's very easy to use and good
Anonymous
😂😂
Wim
Ohcrap they became microfocus too
Rishabhdeep
Hii
I_Interface
Hii
Welcome
Rishabhdeep
Thanks
Rishabhdeep
any tasks i can do?
I_Interface
any tasks i can do?
Read the rules
Rishabhdeep
Thanks
I_Interface
Thanks
#ot for free speaking
BinaryByter
Hey Amal 😊😏
Jobin
But why
Dima
But why
no advertisement
Siddharth Sahoo
Hey there, Can somebody advice me what should I do. From last 6 months whatever I am doing I am not able to continue it any longer than 6-7 days. 6 months ago ,I was in a relationship but the girl broke my heart and ever since I am not able to do anything.I see so many failures but no urge to do or feel anything.6 months ago I was very passionate about everything ,more importantly I was very aimbitious.But now I want to grow as a person so that I can survive. I feel very dejacted and less loved. From last 6 months I am battling within my mind and trying to accept myself as a person.But it is becoming more like a dream which can't get fullfilled. A strange emptiness if getting me over.The emptiness which is very hard to understand.I am becoming more unpredictable to myself these days. It's like I don't know who I am anymore.I am not even a quater of the boy I used to know.Can anyone care to spare some time to advice me or walk me through my dakest time. Inbox messages are welcomed.God bless all.
Siddharth Sahoo
Thanks. Sorry.
Aiman
excuse me, hi , i wanna, how can i make file using same name but, with int , for the example like, filename1.txt , filename2.txt. btw im using same ofstream declaration
Aiman
ahh no, i could not explain it 😫
Dima
concat to a filename then
Aiman
Name with int lols
how can i named it?? outfile.open(int".txt") ??
Aiman
check if that file exists and increment index
if i initialize the char variable with 1, can i increment it to 2 ??
Mihail
how can i named it?? outfile.open(int".txt") ??
that won't work, but you could use std::to_string to convert the integer and if the filename is a string append it to that
Foxner
Hi. Does anyone here have experience with CUDA programming?
Foxner
Hey!
Hello!
Dima
lol
🐰🐾 سمیه
https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_5:Exercise_15
🐰🐾 سمیه
https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_5:Exercise_15
source code of the programm I'm talking about
Anonymous
Hello all I have some ip camera of xiaomi based buildroot os ( linux ) I try to compile c file in the camera but of course she has not cmake or gcc or make. Do you have ideas ? I can connect the camera with telnet / ftp
Anonymous
Hi everyone
Hachiman
Hello guys!
Anonymous
can anyone suggest me books for build logics in c++?
BinaryByter
unless you manage to get a port of clang onto it
Anonymous
Is there any reason people not using strlcat, strlcpy etc over old strcpy etc? (While doing "she" code) Why not use safe practices?
Anonymous
http://www-it.desy.de/cgi-bin/man-cgi?strlcpy+3
Anonymous
C++ std::string is decent already
BinaryByter
C++ std::string is decent already
pascal strings have less overhead so thats nice (they are very restriced tho)
Anonymous
Lol...
Anonymous
I am actually doing a test against busybox yes vs GNU yes...
Anonymous
I wonder why and how GNU yes is way faster than busybox yes
Anonymous
Maybe buffers
Anonymous
b17wise@eula47 ~ % cat yes.c #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char yes[2] = {'y', '\n'}; char *buf = malloc(8192); int buff = 0; while (buff < 8192) { memcpy(buf+buff, yes, 2); buff += 2; } while(fwrite(1, buf, 8192)); return 1; }
BinaryByter
yea
Anonymous
This one reach upto 6GBps but GNU still faster
BinaryByter
they do what std::cout does
Anonymous
by how much?
4GBps gaps
Anonymous
Busybox is snail here.. 190MBps
BinaryByter
Whoa
BinaryByter
got access to both codes?
Anonymous
Do a yes| pv >/dev/null
Anonymous
got access to both codes?
Yes.. and trying to overtake GNU... but I cant
Anonymous
GNU goes upto 15GBps
Anonymous
Sure..rest of GNU tools are just snail too... except "Yes" utility. For example GNU if is just pain
Anonymous
Pless send c++ book pdf I needed alot of
BinaryByter
Yes.. and trying to overtake GNU... but I cant
try asm and dont use fwrite since it has securities for actual files
Anonymous
I just dont want to ruin a day xD
Anonymous
Pless send c++ book pdf I needed alot of
Read online guides or buy a real book.
Ludovic 'Archivist'
oh right that worsens runtimr too
Well, the GNU one uses every trick on the book tho
BinaryByter
Dunno, never looked at its source
Anonymous
Use write, not fwrite and you may be a bit better
I am not quite sure why I used fwrite xD
Anonymous
I wanted to use write