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

pls help quickly!! :( what is the surface area of the right cone below?
The Osmosis Gizmo portrays a cell (red square) in a solution of purple solute particles dissolved in green solvent particles. Press Play ( ) and observe. Which
Priyanti ate 150 raisins in five days. If she ate 7 more raisins each day than she did the previous day, how many raisins did she eat on a. the third day? b. t
Study the graph showing GDP in the US. A line graph titled G D P Growth in the U S. The x-axis is labeled Year from 2004 to 2014. The y-axis is labeled Percent
1/2-1/4 is equal to ​
to which logical operation this table belongsp q T T TT F TF T TF F TA. XORB. ORC. AND
Complete the following sentence. (blank) is the study of the design, form, and function of objects in the real world.
What part of a conflict is described in the conclusion of a narrative?
1.8 Advise businesses on FIVE ways in which professional, responsible, ethical andeffective business practice should be conducted.​
What is a theme in this narrative?