10限制显示 [英] 10 limiting display

查看:60
本文介绍了10限制显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何限制员工在所有部门进入部门时的显示情况

显示该部门内的员工,如果可以说他们是
之前必须限制10名员工再次显示下一个10?

How do you limits employee display where you enter the department for all
the employee within that department be displayed and if lets say they are
100 or so and you have to limits 10 employee per page before entering
anything to display the next 10 again?

推荐答案

kimimaro< li ************ @ yahoo.com>潦草地写下以下内容:
kimimaro <li************@yahoo.com> scribbled the following:
如何限制员工在所有部门进入部门的情况下显示该部门内的员工,如果他们说他们是100左右,在进入
任何显示下一个10的任何东西之前你必须限制每位10名员工吗?
How do you limits employee display where you enter the department for all
the employee within that department be displayed and if lets say they are
100 or so and you have to limits 10 employee per page before entering
anything to display the next 10 again?




我试着读一下。两次。两次我都不明白你想要什么



下次尝试用点缀标记分隔你的句子,比如

这些:

"," "。" "!" "?" ":" " ;;"

对于高级用户,单独的段落可能会有所帮助。


-

/ - Joona Palaste( pa*****@cc.helsinki.fi)-------------芬兰-------- \

\ --- -------------------------------------------------- ---规则! -------- /

法国人的麻烦在于他们对企业家没有任何意义。

- 乔治布什



I tried to read that. Twice. Both times I failed to understand what
exactly you want.
Next time, try separating your sentences with punctuation marks like
these:
"," "." "!" "?" ":" ";"
For advanced users, separate paragraphs might help.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"The trouble with the French is they don''t have a word for entrepreneur."
- George Bush


文章< 48 ****************************** @ localhost.talkab outprogramming.com>,

kimimaro< li ************ @ yahoo.com>写道:
In article <48******************************@localhost.talkab outprogramming.com>,
kimimaro <li************@yahoo.com> wrote:
如何限制员工在所有部门进入部门的地方显示该部门内的员工,如果我们说他们是100个左右,那么你有在进入之前每页限制10名员工
再次显示下10名员工?
How do you limits employee display where you enter the department for all
the employee within that department be displayed and if lets say they are
100 or so and you have to limits 10 employee per page before entering
anything to display the next 10 again?




试试这样:


部门员工100每个或显示页面以及之前和如果

如何进入您所在部门做任何事情都有你到所有

限制显示限制员工10让显示器接下来说

员工,其中10位他们再次进入?



Try it this way:

Department employee 100 be per or displayed page so and before and if
the how entering you department do anything have for you to to all
limits display limits employee the 10 lets the display next say
employee where 10 they within you again are that enter?




kimimaro写道:

kimimaro wrote:
如何限制员工显示你进入部门的地方
显示该部门内的所有员工,如果我们说
是100左右在进入
什么东西再次显示下一个10?
How do you limits employee display where you enter the department for all the employee within that department be displayed and if lets say they are 100 or so and you have to limits 10 employee per page before entering
anything to display the next 10 again?




就循环控制而言,使用余数运算符(%)

是典型的。至于停止然后进入,使用某种类型的读取来自

stdin。对于便携式代码,这意味着读取一行。任何其他

方式(按任意键继续)需要特定于实现的功能

这里是偏离主题的。


这是一个小代码片段,它显示1的数字,并在每5次后停止

等待回车。这个输入并不健全,实际上你需要处理人们在返回

之前输入字符,并且还有其他安全问题需要你解决。它只是一个

的演示。


int i;


for(i = 1 ;; i ++)

{

printf("%d \ n",i);

if(i%5 == 0)

getchar();

}


Brian



As far as the loop control, something using the remainder operator (%)
is typical. As far as stopping then entering, some sort of read from
stdin in used. For portable code, that means reading a line. Any other
way (Hit Any Key To Continue) requires implementation-specific features
that are off-topic here.

Here is a small code fragment that displays numbers from 1 and stopping
after every 5 to wait for a carriage return. This input is not robust,
in reality you need to handle people putting in characters before the
return, and has other safety issues for you to work out. It is only a
demonstration.

int i;

for (i = 1; ; i++)
{
printf("%d\n", i);
if (i%5 == 0)
getchar();
}


Brian


这篇关于10限制显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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