c++ - 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了一下,网上找不到,功能不存在。
解决方案
那是因为没有这样的标准库函数。
作者要么在这里使用伪代码,要么在本书的其他地方定义了这个函数。
推荐阅读
- mysql - 增加我的服务器 MySQL 中的连接数
- javascript - 如何从 URL 中获取第一个字符串?
- javascript - JS:更新 if 语句中的变量,然后在语句条件中使用该变量?
- python - 在烧瓶中运行 dash 应用程序
- c# - 我无法在代码中编写复杂的方程式
- workbox - Service Worker 中的 Workbox 运行时缓存被忽略
- javascript - RequireJS 模块中的 XMLHttpRequest()
- ios - 使用 NSAttributedString 在 UITextView 中着色文本真的很慢
- javascript - 鼠标悬停时在地图上显示工具提示
- python-3.x - 将默认日期时间对象值赋予 pandas.to_datetime()