C ++ string c string [英] C++ string c string
本文介绍了C ++ string c string的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
参与项目的开发。我们小组对c ++字符串或简单c字符串分配的优点感到困惑。在此先感谢。
john
Being in the development of a project. our group is confused about what shall be the better one c++ string or simple c string allocation. Thanks in advance.
john
推荐答案
正在开发中一个项目。我们小组对c ++字符串或简单c字符串分配的优点感到困惑。在此先感谢。
john
Being in the development of a project. our group is confused about what shall be the better one c++ string or simple c string allocation. Thanks in advance.
john
我会选择c ++字符串,因为与c string相比,它提供了许多有用的功能
Raghuram
I would go for c++ string as it provide many useful functions compared to c string
Raghuram
首先感谢gpraghuram。
内存大小和内存分配怎么样, C ++字符串的速度?
是否会影响程序的性能?
与c内存分配的麻烦相比,字符串类开销是否可以忽略不计。
john
first of all Thanks gpraghuram.
what about the memory size and memory allocations, speed of C++ string?
Is it affect the performance of program?
Is the string class overhead negligible when compared with the hassles of c memory allocation.
john
首先感谢gpraghuram。
内存大小和内存分配怎么样,C ++字符串的速度呢?
是否会影响程序的性能?
是字符串类开销与c内存分配的麻烦比较可以忽略不计。
john
first of all Thanks gpraghuram.
what about the memory size and memory allocations, speed of C++ string?
Is it affect the performance of program?
Is the string class overhead negligible when compared with the hassles of c memory allocation.
john
c ++ string dosent会增加很多开销。(其他成员可以评论这个)/ b $ b最好使用C ++字符串,因为它避免了许多常见的C指针错误
Raghuram
c++ string dosent puts much overhead .(Other members can comment on this)
It better to use C++ strings as it avoids many common C pointer mistakes
Raghuram
这篇关于C ++ string c string的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文