No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[font=Times New Roman][size=3] [code] #include <iostream.h> #include <string.h> void menu_choice(); void char_count(char[], char); char* concatenating_function(char*, char*); int main() { char continue_input; char char_to_count=0; do { menu_choice(); cout<<"Do you want to continue?\n"; cin>>continue_input; }while (continue_input == 'y' || continue_input == 'Y'); return 0; } void menu_choice (void) { char word_to_use[30]; char … |
|
I am doing a program in C++ with do while loops and switch case. After the user enters the info required, the program automatically does the while part. It is not ejecuting the switch case (most important part in my program). What can I do? |