Anonymous
is this valid //linear search auto start = high_resolution_clock::now(); linearsearch(a,key); auto stop = high_resolution_clock::now(); ltimex = duration_cast<microseconds>(stop - start).count(); lavgtime = lavgtime + ltimex; // //binary search auto bstart = high_resolution_clock::now(); binarysearch(a,0, i,key); auto bstop = high_resolution_clock::now(); btimex = duration_cast<microseconds>(bstop - bstart).count(); bavgtime = bavgtime + btimex; using two clocks in cpp
Anonymous
Can you please look through my code, I cannot figure out what the problem is...
Anonymous
Anonymous
Code too long
Anonymous
Please enable external link support
Anonymous
https://pastebin.pl/view/8fb5da5f
Anonymous
Thanks
Anonymous
https://pastebin.pl/view/8fb5da5f
I do not like this. Use paste.ubuntu.com
Dima
Anonymous
It got deleted
Mar!o
Anonymous
Please send it 😅
Anonymous
It got deleted
admin magic https://paste.ubuntu.com/p/5yTKPh9dYc/
Anonymous
admin magic https://paste.ubuntu.com/p/5yTKPh9dYc/
Can you please look through my code, I cannot figure out what the problem is... It's taking so long to compile
Anonymous
I think you need to pass references of vector to functions, not the vector itself
Anonymous
in the swap or everywhere
Anonymous
In sort functions
Anonymous
okay okay
Anonymous
vector<int>& a instead of vector<int>a
Anonymous
Thanks :)
Anonymous
can any one pls provide some basics of C++ materials
Anonymous
C and C++ materials comparively
Anonymous
tq rose
Anonymous
tq rose
🤦‍♂
Anonymous
who sent me
Anonymous
for them
Anonymous
iam thankful to you
Anonymous
kk now i understood the rules
klimi
Nouveau is pretty shitty. Use Nvidia binary driver.
Nouveau is pretty good, binary driver from nvidia is shit
Mat
I am using third party graphics software and sometimes it is very irritating.
You don't need to. Just use the nvidia package from your distribution
klimi
Also offtopic but pretty interesting topic to me
Mat
Yeah, OT
klimi
XD
klimi
#ot come over here
NXiss7
Nouveau is pretty good, binary driver from nvidia is shit
I don't use it for daily driver. I don't like prop too but nouveau can't run GPU ser than minimal bios speed.
404
I want to create tic tac toe game in C
404
Guide me plz
Mat
No... ? Start writing the rules and implement them
404
I tried but didn't got the desired output
Mat
#howtoask
Anonymous
can i get materials on c
Dima
#googleit
Anonymous
Hi
klimi
Hi
hi
Joesph
hi
That Newbie title needs to go now😂😂
Joesph
why?
Yo still newbie?
klimi
Yo still newbie?
idk 2 years now ig
klimi
probably
klimi
i have that tag just... few months tho
Anonymous
guys how do i get this onein looping structure , * * ****
Brown
#include <stdio.h> int main() { char* s = "asd"; printf("%s\n", s); printf("%p\n", s); printf("%p\n", &s); }
Brown
asd 0x55657684d004 0x7fff1c159150
Can somebody tell me how this works?
Brown
's' supposed to be a pointer right but how does it shows address for %p ?
Jussi
Other is pointer, other is a pointer to that pointer
Jussi
Yea
Manoj kumar
What's malloc return void? How it's allocated memory.
Jussi
It's a void pointer
Manoj kumar
If there any way to printf this void point.
Francisco
If there any way to printf this void point.
It's just a memory direction. To print the thing it points to, the best thing you can do is cast the pointer to the desired pointer type and then dereference the pointer
Manoj kumar
Okay thanks
Anonymous
Hello good day to you all.
Dima
Welcome
Anonymous
Anonymous
Please I wish to find out when someone says he need his site with SEO what does he mean? And what's the benefit please?