Thread: why stop working?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2013
    Location
    greece
    Posts
    87

    Question why stop working?

    why crases? it prints the capital and then crases...help plz
    Code:
    #include<stdio.h>
    #include<string.h>
    #include <ctype.h>
    main()
    {
        char sent[200];
        int i,j,count;
        printf("dwse protash :\n");
        gets(sent);
        count=strlen(sent);
        for(i=0;i<count;i++)
        {
            putchar (toupper(sent[i]));
        }
    for(i=0;i<count;i++)
        {printf("%s",sent[i]);}
    return 0;
    }
    Last edited by wesdom; 11-17-2013 at 04:58 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 09-15-2011, 11:56 AM
  2. just stop working when compile...
    By notcodemonkey in forum C Programming
    Replies: 27
    Last Post: 10-13-2010, 01:21 PM
  3. Creating a window causes a trackbar to stop working?
    By kidburla in forum Windows Programming
    Replies: 2
    Last Post: 09-20-2007, 05:44 AM
  4. gameports stop working
    By tyler4588 in forum Tech Board
    Replies: 3
    Last Post: 05-26-2005, 10:38 AM
  5. keyboard stop working at Dos
    By arian in forum C++ Programming
    Replies: 1
    Last Post: 11-18-2004, 02:32 PM