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

removing a nut in a small space can be done quickly with a​
which best explains how the authors's voice creates meaning in spring and fall A. it illustrates the authors strong emotions about loss of innocence B. it shows
...please help me :,)
Read the poem "Sestina of Youth and Age (Links to an external site.)Links to an external site.." Connect it to Cry, the Beloved Country by continuing the theme
PLEASE HELP ASAP 25 PTS + BRAINLIEST TO RIGHT/BEST ANSWER
Which model represents 0.69 divided by 3 I need this ASAP DUE IN 5 minutes
which phrase refers to the contrast what is expected to happen and what actually doee happen? ​
Next threee terms of 2/9, 2/3, 2...
factorize 1. -3b^2+15b+18 2. 2K^2+3K-35
Ehat is the formula of calcium chloride?​