Top "Cstring" questions

A string in the programming language C is represented as a sequence of characters followed by a null terminator (represented as \0).

Converting a C-style string to a C++ std::string

What is the best way to convert a C-style string to a C++ std::string? In the past I've done …

c++ string cstring
How to remove first character from C-string?

Can anyone please help me? I need to remove the first character from a char * in C. For example, char * …

c string cstring
Initializing a Char*[]

Question is in the title, how do I initialize a char*[] and give values to it in C++, thank you.

c++ arrays cstring
string array with garbage character at end

I have a char array buffer that I am using to store characters that the user will input one by …

c string cstring null-terminated
Simply encrypt a string in C

I'm trying to encrypt a query string on a game I'm making when opening a url. It doesn't have to …

c encryption query-string cstring
How is std::string implemented?

I am curious to know how std::string is implemented and how does it differ from c string?If the …

c++ string std cstring
What does _T stands for in a CString

What does the "T" represents in a string. For example _T("Hello").I have seen this in projects where unicode …

c++ unicode cstring
Convert CString to character array?

How to convert CString in MFC to char[] (character array)

c++ visual-c++ char cstring
Why do i first have to strcpy() before strcat()?

Why does this code produce runtime issues: char stuff[100]; strcat(stuff,"hi "); strcat(stuff,"there"); but this doesn't? char stuff[100]; …

c cstring
How can I hash a string to an int using c++?

I have to write my own hash function. If I wanted to just make the simple hash function that maps …

c++ hash string cstring