尝试安装所有依赖项,#include <stdio.h>
int main(void) {
char a[30],c;
int i,t=0;
printf("Enter your sentence: ");
fgets(a, 30, stdin);
printf("%s",a);
printf("Enter the character you want to check: ");
scanf("%c",&c);
getchar(); // only getchar() without to assigning its return value
for(i=0; a[i] != '\0';i++)
{
if (a[i] == c) ++t;
}
printf("The frequency of the character %c is: %d",c,t);
return 0;
}
在通过命令行或R Studio进行尝试时仍然“不可用”。
已遵循说明here
作为最新建议(尽管注意到Enter your sentence: hello world and stack overflow
hello world and stack overflow
Enter the character you want to check: o
The frequency of the character o is: 4
现在只是gdal-尝试了两种排列方式。)
仍然没有运气!
运行rgdal
gdal1
时出现以下错误
以下软件包具有未满足的依赖性。 libgdal-dev: 取决于:libgdal26(= 3.0.4 + dfsg-1〜bionic0)但不会 已安装rasdaman:取决于:gdal-bin,但不会 已安装
取决于:python-gdal但不会被安装E:错误,pkgProblemResolver :: Resolve生成的中断,可能是 由持有的包裹引起。