4041| 11
|
定义了两个变量,怎么让函数返回两个变量呢? |
1金钱
最佳答案指针了解一下
void test( char *p1,char *p2)
{
*p1=1;
*p2=2;
}
char a,b;
test(&a,&b);
| ||
慎独
|
||
| ||
专治疑难杂症
|
||
| ||
| ||
慎独
|
||
| ||
慎独
|
||
| ||
| ||
慎独
|
||
| ||
| ||
| ||
慎独
|
||
| ||
慎独
|
||
| ||
慎独
|
||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-4-5 13:29
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网