i want to clear a string after the prog. has done it`s work.
i tried it by using a for loop and assigning a blank, but it didn`t work.
the problem is that if i run the program again then the earlier value is displayed again .
i`m using Turbo c++.
varunrathi
0
Light Poster
Recommended Answers
Jump to PostAssign the first element a '\0'. If you're a masochist, use memset on the whole char array.
Jump to Postnot working
post code. or not helping.
All 5 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
varunrathi
0
Light Poster
Dave Sinkula
2,398
long time no c
Team Colleague
hinduengg
26
Junior Poster in Training
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.