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

A student is interested in whether students who study with music playing devote as much attention to their studies as do students who study under quiet conditio
How do charges move through an insulated wire connected across a battery? Use the terms potential difference, current, conductor, and insulator in answer.
what structure do the cells of a maple tree and the cells of a beetle have in common
A box of uncooked spaghetti costs $0.1369 per ounce. How much is this cost to the nearest cent?
which of these geometry terms best describes an unsharpened pencil? a. ray b.line segment c. point d.plane
Why are viruses not able to make their own proteins?
what is an various-sized particles ejected by a volcano?
What is the correct order of stages in the life cycle of a salamander? A. egg --> pupa --> adult                      B. tadpole --> larva --> adult
Jessica is making 2 loaves of banana bread. She needs 3/4 cup of sugar for each loaf. Her measuring cup can only hold 1/4 cup of sugar. How many times will Jess
49.5 is what percent of 33?