difference between string and string.h
2015-04-16 11:01
453 查看
from http://stackoverflow.com/questions/9257665/difference-between-string-and-string-h
string.hcontains old functions like
strcpy,
strlen.
stringprimarily contains the
std::stringclass.
It should also be noted that usingstring.his deprecated within C++. If you need the functionality contained within, you should use the header cstring. |
<cstring>will usually import the same things as
<string.h>but into the
stdnamespace.
<string.h>will usually import everything into the global namespace.
相关文章推荐
- Difference Between String , StringBuilder And StringBuffer Classes With Example : Java
- BigDecimal(-)Difference of BigDecimal toString() method between JDK1.4 and above version
- difference between string literal and string object
- String and some of the difference between StringBuffer
- what is difference between equals() and contentEquals() of String class?
- Part 59 to 60 Difference between Convert ToString and ToString,String and StringBuilder
- The differences between String, StringBuffer and StringBuilder
- Difference between string created by array and pointer
- Difference between Hard Clip(H) and Soft Clip(S) in Samtools CIGAR string
- Summary: Difference between null and empty String
- Difference Between String , StringBuilder And StringBuffer Classes
- Difference between char *str=“STRING” and char str[] = “STRING”
- What is the difference between application server and web server?
- the differences between function and procedure
- What is the difference between task and thread?
- The difference between GetDC and GetWindowDC
- [zz]The difference between thread-safety and re-entrancy
- Java Wish List: The Top Differences Between Java, Scala, Groovy, Clojure and Kotlin
- What is the difference between a URI, a URL and a URN?
- Difference between application/xml and text/xml