char
Setting Char variables
For a char variable would i also set it to 0 as i would set and int or a float or any other variable?[详细]
2023-04-12 01:48 分类:问答Add String to Char Pointer in C
I want to add a string to char pointer, how can i do? For example: char pointer ischar * process_name; and i have an char array named seco开发者_如何学Cnd. It contains several chars.[详细]
2023-04-12 01:02 分类:问答How can we convert a string to int for very large integer values?
I have used the function atoi to convert character strings to int and it\'s working fine but when I gave[详细]
2023-04-11 20:53 分类:问答char array corruption in C++
I\'m working on a project that makes me store an array of objects whose constructor is Item(char* item, int itemType){[详细]
2023-04-11 16:22 分类:问答Deleting char pointer array
I want todelete a char * array, which should be simple right? char * = new char[length]; then use delete[] char;?[详细]
2023-04-11 12:49 分类:问答How can I separate a string in 3 shorts and the rest in one string (this string as white spaces in it) in C?
How can I separate a string that has white spaces between the 3 shorts and between the rest of the string to 4 different stri开发者_如何学Pythonngs.[详细]
2023-04-11 10:20 分类:问答Can assign string to char* at runtime
Can I do code such: char *p; p = User_input; Is it possible to assign a string to p at runt开发者_如何学运维ime?Sure you can, but there is no string in c, I think you mean char *, like[详细]
2023-04-11 10:19 分类:问答Casting an unsigned int + a string to an unsigned char vector
I\'m working with the NetLink socket library ( https://sourceforge.net/apps/wordpress/netlinksockets/ ), and I want to send some binary data over the network in a format that I specify.[详细]
2023-04-11 03:15 分类:问答How to convert a char array back to a string?
I have a char array: char[] a = {\'h\', \'e\', \'l\', \'l\', \'o\', \' \', \'w\', \'o\', \'r\', \'l\', \'d\'};[详细]
2023-04-10 23:17 分类:问答What line is at fault -- segfault, that is...?
I\'m relatively new to C (and completely new to StackOverflow - hey guys!), and this segfault has been giving me no surcease of sorrow for the past few hours (DevC++ on a windows machine).It\'s just a[详细]
2023-04-10 22:44 分类:问答