手机安装cherles证书

获取证书:

方法一:打开网站:hhtp://chrls.pro/ssl

方法二:打开charles-Help-SSL Proxying-Save Charles Certificate

ios手机直接打开网站直接就可以安装,安卓手机有些也可以这样,不可以的话就把证书放到跟目录下,手动安装

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是实现要求的代码: ```c #include <stdio.h> #include <stdlib.h> struct grade { int ID; int score; struct grade *next; }; void create_list(struct grade **head) { int id, score; struct grade *new_node; *head = NULL; printf("Enter student ID and score (separated by space): "); scanf("%d %d", &id, &score); while (score >= 0) { new_node = (struct grade*)malloc(sizeof(struct grade)); new_node->ID = id; new_node->score = score; new_node->next = *head; *head = new_node; printf("Enter student ID and score (separated by space): "); scanf("%d %d", &id, &score); } } void insert_node(struct grade **head, int pos) { struct grade *new_node, *ptr; int i; ptr = *head; for (i = 1; i < pos && ptr != NULL; i++) { ptr = ptr->next; } if (ptr == NULL) { printf("Cannot insert node at position %d\n", pos); return; } printf("Enter student ID and score (separated by space): "); new_node = (struct grade*)malloc(sizeof(struct grade)); scanf("%d %d", &new_node->ID, &new_node->score); new_node->next = ptr->next; ptr->next = new_node; } void display_list(struct grade *head) { struct grade *ptr = head; while (ptr != NULL) { printf("ID: %d\tScore: %d\n", ptr->ID, ptr->score); ptr = ptr->next; } } void free_list(struct grade **head) { struct grade *ptr = *head; while (ptr != NULL) { *head = (*head)->next; free(ptr); ptr = *head; } } int main() { struct grade *head = NULL; int pos; create_list(&head); printf("Initial list:\n"); display_list(head); printf("Enter position to insert new node: "); scanf("%d", &pos); insert_node(&head, pos); printf("List after insertion:\n"); display_list(head); free_list(&head); return 0; } ``` 注:由于题目中没有规定 ID 的输入方式,所以这里采用了和 score 相同的方式,即在输入时用空格分隔。如果需要单独输入 ID,只需要稍作修改即可。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值