17070047 / 17070047/CodeStructureCourse
石江雨
- 主要語言
- C++
- 星號
- 16
- 分支
- 2
- PR 合併指標
- 30 天內沒有已合併 PR
描述
```c
#include
#include
#include
#define MAXSIZE 100
struct cardinfo{
int number;//卡号
char name[10];//名字
char major[15];//系别
int classnumber;//班号
};//借书证信息结点的结构体
cardinfo a[MAXSIZE];
//录入基本信息
void create(int n)
{
for(int i=1;i<=n;i++)
{
printf("输入持卡人的卡号:");
scanf("%d",&(a[i].number));
printf("输入持卡人的姓名:");
scanf("%s",&a[i].name);
printf("输入持卡人的系别:");
scanf("%s",&a[i].major);
printf("输入持卡人的班号:");
scanf("%d",&a[i].classnumber);
printf("\n");
}//输入n个借书卡的信息
}
//直接插入排序
void insertsort(int n)
{
int i,j;
for(i=2;i<=n;i++)
{
j=i-1;
a[0]=a[i];
while(a[0].number=0)
{
printf("请输入选择:");
scanf("%d",&i);
switch(i)
{
case 1:
output(n);
break;
case 2:
insertsort(n);
output(n);
break;
case 3:
search(n);
break;
}
}
return 0;
}
```


貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
The issue contains a C program for a library card system with sorting and search functions. The user posted code and two screenshots, but the exact problem is not stated. Start by examining the code in the issue body for logical errors, buffer overflows, or incorrect array indexing (note arrays start at 1). Run the program to see if it crashes or produces wrong output. The goal is to identify and fix the bug implied by the screenshots, which might show runtime behavior.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- c
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100