作者liu2007 (薯)
看板C_and_CPP
标题[语法] 请问substr的用法
时间Mon May 4 20:46:29 2009
#include <stdio.h>
#include <string.h>
void main()
{
char c[50]= "1111133242";
printf("%s\n", substr(c, 1, 6));
printf("%s\n", substr(c, -2,3 ));
}
这样子还是有错
请问要使用substr还需要注意什麽吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.134.115.251
1F:→ ilway25:不是这样用吧.. 05/04 20:55