Arbus 25 Practically a Master Poster

168

Arbus 25 Practically a Master Poster

170.

Arbus 25 Practically a Master Poster

170

Arbus 25 Practically a Master Poster

184

Arbus 25 Practically a Master Poster

180

Arbus 25 Practically a Master Poster

184

Arbus 25 Practically a Master Poster

Find the sequence.
1
11
21
1211
111221
??????
Also explain the logic.

Arbus 25 Practically a Master Poster

Right answer!

Arbus 25 Practically a Master Poster

Find the number.
Let the number be x.
If x is divided by 1 the remainder is 0.
if x is divided by 2 the remainder is 1.
if x is divided by 3 the remainder is 2.
and so on..
till
if x is divided by 10 the remainder is 9.

What is the value of x ?

Arbus 25 Practically a Master Poster

White plays first. This is possible when white makes a move with knight.
For example,
White knight moves from g1 to h3,the black pawn move from e7 to e5, again the white knight moves from h3 to g1.

Arbus 25 Practically a Master Poster

198.

Arbus 25 Practically a Master Poster

sUccess cannot be spelled without u.

Arbus 25 Practically a Master Poster

198

Arbus 25 Practically a Master Poster

250.

Arbus 25 Practically a Master Poster

250

Arbus 25 Practically a Master Poster

260.

Arbus 25 Practically a Master Poster

260

Arbus 25 Practically a Master Poster

It gives those errors because you didn't change the prototype for sort_surname()
The prototype should be

void sort_surname(char**);/* not that the parameter Acc[] is not given*/
Arbus 25 Practically a Master Poster

266.

Arbus 25 Practically a Master Poster

266

Arbus 25 Practically a Master Poster

274.

Arbus 25 Practically a Master Poster

274

Arbus 25 Practically a Master Poster

338

Arbus 25 Practically a Master Poster

350

Arbus 25 Practically a Master Poster

382

Arbus 25 Practically a Master Poster

I guess you meant
C Syntax (Toggle Plain Text)
char *account_array;

Yeah, sorry that's due to my poor typing.

Arbus 25 Practically a Master Poster

382

Arbus 25 Practically a Master Poster

In your code the declaration of the pointer account_array is fine.

char (account_array[size];

Your function declaration is also fine.

void sort_surname(char *account_array[])

The mistake lies in the function calling in line 51.

sort_surname(number, *account_array);

Here you have passed structure, but in your function you didn't have any parameter to get structure.
So it should have been

sort_surname(account_array);
Arbus 25 Practically a Master Poster

Give some object in the declaration.
For example..

sort_surname(ACC obj[],char *account_aray);

But i see that you are not using the any object in the function sort_surname(). So remove the parameter in the declaration and don't pass any structures in line 51.

case 2:
      sort_surname(account_array);//not the number parameter
      break;

In the function ..

void sort_surname(char *account_array[]);

Hope this helps.

Arbus 25 Practically a Master Poster

In line 97 it seems that you have removed the parameter for structure, but you are passing a structure in the line 51. Check that out.

Arbus 25 Practically a Master Poster

can you post the modified code?

Arbus 25 Practically a Master Poster

402

Arbus 25 Practically a Master Poster

It's giving that error because *account_array is not declared in main(). Keep in mind that the parameter is *account_array[]. So you should declare it appropriately.

Arbus 25 Practically a Master Poster

404

Arbus 25 Practically a Master Poster

404

Arbus 25 Practically a Master Poster

Right answer!

Arbus 25 Practically a Master Poster

432

Arbus 25 Practically a Master Poster

436

Arbus 25 Practically a Master Poster

Yes, in the switch case function an array is not passed as a parameter sort_surname ( number, /* *string */ );
And in the function definition of sort_surname object has not been declared. I wonder how come you haven't got any errors?

void sort_surname(ACC,char *account_array[])//here the object should have been declared
drongo commented: THANKS +0
Arbus 25 Practically a Master Poster

You should have made a discussion thread not a poll.

Arbus 25 Practically a Master Poster

Hello drongo,
In your function calling you didn't mention all the parameters. You didn't give the char* parameter.

Arbus 25 Practically a Master Poster

Hello Labdabeta,
I hope you are asking to convert the string into integer(binary number) and then converting it to decimal. If yes,try this one..
For example, if there is '1' in a[0] then subtracting a[0] and '0' will give 1.

int b;
char a[100];
b=a[0]-'0';

The ASCII value of '1'(which is 49) is subtracted with ASCII value of '0'(which is 48).
Do this in a loop. Then you will have the binary number. Convert it into decimal.

Arbus 25 Practically a Master Poster

Yeah, it was a massive event.

Arbus 25 Practically a Master Poster

So far this is what i have and i am stuck because i do not know how to find when the derivative goes from negative to positive or from positive to negative.

You need to store some data(altitude and time) in change.dat when velocity becomes negative. I htink this is what you are trying to do?
correct me if i am wrong.

The second thing is , in line 20 you have given derivative[lcv] = deltaT[lcv]/ deltaZ[lcv]; which contradicts the expression you posted (v= z/t)

Arbus 25 Practically a Master Poster

Hello ghostmonkey,
In line 19 you didn't assign the value. You have used == . Is that a mistake due to your typing ? Why can't you use another integer array for storing zeros and a variable to count the number of zeros ?

Arbus 25 Practically a Master Poster

Maybe the person came to that place after the bomb blast ?

Arbus 25 Practically a Master Poster

Yeah WaltP, i tried replacing the required font in the existing default one as you said. I just got a small shaded rectangle.

I know the value that is returned by registerfarbgifont() should be used in outtextxy(). But i always get -13 given by registerfarbgifont(). That's where my problem lies.

Arbus 25 Practically a Master Poster

Be the change that you seek - Mahatma Gandhi

Arbus 25 Practically a Master Poster

It's not a*a*a i think. Triple means a * 3.

Arbus 25 Practically a Master Poster

That's what i said in my previous post. Count is bound to main() only you cannot use it elsewhere and count1 can be used in the tripecallbyvalue() function only. So you should modify the lines 7 and 8 like this..

cout<<"count is "<<count<<endl;
cout<< "count1 is " << tripeCallByValue(count);

and line 10 in the function tripeCallByValue() like this...

count1 = count1 * 3;