我通过Firebase了解到,通过将auth提供程序凭据链接到现有用户帐户,我可以允许用户使用多个身份验证提供程序登录我的应用程序.有可能链接自定义身份验证提供程序,如Linkedin?我读到我需要将AuthCredential对象传递给登录用户的linkWithCredential方法,但我找不到自定义的AuthCredential.
android linkedin custom-authentication firebase firebase-authentication
我必须在C++中分配一个struct数组,任何struct都包含两个int向量.这是我的结构:
typedef struct _Sample{
vector<int> contourX;
vector<int> contourY;
}Sample;
要分配这个数组,我写下面的代码:
data = (struct _Sample*) malloc(sizeof(struct _Sample) * nsamples);
当我尝试将一个Sample元素分配给data [0]时,运行时出错.问题出在哪儿?