.sh
or some kind of terminal script/file?
And my guess is that I would need some kind of (compatible) graphics driver, correct? How does/would GPU/hardware assigning work for video rendering?.sh
or some kind of terminal script/file?
And my guess is that I would need some kind of (compatible) graphics driver, correct? How does/would GPU/hardware assigning work for video rendering? ffmpeg
library, and I guess audio is just pasted on to the video file hmm-DHEADLESS_CLIENT=ON
to get a ddnet client without graphics'
Doable?-DHEADLESS_CLIENT=ON
to get a ddnet client without graphics'
Doable? X2Go
or some remote desktop?llvmpipe
alsohttps://cdn.discordapp.com/attachments/293493549758939136/1318554462427811931/image.png?ex=6762bf09&is=67616d89&hm=adf8be98817d539be297c3077892c1b6e9ac1b7b3d807c8fe191786417f741e1&
?ex=6762bf09&is=67616d89&hm=adf8be98817d539be297c3077892c1b6e9ac1b7b3d807c8fe191786417f741e1&fav=hentai&gender=helicopter&location=28.12818818,8.172812&age=21
#include <iostream>
#include <ctime>
using namespace std;
template <typename T>
int factorial(T n) {
if (n == 0)
return 1;
if (n == 1)
return 1;
return n * factorial(n - 1);
}
void random(int arr[], const int SIZE);
int main()
{
srand(time(NULL));
setlocale(LC_ALL, "EN");
const int size = 10;
int array[size];
cout << "Enter any variable: ";
int a;
cin >> a;
int *px = &a;
cout << "Address of your variable in the program: " << px << endl;
cout << "Your variable: " << *px << endl;
cout << "Factorial of your number: " << factorial(a) << endl;
}
void random(int arr[], const int SIZE) {
for (int i = 0; i < SIZE;) {
bool Here = false;
int ab = 0 + rand() % 10;
for (int j = 0; j < SIZE; j++) {
if (arr[j] == ab) {
Here = true;
break;
}
}
if (!Here) {
arr[i] = ab;
++i;
}
}
for (int i = 0; i < SIZE; i++) {
cout << arr[i] << endl;
}
}
c++
if (n == 0)
return 1;
if (n == 1)
return 1;
could be refactored to:
c++
if (n <= 1) //smaller than or equal to 1,
return 1;
Display
trait for ir because it's already annoying debugging when it infers wrong type c++
if (n == 0)
return 1;
if (n == 1)
return 1;
could be refactored to:
c++
if (n <= 1) //smaller than or equal to 1,
return 1;
c++
if (n == 0)
return 1;
if (n == 1)
return 1;
could be refactored to:
c++
if (n <= 1) //smaller than or equal to 1,
return 1;
return n <= 1
for (int i = 10; i --> 0;) {
//stuff
}
has slightly different behavior and also quite useful for (int i = 0; i ++> 10;) {
//stuff
}
doesn't look nearly as nice
and also isn't nearly as obfuscated lolfor (int i = 0; i ++> 10;) {
//stuff
}
doesn't look nearly as nice
and also isn't nearly as obfuscated lol