运行int valid;
do {
char line[100];
printf(" Please input two numbers between 0 and 4000 or press x to leave: \n\n");
fgets(line, sizeof line, stdin);
if (strcmp(line, "x\n") == 0) {
break;
}
valid = 0;
int cnt = sscanf(line, " %d %d", &var1, &var2);
if (cnt != 2) {
printf("Please enter two integers");
} else if ( (var1 > 4000) || (var2 > 4000) || (var1 < 0) || (var2 < 0)) {
printf( "\n Input out of range, please use only values between 0 and 4000 \n\n");
} else {
valid = 1;
}
} while (!valid);
printf( "\n Your inputs are %d and %d. \n\n", var1, var2);
printf(" %d multiplied by %d is equal to %d \n", var1, var2, var1*var2);
会导致以下错误:
npm run env:restart
我尝试从头开始安装两个项目,结果相同。 节点版本:v8.12.0
答案 0 :(得分:0)
今天晚上10:46沃尔特蒙特斯
看起来二进制文件与您的OS版本不兼容, 当您在Docker中运行hurley或 这样的事情。
删除文件夹
... [hurley] - Running cryptoconfigsh /bin/bash: line 25: /Users/ecairol/hyperledger-fabric-network/fabric-binaries/1.3.0/bin/cryptogen: cannot execute binary file [hurley] - Found error while running script!
,然后重试所有内容 应该可以再次下载