如何使用C ++在Unix中使用'*****'屏蔽密码? [英] How Can I Mask A Password With '*****' In Unix Using C++?
本文介绍了如何使用C ++在Unix中使用'*****'屏蔽密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用C ++上的UNIX上的控制台应用程序,我需要输入用户名和密码。约束是在控制台上输入的密码应显示为******。
有谁能帮我一样吗?
提前致谢!!!
I am working on a console application on UNIX in C++ where i need to enter the username and password. The constraint is that the password entered on console should be displayed as "******".
Can anyone please help me with the same?
Thanks in advance!!!
推荐答案
可以在 cplusplus.com:屏蔽密码输入 [ ^ ]。
这篇关于如何使用C ++在Unix中使用'*****'屏蔽密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文