首页 > 解决方案 > c++中的使用函数是什么?

问题描述

我目前正在阅读一本 c++ 书,其中一个功能是

void fp(char v[]){
   for(char* p = v; *p!=0;p++) use(*p);
}

我把它写到我的编辑器中并编译它。我还包括了标题

#include <iostream>
#include <string.h>

但我的终端返回以下消息:

use of undeclared identifier 'use'

我也google了一下,网上找不到,功能不存在。

标签: c++

解决方案


那是因为没有这样的标准库函数。

作者要么在这里使用伪代码,要么在本书的其他地方定义了这个函数。


推荐阅读