文章
19
粉丝
0
获赞
4
访问
10.8k
#include<bits/stdc++.h>
using namespace std;
typedef struct Node {
int num;
struct Node* Next;
}Node;
int main() {
Node* head1, *head2;
Node* p1, *p2;
int n1, n2;
head1 = head2 = p1 = p2 = NULL;
cin >> n1;
int num1 = n1;
while (num1 > 0) {
if (num1 == n1) {
Node* p = (Node*)malloc(sizeof(Node));
cin >> p->num;
p->Next = NULL;
head1 = p1 = p;
num1--;
}
Node* p = (Node*)mall...
登录后发布评论
暂无评论,来抢沙发