Programming-Array

posted by .

If i have a string with a word 'today' in it.

If a user inputs a char (lets say b).

how do I right the array to make it see if the char "b" is in the string today.

LOOP???
int i;
for(i=0; i<SIZE; i++)
{
guessedChar[i];
/*or*/
wordString[i];
}

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. science C++ programing

    could you please help me with this program even with one part please: Adding two strings (Actually, the correct term is concatenate because unlike adding two number and getting a new result, we add a second string to the end of the …
  2. C++ Programming

    I have to redo programming exercise 5 of chapter 9 using dynamic arrays. but I have the information but I don't know how to use it in a dynamic arrays please help. //Chapter 9: Programming Exercise 5 #include <iostream> #include …
  3. programming

    write a program that maintains two parallel arrays. after th arrays have been loaded the program should behave as a login screen prompting for username and password. the program should respond three output messages. if username does …
  4. Programming Logic

    I need to create a program that has (at least) two variables, char and num. I need to use nested loops to print char, a character, in the form of the following pattern on as many lines and as many times as specified by num. For example, …
  5. Programming Logic

    I need to create a program that has (at least) two variables, char and num. I need to use nested loops to print char, a character, in the form of the following pattern on as many lines and as many times as specified by num. For example, …
  6. math

    don break a 4x7 array into a 2x7 array and another array. what is the fact for dons second array?
  7. programming

    Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
  8. Computer Programming I

    Following is my Project 2. In Project 1, I wrote a program to draw square, rectangle and triangle and this is its second part. I could not figure it out how to do it. Any guidelines and suggestions would be highly appreciated. Project …
  9. programming

    A. Write a program which reads an array of up to 200 integers from input and then does all the following in order 1. searches the array for a specific integer given by the user and outputs its position in the array; 2. outputs the …
  10. C++

    (4 points) Identify the errors in the following statements. int* p = &44; - i think the star is the error because pointers are supposed to be like *p?

More Similar Questions