Bh@iR@m
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Sleeves
Hey guys any tips on converting powershell script to c++ ?
Rose
Heya :) PM me if you have any questions on how to use me!
sneut
I want to build an apk app.. please how do I start.. I have been following this group for a while and I believe in the experts in here. Please help me out. I learn fast.
Danial
Can anybody help me for the use of git?!
Danial
I realy need a proffetionsl help
Danial
Can anybody help me for the use of git?!
Is there anybody else for help?!
Danya🔥
I realy need a proffetionsl help
Go to a job market then
Jaime
Can I do the same thing with SDL2 that gdiplus does?
Jaime
gdiplus can create a gui and overlay windows of some games in Fullscreen, is SDL2 capable of doing the same?
M
Can anyone help me with this question The chance of you taking a wicket in one ball is 'X' percent. You want to take two wickets because one isn't enough. Thankfully, there is a pity system: if you are not able to take wicket in 'Y - 1' consecutive balls, you will get it on your 'Y-th' ball. Return the expected number of balls you need to take two wickets. Note: If the expected number has a fractional part, you must return the smallest integer greater than the expected number, as there are no fractional balls. test case input 2 25 4 100 90 output 6 2 Explanation Of Sample Input 1 : First test case :- There are many possible scenarios. Here are some of them: 1. You threw '8' balls: you fail six 25% chances and took wicket twice via pity. 2. You threw '2' balls: you succeed two 25% chances and took wicket twice without triggering pity. 3. You threw '4' balls: you succeed two out of four 25% chances and took wicket twice without triggering pity. It can be shown that the expected number of balls is '5.46875'. Thus, the answer is '6'. Second test case :- The pity system is unimportant in this case. You threw '2' balls, and because 'X = 100', both are guaranteed to take a wicket. Thus, the answer is '2'.
M
No, its just a question which my friend got in a coding round
Danya🔥
No, its just a question which my friend got in a coding round
So, do you want someone to write the solution for you?
Chat Boss
Владислав Белоусов sent a huge message, it has been re-uploaded as a file Hello. boost::pfr::structure_to_tuple(value) is giving you an error: Copy code error: static as..
M
So, do you want someone to write the solution for you?
No, just wanna know the approach how to do it, i know that it uses the concept of expected probability, but still unable to solve it
BB
Does anyone know omp?
Rose
Does anyone know omp?
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.
BB
I have written a merge sort algorithm and I want it to be executed using omp. We enter random numbers in the program. In raw form, the program answers correctly, but when omp is used, the numbers are not random!
Danya🔥
And please format it before sending
Danya🔥
Chat Boss
BB sent a code, it has been re-uploaded as a file
BB
I tried a lot to make it parallel(omp), but due to the little knowledge I have, I couldn't do anything.
Danya🔥
I tried a lot to make it parallel(omp), but due to the little knowledge I have, I couldn't do anything.
You can watch this course: https://youtube.com/playlist?list=PLxNPSjHT5qvsGKsAhirvZn7W73pXhXpfv&si=LnGT2JaKwClMFuwU This dude is great
BB
BB sent a code, it has been re-uploaded as a file
I have posted the code as you requsted
Danya🔥
I have posted the code as you requsted
I meant the openmp version
BB
Ok
Chat Boss
BB sent a code, it has been re-uploaded as a file
Anonymous
BB sent a code, it has been re-uploaded as a file
This is very badly written concurrent code. Both your for and while loops will run a lot slower than if they ran without concurrency support (the reason is cache coherence causing multiple dirty markers and cache block updates on a multi processor system). As to why this code gives the wrong output, I haven't yet managed to run it on a system. Will give it a try later if possible.
Ace
Hello people. I'm yet to begin programming from scratch. Anyone willing to help?
Danya🔥
This is very badly written concurrent code. Both your for and while loops will run a lot slower than if they ran without concurrency support (the reason is cache coherence causing multiple dirty markers and cache block updates on a multi processor system). As to why this code gives the wrong output, I haven't yet managed to run it on a system. Will give it a try later if possible.
If you mean false sharing, it is not the reason of the misbehavior. It's just a performance slowdown. The reason it misbehaves is, as you said, it's poorly written. Several variables shared between threads with no synchronization. It's just a race condition.
.
I'm currently working on an information security project at school, and I'm in a situation where I have to write a web server in C/C++. I'm curious about what libraries usually use when writing a web server in C/C++. I've been using Wt so far, but somehow it doesn't seem to be suitable for this project.
The 🧩 🎲
Hi dev's any good YouTube channel to learn Rust??
klimi
Hi dev's any good YouTube channel to learn Rust??
I would advice first to go to elementary school to learn how to read.
Anonymous
they have one for rust, but also i don’t recommend using youtube for learning rust besides syntax
Omkar
Hi
Rose
Purge complete.
Call me
H groups
Call me
Please can anyone get me started to learn C programming language
Call me
Like i need a buddy whom we can learn together
Rose
Please can anyone get me started to learn C programming language
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
genx(ШИ)n
hello
genx(ШИ)n
I would like to ask for help in programming
genx(ШИ)n
I'm a beginner programmer
Call me
I'm a beginner programmer
Yeah same here bro let's grow together
Chat Boss
A.H_Rahnavard sent a code, it has been re-uploaded as a file
Strife
A.H_Rahnavard sent a code, it has been re-uploaded as a file
Hello I am going to implement binary algorithm through friend function But I get this error: int search(A) warning: control reaches end of non-void function [-Wreturn-type]
Hello, I'd like to ask if in the section where are the resources there is something to teach how to write like a square or a triangle only using text, i don't know how should i search nor if there is the answer
Ми🐳а
Hi all, which IDE is better to use to learn C++, Visual studio or Code:: Blocks. Which one is better? Or should I use the others?
Danya🔥
Use Visual Studio, it's pretty simple for the learning purposes
Danya🔥
Ми🐳а
CodeBlocks is no good
Why? Except for the fact that it doesn't have a dark theme.
Danya🔥
Why? Except for the fact that it doesn't have a dark theme.
It is complex, unintuitive and just a piece of garbage
Erick
Codelite
Jhinga_Man
I'm a beginner programmer
If you want to learn c on a good level then just do "A book on C" Written by creater of c itself
Kenshin
If you want to learn c on a good level then just do "A book on C" Written by creater of c itself
The C Programming Language (Second Edition) - Brian Kernighan and Dennis Ritchie.
Like this? https://stackoverflow.com/questions/33129372/drawing-triangle-in-c#33129612
No, tomorrow I'll ask again cause I've found a code that works but doesn't work like i need it to work
klimi
Visual studio is the best one
flamewar incoming xD