- ·上一篇:手机怎么删除某页word
- ·下一篇:word考勤表怎么求和
word的名字怎么用星号代替
2025-01-11 13:17:17
1.C语言中如何用*把自己的名字显示出来
下面是完整程序,允许你输入一次字符串,直到回车,
如果同已存的byxx60424一样,就答正确,否则错误。
输入过程允许回退删拍错的字再继续拍。显示星号。
#include <stdio.h>
int main()
{
char p[50];
char password[50]="byxx60424";
int i=0;
printf("type your password:\n");
while ( i < 50 ){
p[i] = getch();
if (p[i] == '\r') break;
if (p[i] == '\b') { i=i-1; printf("\b \b"); } else {i=i+1;printf("*");};
}
p[i]='\0';
if ( strcmp(password,p)==0) printf("\nThe passwd is right!\n");
else printf("\n You typed wrong password:%s",p);
return 0;
}
2.在word文档中怎样替换文字
在word中替换文字的方法如下:
1、通过桌面搜索或快捷方式打开word应用程序。
2、在界面左侧点击需要替换文字的word文档。
3、使用键盘快捷键“Ctrl+F”打开word搜索栏。
4、在搜索栏最右侧的下三角处点击,在随后弹出的菜单栏中点击“替换”。
5、在随后弹出的对话框中输入自己想要替换的文字,点击“全部替换”,即可完成批量替换文字操作。