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

Character can be portrayed by direct exposition. True False
The__________was part of Stalin's secret police force.
What policies did presidents Truman and Eisenhower pursue in Vietnam after World War 2?
whose initial efforts eventually led to president woodrow wilson's declaration of the annual mother's day celebration
Choose the answers. 6. (3 pt) Which are generally accepted reasons for studying history? Choose all answers that are correct. A. It provides instructive exam
How did reconstruction affect daily life in South Carolina.
Where did the dollar sign come from?
What does a story’s theme communicate?
What hardened colonists’ attitudes toward local American Indians in Virginia during the early 1600s?
Popular sovereignty means that?