anonymous
  • anonymous
In c++, How do you make a function to ask the user input, and then store that input? It would ask 3 different chars, and store them?
Computer Science
schrodinger
  • schrodinger
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

anonymous
  • anonymous
use an array for the storage, and a for/while loop to ask the user repeatedly three times to input something into the array. do you need further help?
anonymous
  • anonymous
@Shadowys Can you post an example? The way I have it set up is not working
Hunus
  • Hunus
#include #include int main() { char entry[3], i, k; for(i=0; i<3; ++i){ int c = getchar(); int t = c; if ( c == '\n' ) { i -= 1; continue; }else{ entry[i] = t; } } for(k=0; k<3; ++k){ printf("%c ", entry[k], "\n"); } system("PAUSE"); } Something like this? (This is in C)

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

Hunus
  • Hunus
Something that takes 3 character inputs and saves them?
anonymous
  • anonymous
@hunus yes,

Looking for something else?

Not the answer you are looking for? Search for more explanations.