I recently wrote a program something along the lines of:
#include <stdio.h>
char Choice;
int main()
{
printf("Enter (y/n)\n");
scanf("%c", &Choice);
if (Choice=='y')
Type: Posts; User: Milano
I recently wrote a program something along the lines of:
#include <stdio.h>
char Choice;
int main()
{
printf("Enter (y/n)\n");
scanf("%c", &Choice);
if (Choice=='y')
Sorry, quzah, I was typing up a reply before yours got posted. That helped a lot - it runs perfectly now. I should have thought of that in the first place, especially since someone had already...
That takes care of one problem - I only have to type y or n once now. But the program still terminates without outputting either of the strings I specified. Take away one of the Ys or Ns in the...
I've read a few guides, copied and pasted example codes to test them, and even edited them to see how much I can change it without messing it up, but tonight I tried writing my own program from...