1.cpp
来自「对输入的字符串进行逆序」· C++ 代码 · 共 23 行
CPP
23 行
// 1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "iostream.h"
#include "malloc.h"
#include <conio.h>
#include "oneline.h"
void main()
{
nodetype *head;
head=create();//建立链表并给表复值
cout<<"您输入的数据是 ";
disp(head);//输出用户输入的数据
head=invert(head);
cout<<"逆置之后为 ";
disp(head);//输出逆置之后的数据
dispose(head);//销毁那个链表
getch();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?