小编Sau*_*gat的帖子

React Native 中需要未知模块“499”错误

在此输入图像描述

我收到这个错误。我已经尝试运行 npm install 多次,但它仍然存在,如何让它工作?

linux android reactjs react-native

1
推荐指数
1
解决办法
4143
查看次数

在c ++中调用函数传递字符串作为参数时出错

这是我的代码,在编译时,当我调用isVowel()函数时,它在类型转换中显示错误.你可以检查并告诉错误是什么?

#include <iostream>
#include <string>
#include <typeinfo>
using namespace std;
bool isVowel(string a)
{
    if(a == "a" || a =="e" || a =="i" || a =="o" ||a =="u"){
        return true;
    }
    else
        return false;
}

int main()
{
    int T;
    cin>>T;
    for (int i = 0; i < T; i++)
    {
        string s, snew="";
        cin>>s;
        for (int j=0;j<s.length();j++)
        {
            if(isVowel(s[j]))
                continue;
            else
                snew += s[j];
        }
    }
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

c++ string character

-4
推荐指数
1
解决办法
200
查看次数

标签 统计

android ×1

c++ ×1

character ×1

linux ×1

react-native ×1

reactjs ×1

string ×1