计数打印页数 [英] Count no of Print Page

查看:71
本文介绍了计数打印页数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为Cyber​​ Cafe创建了一个应用程序.我已经完成了要在Project中实现的所有功能,但是无法实现与打印页数有关的功能.我想实现一项功能,该功能可以显示当用户要求时他/她全天打印的页面数.

I have created an application for Cyber Cafe. I completed implementing all the features I want in Project, but unable to implement a feature which is related to print page count. I want to implement a feature which shows the no of pages print by him/her during whole day when user asks for it.

推荐答案

如何使用Dictionary<string, int>

其中字符串是用户标识/用户名,整数是计数器.然后每次打印时,增加计数器.
How about using a Dictionary<string, int>

Where the string is the userid/username and the int is a counter. Then every time they print, increase the counter.


这篇关于计数打印页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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