相关代码 |
|
#include #include void main( void ) { //设置字符串 char string[] = "Fill the string with something"; cout char *p=strset(string,'*'); cout cout //按指定字符和指定数目设置字符数组 char string1[] = "Fill the string with something"; cout p=strnset(string1,'*',5); cout cout }