subject
Engineering, 11.10.2019 18:10 citlalli30

In c++, write a program that will input three c-strings into an array of c-strings. print only those that end in "es" or begin in "yan". use the following: char cstr[3][30]; use for loops to fill up the array and to loop through the c-strings for the searches. the input c-stirings could include spaces and multiple words. you will search two different ways. first, use a c-string function to find the length so you know where the last two characters are, then compare the last two characters separately as an array. second, use a c-string function to compare, all at once, just the first three characters in the c-string (a function similar to strcmp, but that will only compare a certain number of characters).

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which one from below is not one of the reasons of planning failures? (clo3) a)-planner is careless. b-planner spend less time in the field but more time on the desk c)-planner is not qualified d)-planner does not have sufficient time to properly plan
Answers: 3
question
Engineering, 04.07.2019 18:10
Journeyman training is usually related (clo2) a)-to specific tasks b)-to cost analysis of maintenance task c)-to control process to ensure quality d)-to installation of machinery
Answers: 2
You know the right answer?
In c++, write a program that will input three c-strings into an array of c-strings. print only those...
Questions
question
Mathematics, 03.09.2020 19:01
question
Biology, 03.09.2020 19:01
question
Mathematics, 03.09.2020 19:01
Questions on the website: 13722360