字符串数组赋值

来源:百度知道 编辑:UC知道 时间:2024/05/12 05:34:15
字符串数组怎么动态赋值啊!
我是菜鸟哦,想高手请教

char *ch[10];
for(i=0;i <5;i++)
gets();//这个函数的参数怎么填写啊?

dim arry(6)
for i=0 to 5
arry(i)=i
next

有gets()函数吗?我不知道。
但是有针对数据集(recordset)的getrows()函数。
使用:rs.getrows()

填ch[i]就行啊
你这是指针啊,ch[i]是每个字符串的首地址;