1 / 4
May 2013

Are STL string too slower than the old-fashioned null terminated character strings?? unamused

  • created

    May '13
  • last reply

    Jun '13
  • 3

    replies

  • 405

    views

  • 2

    users

yes. But C strings are much more cumbersome to use in some instances. It's more important that you're not using cin and cout.

okay
thanx for the quick reply smile
and what about using new node() instead of malloc
is new node() also too slow??

That depends on what you mean by node()

Generally allocating memory on the fly is costly. If it cannot be avoided then it will be ok.

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 14 6d

Want to read more? Browse other topics in C and C++ or view latest topics.