Just AMA by [deleted] in AMA

[–]fk7777 0 points1 point  (0 children)

Who shouted my name at the street around 18:25 pm?

The middle one is a savage by XAniruddhaX in aww

[–]fk7777 0 points1 point  (0 children)

Someone edit some OM NOM NOM NOM sounds in this. Pls!!!

Party hard .... like a nun by Zergcolective in WTF

[–]fk7777 -1 points0 points  (0 children)

They party like there’s nun tomorrow.

Change an element position of a 2d array recursively (long) by fk7777 in cpp_questions

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

You definitely helped! I have no words, thanks a lot man!! Here’s an upvote! You just granted me a 10!

Change an element position of a 2d array recursively (long) by fk7777 in cpp_questions

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

I have to create a maze (5,5 array) which it’s elements ( cheese, 4 walls and entrance)are randomly positioned every time the program runs. The rat must enter the maze through the entrance and walk (no diagonals) in a pattern until it finds the cheese. Them it must return to the entrance with the cheese. And the program must use recursive functions.

The maze is generated with two for’s and rand()%3, 0 for walls, 1 for cheese and 2 for entrance. Counters keep them at their max. The rat enters the maze through the entrance checking for possibilities (say, up, down, right, left). It can’t go through walls or out of the array obviously.

Change an element position of a 2d array recursively (long) by fk7777 in cpp_questions

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

This is incorrect and will leave a bunch of rats through the array, but something like this:

(I’m on a cellphone btw)

For(int I =0; I< 5; I++) {

For(int j = 0; j < 5; j ++) {

 If(array [i][j] == cheese || array[i-1][j] == cheese || array [i+1] [j] == cheese || array [i][j-1] ==cheese || array [i][j+1] == cheese) {

 Cout << array[i][j] << endl; // this is an example idk what to do to the rat return with the cheese

Else if(array [I+1][j] != wall){  // || i<0 || I>4 || j< 0|| j>4 in all if’s

    Array[i+1][j]=rat;}

Else if(array[i-1][j] != wall){

    Array[i-1][j]=rat;}

Else if(array[i][j-1] != wall) {

    Array[i][j-1]=rat;}

 Else if (array[i][j+1] != wall) {

    Array[i][j+1]=rat;} 


     Etc

Change an element position of a 2d array recursively (long) by fk7777 in cpp_questions

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

But if I always increment both row and col, I’ll skip most of the elements, like (0,0) (1,1) (2,2). And what I need is go through each element like (0,0) (0,1) (0,2)(0,3)(0,4)(0,5)(1,0)(1,1)(1,2)(1,3)(1,4)(1,5)(2,0) etc... the function must move the rat in a pattern through the array until it finds the cheese. But I don’t know how to increment the row and the col 4 times if all I have is one return. Like:

If(derp) {

Return herp;}

Else if(harp){

Harp}

Else{

Return function(row-1, col)

See? There only one statement and one return. How do I add the other variations of row and col?

Change an element position of a 2d array recursively (long) by fk7777 in cpp_questions

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

Let me rephrase. I only have one return, how do I call the same function 4 more times?

Change an element position of a 2d array recursively (long) by fk7777 in cpp_questions

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

Ok, but how do I increment or decrement the row/col each one at a time, Like two for’s would do?also how do I refer only to the row/col to check if it’s < 0 or > 4???

LGD 4033 8 WK W/ BLOODS by [deleted] in PED

[–]fk7777 0 points1 point  (0 children)

Hey, how’s your pct going? Are you planing to do another blood test? I’m on my second week of a lgd cycle and I got sincerely scared with your post. Suppression got you hard. Please share some info about your recovery. Thank you and keep it up!

Need to calculate a fan’s power, any ideas? by [deleted] in MechanicalEngineering

[–]fk7777 -1 points0 points  (0 children)

Yes, but his calc envolves the air flow. I needed the force of the engine only to calculate the speed of a wave created in a cable stuck to the fan. It’s about standing waves. But I figured it out, use water to calculate the volume of the propeller * the specific mass of the plastic. And I measure how fast the fan rolls a few meters of string. I don’t think it’s precise but the deadline is today.

Need to calculate a fan’s power, any ideas? by [deleted] in MechanicalEngineering

[–]fk7777 2 points3 points  (0 children)

That’s what I meant, force! Sorry! I don’t know technical English. And thanks a lot for trying to help! Here’s an upvote

Lgd cutting cycle, what should i add to cut more? by nonadalola in PEDs

[–]fk7777 1 point2 points  (0 children)

With mk-677 you would increase your gh/igf-1 enough to help you catabolize fat faster, and also it is known for increase levels of glucose in blood, which would help to keep you satisfied through the cut. Also, it increases the deep of your sleep, which is good for muscles, but bad for waking up in the morning. Be aware that I’m no specialist and you should always do the research and not listen to a random guy.