justinxvengance8442 justinxvengance8442
  • 17-02-2018
  • Computers and Technology
contestada

Given the string variable address, write an expression that returns the position of the first occurrence of the string "avenue" in address. submit

Respuesta :

pbzepplin
pbzepplin pbzepplin
  • 27-02-2018
string temp;

for i = 0 to Address.length - 6 do 
begin
     temp = copy(address, i, i + 6) //returns a substring of a string beginning at
                                                     //i and ending at i + 6 
     if temp = 'Avenue' then
          return i;
   
end;
Answer Link

Otras preguntas

hello can anyone help with this? The distance between Heysham and the Isle of Man is 80 km. A hovercraft travels at 50 km per hour. How long does the journey t
i need help getting 2 more brainliest
Divide. 2/7 ÷ 1/3 anyone know im struggling
Which linear function represents the line given by the point-slope equation y-8 = 1/2(x – 4)? O f(x) = 1/2x + 4 Of(x) = 1/2x + 6 O f(x) = 1/2x-10 Of(x) = 1/2x-1
HELP PLEASE I REALLY NEED IT!
1. Jean bought the new Iphone for $1080 (Tax included) on an installment plan. The installment agreement included a 10% down payment and 24 monthly payments of
Every time little Jeffrey goes shopping with his mom, there is an incident at the checkout line when he spots candy. Typically, Jeffrey's mom initially refuses
Ano meaning ng sanaysay​
Find the value of the expression if x = 2.1, z = -4.2 and b = -3. |2x−z|+6b
Which statement is true about 737 O A) It is a prime number OB) It is a composite number, OC) It is a whole number that is neither prime nor composite OD) It i