开发者

C++ "infinite" length text [closed]

开发者_JS百科 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

my task is to make a program that can store arbitrary long text in c++. I have no idea how to solve this. Also, you cannot use STL. someone please help


  1. allocate initial buffer (malloc())
  2. store data into buffer until full (strcpy(), strcat(), memcpy()...)
  3. reallocate to a bigger buffer (realloc())
  4. goto 2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜