Search:

Type: Posts; User: Milano

Search: Search took 0.00 seconds.

  1. How would I have a user input multi-character strings?

    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')
  2. Replies
    5
    Views
    1,412

    Sorry, quzah, I was typing up a reply before...

    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...
  3. Replies
    5
    Views
    1,412

    That takes care of one problem - I only have to...

    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...
  4. Replies
    5
    Views
    1,412

    New to C - need help with a simple prog.

    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...
Results 1 to 4 of 5