feat: assert input long
This commit is contained in:
@@ -748,12 +748,12 @@ int main() {
|
|||||||
|
|
||||||
// 需要生成的比特串长度
|
// 需要生成的比特串长度
|
||||||
printf("Enter the length of the bit string to be generated(bit): ");
|
printf("Enter the length of the bit string to be generated(bit): ");
|
||||||
scanf("%d", &returned_bits_len);
|
scanf("%ld", &returned_bits_len);
|
||||||
// returned_bits_len = 128;
|
// returned_bits_len = 128;
|
||||||
|
|
||||||
// 需要生成的比特串个数
|
// 需要生成的比特串个数
|
||||||
printf("Enter the number of the bit string to be generated: ");
|
printf("Enter the number of the bit string to be generated: ");
|
||||||
scanf("%d", &returned_bits_num);
|
scanf("%ld", &returned_bits_num);
|
||||||
// returned_bits_num = 1000;
|
// returned_bits_num = 1000;
|
||||||
|
|
||||||
// char *filename; filename 未分配内存
|
// char *filename; filename 未分配内存
|
||||||
|
|||||||
Reference in New Issue
Block a user