Jump to content

Blue_cow

Members
  • Posts

    621
  • Joined

  • Last visited

Posts posted by Blue_cow

  1. 1. super mario world

    2. super mario rpg

    3. donkey kong country

    4. battletoads - double trouble

    5. aladin (its actually a good game! lol)

     

    These are my top 5 if i didnt include the ones already on your list. super mario world is a MUST though.

  2. [quote name=markiemrboo' date='Aug 4 2005, 12:55 PM

     

       printf ("You typed: %c\n", sentance);
    

     

    Change %c (which prints out only one character) tooo %s.

     

       printf ("You typed: %s\n", sentance);
    

     

    522452[/snapback]

     

     

    BAHH!!!! How did i miss that! Ok so (sorry if it feels like you guys are walking me through it, i think im maknig a bit of progress.) now it works except that the output is only one word. Do i need to have more scanfs and/or variables?

  3. :rolleyes: You two are like a married couple. Thanks for the help guys! Ill see if it works.

     

    Edit: here's what i have, and it doesnt work.

    #include <stdio.h>
    #include <stdlib.h>
    
    int main ()
    {
       char sentance[500]; 
       printf ("Please enter a sentance:");
       scanf ("%s", &sentance );
       printf ("You typed: %c\n", sentance);
       system("pause");
       return 0;
    }
    
    

     

    It compiles with no bugs, but when you enter in a senctence (eg. This is a senctence) it will come back with: You typed: p. Every time. So... yeeeahh.

  4. Heres what ive got so far but im kindof stuck...

     

    #include <stdio.h>
    
    int main ()
    {
       char sentance; 
       printf ("Please enter a sentance:");
       scanf ( "%s", &sentance );
       printf ("You typed: %c\n", sentance);
       return 0; 
    }
    

     

    EDIT: Ok, i got it working past debug mode but when it asks to enter a sentance, you do, and when you press enter it closes... :/

×
×
  • Create New...