什么是这个问题的编码和它的输出 [英] what is the prog coding for this question and what it output

查看:57
本文介绍了什么是这个问题的编码和它的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个C程序来构造一个整数队列,并在其上执行操作后执行



a。插入

b。删除

c。显示

程序应该打印适当的消息,用于堆栈溢出和堆栈

为空。


i希望你们可以帮助我,因为我这是一个很难的问题。

Write a C program to construct a queue of integers and to perform the
following operations on it:
a. insert
b. delete
c. display
The program should print appropriate messages for stack overflow and stack
empty.

i hope u guys can help me,for me it is difficult question.

推荐答案

mohd hisham写道:
mohd hisham wrote:

编写一个C程序来构建一个整数队列并执行以下操作:
a。插入
b。删除
c。显示
程序应打印适当的消息,以便堆栈溢出和堆栈空。


你是什么意思?队列通常是LIFO。堆栈通常是FIFO。

我希望你们能帮助我,对我来说这是一个很难的问题。

Write a C program to construct a queue of integers and to perform the
following operations on it:
a. insert
b. delete
c. display
The program should print appropriate messages for stack overflow and stack
empty.
Which do you mean? Queues are generally LIFO. Stacks are generally FIFO.

i hope u guys can help me,for me it is difficult question.




我可以帮你入门,但是你需要填空。


#include< stdio.h>


int insert(void * p )

{

返回0;

}


int delete(void * p)

{

返回0;

}


int display(void * p)

{

返回0;

}


int main(无效)

{

insert(NULL);

delete(NULL);

display(NULL);

return 0;

}



I can get you started, but you''ll need to fill in the blanks.

#include <stdio.h>

int insert(void *p)
{
return 0;
}

int delete(void *p)
{
return 0;
}

int display(void *p)
{
return 0;
}

int main(void)
{
insert(NULL);
delete(NULL);
display(NULL);
return 0;
}


mohd hisham写道:
mohd hisham wrote:
写一个C程序来构造一个整数队列执行以下操作:
a。插入
b。删除
c。显示
程序应该打印适当的消息,堆栈溢出和堆栈空了。

我希望你们能帮助我,对我来说这是一个很难的问题。
Write a C program to construct a queue of integers and to perform the
following operations on it:
a. insert
b. delete
c. display
The program should print appropriate messages for stack overflow and stack
empty.

i hope u guys can help me,for me it is difficult question.




看来你忘记发布你到目前为止所写的代码

问。发布它然后也许你可以得到一些帮助。



It appears you''ve forgotten to post the code you''ve written so far to
ask about. Post it and then perhaps you can get some help.


" mohd hisham" < SH ******* @ yahoo.com>在消息中写道

news:41 ******** @ news.tm.net.my ...
"mohd hisham" <sh*******@yahoo.com> wrote in message
news:41********@news.tm.net.my...
编写一个C程序来构建一个队列整数并执行以下操作:
a。插入
b。删除
c。显示
程序应该打印适当的消息,堆栈溢出和堆栈空了。

我希望你们能帮助我,对我来说这是一个很难的问题。
Write a C program to construct a queue of integers and to perform the
following operations on it:
a. insert
b. delete
c. display
The program should print appropriate messages for stack overflow and stack
empty.

i hope u guys can help me,for me it is difficult question.




如果你私下联系我并同意支付

的费用,我肯定会为你写的(如果可以的话)

说服我这不是家庭作业。


但是,如果你试着自己写,但卡住了,

并发布你的代码以及具体问题,

我(我怀疑很多其他人)会免费帮助你。


-Mike



If you contact me privately and agree upon a pay
rate, I''ll certainly write it for you (if you can
convince me this isn''t a homework assignment).

However, if you try to write it yourself, but get stuck,
and post your code along with specific questions,
I (and I suspect many others) will help you for free.

-Mike


这篇关于什么是这个问题的编码和它的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆