#include stdio.h
#include stdlib.h
#include time.h
#include "conio.h"
void main()
{
int year=0,month=0,day=0,hour=0,mintue=0,second=0;
printf("Input the day you tell your trues:(Year-Mou-Day-Hour-Min-Sec,default for 0):\n");
scanf("%d-%d-%d-%d-%d-%d",year,month,day,hour,mintue,second);
system("cls");
time_t now,trues,toget;
while(1)
{
struct tm truest = {second,mintue,hour,day,month-1,year-1900};
now = time(NULL);
trues=mktime(truest);
printf("now is %s\n",ctime(now));
printf("the day you tell your trues:%s\n",ctime(trues));
toget = (now-trues)/3600/24;
printf("days together:%d\n",toget);
toget = (now-trues)/3600;
printf("hours together:%d\n",toget);
toget = (now-trues)/60;
printf("mintues together:%d\n",toget);
toget = (now-trues);
printf("seconds together:%d\n",toget);
_sleep(1000);
system("cls");
}
}
祝你成功
菜鸟写了两个小时,如下
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 180 -c ""三分钟内决定是否当我的女朋友,否则会被关机......"" ",0 ,true
dim a
do while (a "愿意")
a = inputbox ("你愿意当我的女朋友吗","爱的表白","",8000,7000)
if ( a "愿意" ) then
msgbox "不愿意么?再考虑一下哦"
end if
loop
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox "嘿嘿嘿"
msgbox "叫我老公"
msgbox "快点"
dim b
do while (a "老公")
a = inputbox ("叫吧","叫的你就是我老婆了","",8000,7000)
if ( a "老公" ) then
msgbox "不愿意叫吗?再考虑一下哦"
end if
loop
msgbox "老婆~"
msgbox "mua~"
msgbox "爱你"
msgbox "嘿嘿"
文字都可随便替换,同时msgbox为弹窗,是可以增加,删除的
如何制作抖音上很火的文档表白文件?
01
右键点击桌面,新建一个txt文本文件
02
打开新建的文件
03
输入内容 msgbox(".............."),文字内容输在括号双引号内
注意括号以及双引号要输入英文格式,输入好自己想要的文字之后保存。
04
右键点击文件,选重命名
05
把文件后缀txt,改成vbs
06
文件可以通过微信QQ等发送给自己想要给的人啦!
07
如果重命名无法修改后缀,那先打开“此电脑”—“查看”,勾选文件扩展名,就可以改啦。
表白代码编程教学,具体指的就是可以用C语言或者是用python这样子的一个编程模式去进行一些心形的代码编写,或者是进行一些相关的表白话语的代码编写。比如在C语言里面就可以用一些代码去编写出显示心形这样子的一个图案,然后就可以用来表白。
在python里面的话就可以去建立一些对话框,然后在这样子的对话框里面就可以写一些表白的话语,Python这门语言里面同样可以以一些代码编辑然后去写出这样子的一个心形的图案,所以说表白代码编程教学就是这样子的一个意思。
并且这样子的编程教学在各大的平台上都有相关的一些教学,有些是需要收费,有些是很简单的一些代码就可以去完成的,只要下载一些相关的编程软件,还有就是配置好一定的环境,就能进行相关的一些编程,并且这也是程序员所常用的一种手法。