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

Will mark brainliest for whoever answers. How can I solve this problem?
What is the result of subtracting the second equation from the first? x−3y=6 −8x−y=6
The Civil Rights Movement made great strides toward equality, but our society still has a long way to go. How have we made progress? Where is there still work t
A canister containing air has a volume of 85 cm3 and a pressure of 1.45 atm when the tenoerature is 310 k. What is the pressure when the volune is increased to
Help plz:)))I’ll mark u Brainliest
What value represents the horizontal translation from the graph of the parent function f(x) = x2 to the graph of the function g(x)=(x-4)2+2? O-4 O-2 O2 O4
solve the equation 7( 4+p) = 28P=0P=8P=7​
What words, phrases, or ideas do you find most meaningful in the speech? “I had a dream”
30 points! I will mark brainliest! Pic attached below
Triangle TSR is similar to Triangle TNM Which statement below is true?