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

What are some ways of reducing stress in your life?
[tex]\huge\sf \pink{\mid \underline {\overline{ \frak{q {\mathsf{uestion : - \mid}}}}}}[/tex]Q-1 change into indirect speech a) I said, "don't waste your time."
Find the lower and upper bound for: 50 kg measured to the nearest 10 kg
What I the slope of each line? Y=1/2 x - 4 y= 2x -3
Carol is baking chocolate biscuits. The recipe she is following uses 150 g of sugar and makes 50 biscuits. If Carol only has 30 g of sugar then how many of thes
How can wasted energy be made useful?
I NEED HELP ASAP Here are your goals for this lesson: Write the first draft of an expository paragraph. Revise and improve the expository paragraph. Write a
1. Think about what you have read about the new ideas of the 1950s. (You may choose to make a list of the items to help you to review them.) 2. Decide on what y
What would it look like if human eye colors showed codominance? Incomplete dominance? Describe both.
The potential energy of a body 5m above the ground is 200j. Calculate the mass of the body if g=10m/s.​