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

Caitlyn did 6/7 of the problems on her math correctly and 4 incorrectly. She did all the problems. How many were there?
what is E=m² the famous theory of albert einstien?
Peter jogged 96 yards in 40 seconds? What is his speed in feet per second?
I am a number between 500 and 600. My Ones digit is 5. My tens digit is the difference between my ones and hundreds digits. Who am i
I am a number between 500 and 600. My Ones digit is 5. My tens digit is the difference between my ones and hundreds digits. Who am i
Peter jogged 96 yards in 40 seconds? What is his speed in feet per second?
what is E=m² the famous theory of albert einstien?
I am a number between 500 and 600. My Ones digit is 5. My tens digit is the difference between my ones and hundreds digits. Who am i
Caitlyn did 6/7 of the problems on her math correctly and 4 incorrectly. She did all the problems. How many were there?
Peter jogged 96 yards in 40 seconds? What is his speed in feet per second?