CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    94

    How to erase char array's content

    Hi:
    Here has a simplay question.
    IN VB char array can use ERASE command to delete it's conten. How about in VC++. Like I define CHAR TEM[227];
    TEM="....."
    How can I make TEM equal null then I can relocate new char in.
    If anybody can help. It will very helpful.
    Thank you very much indeed
    WKY086

    wky086

  2. #2
    Join Date
    Aug 2000
    Location
    Chandigarh, India
    Posts
    429

    Re: How to erase char array's content

    char TEM[227] = {0};


    ~ Rating helps serve better, no doubt
    ~ ks

  3. #3
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Re: How to erase char array's content

    take a look at memset

    Sooner Or Later, Everyone Does...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured