Supernoobuser
Have you made a reverse shell for windows in c?
Prosvetlennii Dimas
https://pastebin.com/dFEkBrpG Explain me please what im doin wrong
Anonymous
generation of computer
Serenity
d
Serenity
Can somebody help me turn a regular recursive function into a tail recursive function ?
Artöm
Show it first
Serenity
Sec
Serenity
The main goal of the program is to calculate the double factorial of a function
Serenity
long long factorial(int n) { // HERE: DEFINE THE RECURSIVE DOUBLE-FACTORIAL FUNCTION
if (n == 1)
return 1; // base case in which the calculation is obvious
else
return n * factorial(n - 1); // the recursive call
}
long long doublefactorial(int n)
{
if (n < 0)
{
return 0; // verifying it is a positive integer
}
if (n == 1)
return 1; // base case
else
return factorial(n) / (doublefactorial(n - 1)); // the recursive call
}
Serenity
You can use the regular function as it is without changing it, I just need to implement the second function in a tail recursive way.
Serenity
It didn't work bro, I don't know why.
Serenity
I can't figure out what is going wrong with the code you gave me.
Artöm
You need to make accumulator function parameter
Artöm
Main goal is to make a call to itself the last thing function does
Nameful
No
Anonymous
Serenity
Can you send me a screenshot of your code please ?
Serenity
ohh thanks it's inside
Serenity
Maybe you are correct
Serenity
but I have been asked to implement double factorial in four different ways and I am kind of confused about it all
Serenity
that is why I want to get rid of it
Serenity
And besides , I hate recursion in general and find it exhaustive , i prefer doing things iteratively
Serenity
I tried to apply some changes but nothing worked out that is why I came here again.
Anonymous
I m beginner in c
Anonymous
Help me what to do
Diego
Hello folks. Good morning/afternoon.
Has anyone implemented FFT in ESP32?
I'm being able to read my I2S protocol MEMS microphone. And also being able to calculate SPL values. But havent implemented the FFT yet.
Does anyone can help me or guide me to a nice tutorial?
Thanks
Serenity
Serenity
Does anybody know what this is about ?
Artöm
Try this https://stackoverflow.com/questions/16883037/remove-secure-warnings-crt-secure-no-warnings-from-projects-by-default-in-vis
Vimal Keerthi
Linker Tools Error LNK2019 | Microsoft Docs
https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=vs-2019
Vimal Keerthi
This may help u learn about such errors
Artöm
Did you include <cstdio> ?
Serenity
Oh thanks ! I realized I had forgotten to attach it to the top of the program as I always do.
Serenity
I deleted it by mistake as I edited my program, now everything is fine.
Serenity
Thanks for the help and I'll take a look at what you sent anyways
Рома
Hi) guys is there some approach how to fill 1 vector by another one?
Рома
Asad
for (auto x : some_vector) {
another_vector.push_back(x);
}
Asad
this should work
Рома
Artöm
Field vector is always empty initially. Just do
Method(std::vector<double> vec) : m_dArray_X(vec) {
for (double e : vec) {
std::cout << e << '\n';
}
}
Asad
and also assignment (=) operator can be used
Рома
Maybe exist some function?
For example: vec1.assignment(vec2);
Рома
Ok, thanks to everyone for the advice, it helped me. 🖤🖤🖤
Anonymous
/warn no solution asking
Anonymous
Okay
Mar!o
Richard
is there anyone can help me solve the problem?
Richard
Read the RGB image, convert it into a gray image, and draw its gray histogram.
Mar!o
On CPU or GPU? If gpu you could use a compute shader
Mar!o
I recommend Vulkan or OpenGL
Richard
thx a lot,I'ii try to use OpenGL
Mar!o
But if performance is not that important just write a normal cpu program
Dima
your gpu must support opengl 4.1 in order to work with compute shaders
Dima
or 4.0 - 4.2, I don’t remember
Dima
but I remember how I failed with that. lol.
Mar!o
I also like Vulkan more since it allows more stuff and OpenGL is deprecated on Mac &IOs
Mar!o
By Apple these idiots
Dima
Mar!o
Dima
I have everything apple:)
Dima
but that opengl development is suffer
Dima
Metal is cool though
Nameful
Dima
Nameful
yeah
Nameful
MoltenVK
Mar!o
Mar!o
01000001011011010100000101101110
what exactly are you trying this is easy try it your self
01000001011011010100000101101110
lol..okay
Marvel
Hello
Anonymous
Hello, I am Brazilian 😅
Dima
welcome
Hermann
Anyone use nettle? Is possible set digest in sha3-512?
Anonymous
hello people, ive been trying to look for an answer to a curious question i have,
can anyone explain what really happens inside a machine when a magnitude bit is carried over to a sign bit, whats the behaviour ?
for example: assuming an 8-bit binary number number: 0100 0000
1 got shifted to left, lets say a short circuit happened, so it became, 1000 0000?
??
all i know is signed bytes have range 2^(n-1) to (2^(n-1) - 1)
so what happens ?
thank you.
Shinchan
Can any one help me in learning c++
Shinchan
🙏
Dima
google can
Ashish Bhushan