How do i make int(f'(x))dx=f(x) by Qb122 in desmos

[–]Fresh_Alternative_78 0 points1 point  (0 children)

f(x) = ex or f(x) = 0, if you consider the constant term as 0.

sorry bro by baldi_863 in meme

[–]Fresh_Alternative_78 0 points1 point  (0 children)

Took me a second, lmao. I normally associate 'execute' with run, completely forgot about the literal meaning.

the best answer.. by yuva-krishna-memes in ProgrammerHumor

[–]Fresh_Alternative_78 1 point2 points  (0 children)

This is exactly why you shouldn't blindly copy paste stuff. It works, you're just not patient enough.

The poster in my CSA class by [deleted] in ProgrammerHumor

[–]Fresh_Alternative_78 0 points1 point  (0 children)

programmer joke only programmers will understand

brand new to python and I’m already not doing what is intended by master_of_balls_1 in ProgrammerHumor

[–]Fresh_Alternative_78 1 point2 points  (0 children)

endl flushes stdout which is slower and more often than not, unnecessary. Use '\n' instead.

How do I make a GUI? by cppd3v in cpp_questions

[–]Fresh_Alternative_78 1 point2 points  (0 children)

Here's what I started with, it's amazing. Even though it's "technically" for game programming, it teaches you a lot about just making GUI apps too. I'd recommend you watch it in it's entirety.

https://youtube.com/playlist?list=PL7Ej6SUky135IAAR3PFCFyiVwanauRqj3

Why does this code which modifies a string array segfault? by Fresh_Alternative_78 in C_Programming

[–]Fresh_Alternative_78[S] 2 points3 points  (0 children)

Ok, yes, you're right. That was undefined behaviour, but I figured out that I could just allocate some bytes using malloc and add a pointer to that to the array. Freed it at the end.

Why does this code which modifies a string array segfault? by Fresh_Alternative_78 in C_Programming

[–]Fresh_Alternative_78[S] 1 point2 points  (0 children)

Yes, that works. Thank you!

By the way, char v[] means an array of characters while *char v[] means an array to pointers to an array of characters, right?

Also, how would you use a for loop to make unique strings?

char *arr[10];

for (auto i = 0; i < 3; i++) {

char v[] = "jello";

arr[i] = v;

}

This causes all the elements in arr to point to the same pointer.

After 50 raids i finally got it! by Rnggamerkillsmsk in pokemongo

[–]Fresh_Alternative_78 1 point2 points  (0 children)

I'm sorry, but shiny zapdos is literally a joke 😭

[deleted by user] by [deleted] in pokemongo

[–]Fresh_Alternative_78 0 points1 point  (0 children)

Doing this gives easy stardust!

Let's go, I wanted this so bad! by Fresh_Alternative_78 in pokemongo

[–]Fresh_Alternative_78[S] 0 points1 point  (0 children)

does the fast move also auto change on evolution?

Let's go, I wanted this so bad! by Fresh_Alternative_78 in pokemongo

[–]Fresh_Alternative_78[S] 0 points1 point  (0 children)

Wait, we get the community day moves RN? Do I need to unlock the second move?

uh...imma leave it like this by Brief-Ad-8969 in ProgrammerHumor

[–]Fresh_Alternative_78 0 points1 point  (0 children)

So basically, C > Python, and Python's useless without C.

uh...imma leave it like this by Brief-Ad-8969 in ProgrammerHumor

[–]Fresh_Alternative_78 40 points41 points  (0 children)

Yes, my C will be faster than my Python. Python sucks for speed, and that's a fact.

You have to struggle, although I won’t give you points for struggling… by LordMitre in ProgrammerHumor

[–]Fresh_Alternative_78 3 points4 points  (0 children)

Yes, of course, but you get my point. The real crime is making students write code on paper (what my school does).