The first thing is that you are creating pointers to variables that you have not declared. Using pointers is good experience, but you only use pointers when you are doing things in different methods, which you should be doing here. You should ask in a separate method for user input then check the user input in another separate method. That is where you should start then go from there.
No comments:
Post a Comment