Programming in C++ Create a program with a function that ask 10 characters and place them in an array. The function would return the number of letter e’s there are and changes all letter ‘e’s to ‘i’’s:
you know how to use arrays i guess.Then it's pretty easy, just do what the assignment says
i dont know how to use it thats why im posting the problem here. :)
arrays are one of the simplest data structures.There are just elements stored in consecutive memory space.you can declare arrays of any type in this way (in C/C++) type myArray[size] e.g(int array[25]).You can have access to the elements of the array in constant time by,simply writing within the brackets the index of the element you want to access e.g(printf("%d\n",myArray[15]); ) this would print the element 15+1 of the array declared above.Generally, elements start from 0 in arrays.
can you make a code?
no. I have no hands, plus this is your assignment, not mine.
Join our real-time social learning platform and learn together with your friends!