44问答网
所有问题
当前搜索:
数据结构编写
怎么
编写
用
数据结构
通讯录
答:
include<stdio.h> include<string.h> include<stdlib.h> struct Telephone { char name[20];char addrass[20];char zip[20];char telephone[20];struct Telephone *next;};typedef struct Telephone TEL;TEL *head=NULL;void showmenu(); //菜单 void Appenditem(); //添加条目 void pr...
求
数据结构
文章编辑**的源程序(用C语言
编写
)
答:
给你实现了要求得功能函数,由于对你问题得一页得概念不理解,用一字符指针代替文章来操作,约定以'\0'来结束,下面所有得函数都是接受1个字符指针来进行操作,参数传入传出参照微软格式.--- / 统计文章*pt中英文字母得数量*pNum 空格数*pNumSpace,总字数*pNumAll 返回1成功,0失败 / int Statistic(char...
数据结构
C语言串。用StrAssign和Concat
编写
一个连接26个英文字母和0到...
答:
1. 程序中for(i=0,c=chars; c; ++i,++c);语句是个for循环但其循环体是空语句,目的是让指针c指到chars的最后一个字符的后面。现实环境运行中这里是死循环!!!改为 for(i=0,c=chars; *c; ++i,++c);2.if(T.ch) free(T.ch);这条语句在运行中会发生内存读写错误!!!改正方法:...
数据结构
程序设计 用双向循环链表建立一个学生管理系统,要求实现插入...
答:
用一下我的吧 是我大一时写的 有什么问题可以追问 include<iostream.h> include<string.h> typedef struct { char name[10];long num;float score;}student;void creat(student stu[]);void insert(student stu[]);void Delete(student stu[]);void lookup(student stu[]);void update(student ...
求用
数据结构
(C语言版)
编写
的排序系统
答:
printf("\n\t\t* 1---更新排序
数据
*\n"); printf("\n\t\t* 2---直接插入排序 *\n"); printf("\n\t\t* 3---希 尔 排序 *\n"); printf("\n\t\t* 4---冒 泡 排序 *\n"); printf("\n\t\t* 5---快 速 排序 *\n"); printf("\n\t\t* 6---选 择 排序 *\n"); ...
请C语言高手帮我
编写
几个
数据结构
的小程序~(一定要用C++编写噢~)谢啦...
答:
include"stdio.h"include"malloc.h"define MaxSize 10 typedef char ElemType ;typedef struct { ElemType data[MaxSize]; int front,rear;}SqQueue;void InitQueue(SqQueue *&q) //初始化队列 { q=(SqQueue *)malloc(sizeof(SqQueue));q->front=q->rear=0;} void ClearQueue(SqQueue *&q)...
数据结构
编程求救
答:
试验一:include<iostream> include<string> using namespace std;struct List { int num;List *next;};List *head=NULL;List* CreateList(){ List *pL;List *pEnd;pL=new List;head=pL;pEnd=pL;cout<<"请输入节点的数目,以 0 结束"<<endl;cin>>pL->num;while(pL->num!=0){ pEnd->...
运用C#
数据结构编写
程序进行一元多项式的计算
答:
虽然效率不怎么样反正是可以用 using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Polynomial { class RankFactorMap { public int rank_; public double factor_; } List<RankFactorMap> data_; public...
请用c++和
数据结构
算法
编写
以下程序
答:
我现在给你一份一种业务,四个窗口,一天客户数已知的情况,求客户逗留的时间的程序,如果你想在客户未知的情况下求逗留时间,你就自己设定一个银行开、关门的时间,有些东西还是要自己做的,不要指望所有的东西都要别人提供给你;include<iostream.h> include include<stdlib.h> include<malloc.h>...
急!帮我
编写
一个c语言的
数据结构
程序,关于串,提供要用的代码,只要帮我...
答:
//str.c include"stdio.h"include"str.h"void main(){ int n,flag=0;int i=4,j=6;char *str,*sub;str=(char*)malloc(sizeof(char)*100);sub=(char*)malloc(sizeof(char)*100);printf(" 串子系统 \n");printf("***\n");printf("* 1---输入字串 ...
<涓婁竴椤
1
2
3
4
5
6
7
8
9
10
涓嬩竴椤
灏鹃〉
其他人还搜