Thread: Please help me out

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    > I just need to start thinking of arrays are nonexistent there are only pointers with pre-allocated memory ot them
    That would be a disaster waiting to happen
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  2. #17
    Registered User
    Join Date
    Apr 2004
    Posts
    20

    Cool

    Hey, why don't you use gets ?
    #include <stdio.h>
    #include <conio.h>
    int main() {
    char yourname[80];
    printf("\nPlease enter your name : ");
    gets(yourname);
    printf("\nYour name is : %s",yourname);
    return 0;
    }
    It'll certainly work with Turbo C++.

  3. #18
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    > Hey, why don't you use gets ?
    Hey, why haven't you read the FAQ yet?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #19
    Registered User
    Join Date
    Apr 2004
    Posts
    20
    Oh ! I'm so sorry. I didn't think about it.

Popular pages Recent additions subscribe to a feed