[OHOS ERROR] C:\Users\86188\Desktop\hellow world\src\vendor\hisilicon\hispark_pegasus\config.json not found编译出错VScode
时间: 2023-09-15 22:18:10 浏览: 61
这个错误提示表明编译器在指定的路径中找不到一个名为 "config.json" 的文件。这可能是因为该文件确实不存在或者路径不正确。请确保你的项目文件结构正确,并且 "config.json" 文件位于正确的位置。
另外,请注意文件路径中是否包含了非法字符,如空格或特殊字符。如果有,请尝试将文件移动到一个不包含非法字符的路径中,并更新编译器中的相关配置。
如果你确定文件存在且路径正确,那么可能是其他配置问题导致的编译错误。你可以检查相关的编译配置文件,确保其中没有错误或缺失的配置项。
如果问题仍然存在,建议提供更多的错误信息和相关的代码片段,这样才能更好地帮助你解决问题。
相关问题
用C++写一个代码:等待直到输入hellow,输出world
下面是使用C语言编写的代码:
```c
#include <stdio.h>
#include <string.h>
int main() {
char input[100];
while (1) {
printf("请输入'hello': ");
scanf("%s", input);
if (strcmp(input, "hello") == 0) {
printf("world\n");
break;
}
}
return 0;
}
```
这个代码会不断等待用户输入,直到用户输入了"hello",然后输出"world"。
字符串“hellow_world_python”
为了回答您的问题,我需要先澄清一下您的问题中的拼写错误。如果您的问题是想要演示字符串"hello_world_python",那么可以使用以下代码:
```python
my_str = "hello_world_python"
print(my_str)
```
输出结果为:
```
hello_world_python
```
如果您的问题是想要将字符串"hello_world_python"中的下划线替换为空格,可以使用以下代码:
```python
my_str = "hello_world_python"
new_str = my_str.replace("_", " ")
print(new_str)
```
输出结果为:
```
hello world python
```