michicaLef michicaLef
  • 17-02-2017
  • 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.

Respuesta :

antonsandiego
antonsandiego antonsandiego
  • 23-02-2017
It depends on a language you code. I think this could be either C++ or Java. I know answer for both of them.
For C++:  address.find("Avenue")
For Java: 
address.indexOf("Avenue")
Answer Link

Otras preguntas

PLEASSSE HELP GIVING A LOT OF POINTS TO FAST REPONDERS!!
4th grade go math question: write the name of the period that has the digits 913 in the number 913,256
Please help!!! The options for question 3 are crois, croit, croyons, croient, croyez. and for question 4 are lu, lue, lus, lues.
Pencils are packed 10 to a box.  A classroom carton has 10 boxes.  Lee needs to buy 370 pencils.A.  How many boxes does lee need to purchase? Use place value to
What is the greatest common factor of 14 and 28
whats x-y=-3 and whats 2x+y =12
What is 14 divided by 1050?
I need to know if 93 is a multiple of 9×
1.995 x 10 to negative 23
what is the factor of 50