📄 pr06013.cpp
字号:
////////////////////////////////////////
// File Name: pr06013.cpp
////////////////////////////////////////
#include <iostream>
// Function prototype.
void FindCredit(float** fpp);
////////////////////////////////////////
// The main() function.
////////////////////////////////////////
int main()
{
float vals[] =
{34.23, 67.33, 46.44, -99.22, 85.56, 0};
float* fp = vals;
FindCredit(&fp);
std::cout << *fp;
return 0;
}
////////////////////////////////////////
// Find the negative value in the array.
////////////////////////////////////////
void FindCredit(float** fpp)
{
while (**fpp != 0)
if (**fpp < 0)
break;
else
(*fpp)++;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -