*char text;
How does Jow Forums format pointers in C?
typedef char * string;
is getting your dick cut off painful?
Option 3. Because it's nice to explicitly see that it's a pointer to char type data.
char *text or char * text don't really convey that information as clearly I think.
Option 2 if you're declaring multiple variables in a single line, especially if it's a mix of regular variables and pointers; option 3 if it's for declaring a single variable on one line.
2. for C
3. for C++
1. for retards
>better
based
What do you think
char* a, b;
does? Define two pointers to chars? WRONG. So stop writing it that way.
char *a, b;
Makes what you write look like what happens.
>std::wstring
widechar strings are not suitable for UTF8, use multibyte strings instead. Widechars are a mistake introduced by Microsoft back when they were on the committee in order to support their infinitely shitty character encoding.