请问,关于C的几个基本问题
swall 2001-09-04 05:09:40 1、以下边形式定义的变量(指针?)可有大小限制?
char *replacedstring;
2、为什么我用strcat()函数连的几个内容中间会出现空格,而且是很有规律的,每两个strcat()函数之间就会多很多空格?比如:
strcat(resultstring,"<tr><td><p><a href='text.php?id=");
strcat(resultstring,ids);
strcat(resultstring,"'>");
strcat(resultstring,"newstitle");
strcat(resultstring,"</a></p></td></tr><tr><td><p>");
结果是:
<tr><td><p><a href='text.php?id=10341 '>newstitle </a></p></td></tr><tr><td><p><tr><td><p><a href='text.php?id=10327 '>newstitle税