我的创作纪念日

机缘

我最初成为创作者的初心是希望通过创作来表达自己的想法和观点,同时也希望能够与更多的人进行交流和分享。

在实战项目中,我学到了很多有关技术、团队合作和沟通的经验。我会在项目中记录自己的思考和体会,分享给团队成员和其他人参考。

日常学习过程中,我也会进行记录和总结。这样可以帮助我更好地理解和运用新学习到的知识,同时也可以分享给其他人,帮助他们更快地学习和进步。

除了技术方面的分享,我也会写一些关于生活、思考和感悟的文章,并希望通过这些文章来与更多的人交流和分享。

总之,我始终相信分享是一种力量,能够让我们共同进步,也能让我们更加快乐和充实。


收获

  1. 获得了8个粉丝的关注
  2. 认识了各种领域的大佬们

日常

当前我认为创作与我的工作和学习之间存在着紧密的关系。毕竟我所从事的工作和所学习的内容都需要有一定的创造性和创新性。因此,创作已经成为了我生活的一部分。

同时,我也面临着如何平衡创作和工作学习的问题。在有限的时间和精力下,我需要合理安排时间,确保能够分配足够的精力去完成工作学习和创作的任务。这需要我在日常生活中进行有效的时间管理和科学的学习方法。

总之,创作与我的工作和学习之间是相辅相成的,需要进行有序的协调和平衡。


成就

这是我写的一段代码,当然现在看来不是很好,甚至有些糟糕,但这是我纯手写的

#include<bits/stdc++.h>
#include<iostream>
#include<windows.h>
#include "conio.h"
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0*8000) ? 1:0)
using namespace std;
void full()
{   
    HWND hwnd = GetForegroundWindow();
    int cx = GetSystemMetrics(SM_CXSCREEN); 
    int cy = GetSystemMetrics(SM_CYSCREEN); 
    LONG l_WinStyle = GetWindowLong(hwnd,GWL_STYLE);
    SetWindowLong(hwnd,GWL_STYLE,(l_WinStyle | WS_POPUP | WS_MAXIMIZE) & ~WS_CAPTION & ~WS_THICKFRAME & ~WS_BORDER);
    SetWindowPos(hwnd, HWND_TOP, 0, 0, cx, cy, 0);
}
void show()
{
HANDLE h_GAME =GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cursor_info;
GetConsoleCursorInfo(h_GAME,&cursor_info);
cursor_info.bVisible=true;
SetConsoleCursorInfo(h_GAME,&cursor_info);
}
void hide(){
	HANDLE han = GetStdHandle(-11);
    CONSOLE_CURSOR_INFO cursor;
    cursor.bVisible = 0;
    cursor.dwSize = 1;
    SetConsoleCursorInfo(han,&cursor);
}
void systen(){
	system("color F0");
	full();
		srand(time(NULL));
	hide();
	cout<<"(系统提示:你 已上线)"<<endl;
	cout<<"(系统提示:对方未回复时,你只能发送一条消息)"<<endl;
	hide();
	Sleep(750);
	cout<<"(系统提示:SirusBlack 已上线)"<<endl;
	int num=1+rand()%5;
	if(num<4){
		Sleep(2750);
		cout<<"SirusBlack:";
	}
	if(num==1){
		cout<<"你好!"<<endl;
		Beep(400,50);
		Beep(500,50);
	}else{
		if(num==2){
			cout<<"哈喽!上线了?"<<endl; 
    		Beep(400,50);
	    	Beep(500,50);
		}else{
			if(num==3){
				cout<<"在吗?"<<endl; 
				Beep(400,50);
	        	Beep(500,50);
			}
		}
	}
}
void chatbot(){
	int z=1;
	int w;
	string::size_type a,b,c,d,e,f,g,h,i,j,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10;
	string::size_type a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38;
	systen();
	while(1){
		int y[z];
    	string m;
		cout<<"你:"; 
		show();
		cin>>m;
		hide();
		//数据库
		a=m.find("我"); 
		b=m.find("你");
		c=m.find("他");
		d=m.find("好");
		f=m.find("下线");
		g=m.find("什么");
		h=m.find("是");
		i=m.find("谁");
		j=m.find("怎么");
		a1=m.find("你好");
        a4=m.find("年龄");                                                                                                                                                                 
        a14=m.find("再见");
        a15=m.find("吗"); 
        a16=m.find("AI");
		a17=m.find("人工智能");
		a18=m.find("机器人");
		a19=m.find("的");
		a20=m.find("多少");
	    a21=m.find("几");
	    a22=m.find("岁");
	    a23=m.find("哈喽");
	    a24=m.find("哈啰");
	    a25=m.find("hello");
	    a26=m.find("hi");
	    a27=m.find("年纪"); 
	    a28=m.find("多大"); 
	    a29=m.find("生日"); 
	    a30=m.find("在"); 
	    a31=m.find("拜拜");
		a32=m.find("下次");
		a33=m.find("再");
		a34=m.find("聊");
		a35=m.find("嗨"); 
		a36=m.find("男");
		a37=m.find("女");
		a38=m.find("性别"); 
			    
		Sleep(2750);
		Beep(400,50);
		Beep(500,50);
		cout<<"SirusBlack:";
		if(z>1){
			w=z-1;
			int num=1+rand()%10;
	    	while(1){
		    	if(y[z]==y[w]){
					if(num==1){
		    			cout<<"我刚刚不是说过了吗?"; 
			    	}
		    		if(num==2){
			    		cout<<"我说过了,"; 
					}
					if(num==3){
						cout<<"我才说的,"; 
					}
					if(num==4){
						cout<<"我刚刚才说过的,"; 
					}
					if(num==5){
						cout<<"又说一遍干什么?我不是才说过的吗?"; 
					}
					if(num==6){
						cout<<"嗯?不是才说过的吗?"; 
					}
					if(num==7){
						cout<<"哎呀,都说过了,"; 
					}
					if(num==8){
						cout<<"哎呀,说过了,烦不烦?"; 
					}
					if(num==9){
						cout<<"你刚刚说过了,"; 
					}
					if(num==10){
						cout<<"之前都发过了,"; 
					}
					break;
				}
				w=w-1;
				if(w<1){
					break;
				}
			}
		}else{
			w=-1;
		}
		y[z]=0;
		int num=1+rand()%3;
		if(b==string::npos==false){
		   	 if(h==string::npos==false){
		    	if(i==string::npos==false){
		    		y[z]=111;
		    		if(num==1){
		    			cout<<"我叫SirusBlack,这个系统应该显示了吧,你没看到吗?"<<endl; 
		    		}
		    		if(num==2){
		    			cout<<"你指的是昵称吧,我的名字是SirusBlack,你呢?"<<endl; 
					}
					if(num==3){
						cout<<"SirusBlack,你叫什么名字?"<<endl; 
					}
		        }
		        if(g==string::npos==false){
		        	if(y[z]==0){
		        	    y[z]=211;
		            	if(num==1){
		    		    	cout<<"我是人啊,不然呢?"<<endl; 
		    		    }
		    		    if(num==2){
		    		    	cout<<"???你觉得呢?"<<endl; 
					    }
					    if(num==3){
					    	cout<<"问这个干什么?我还能是只动物?(~_~)"<<endl;
					    }
				    }
				}
				if(a16==string::npos==false||a17==string::npos==false||a18==string::npos==false){
					if(y[z]==0){
					y[z]=211;
					if(a15==string::npos==false){
		        	    if(num==1){
		    		    	cout<<"当然不是啦,我是人啊,不然呢?"<<endl; 
		    	    	}
		    	    	if(num==2){
		    	    		cout<<"(@-@)???你觉得呢?我像是个AI吗?"<<endl; 
				    	}
				    	if(num==3){
				    		cout<<"问这个干什么?我还能是个机器人?(~o~)(~o~)(~o~)"<<endl;
				    	}
				    }else{
				    	if(num==1){
		    		    	cout<<"我不是啊,我当然是真人啦,难道你看不出来吗?"<<endl; 
		    		    }
		    		    if(num==2){
		    		    	cout<<"(@-@)???你觉得呢?我肯定不是啊"<<endl; 
					    }
					    if(num==3){
					    	cout<<"哈哈哈,你真幽默"<<endl;
					    }
					}
				}
	        	}
	        	if(a36==string::npos==false||a37==string::npos==false||a38==string::npos==false&&a19==string::npos==false){
					if(y[z]==0){
					y[z]=311;
					if(a15==string::npos==false&&a36==string::npos==false||a15==string::npos==false&&a37==string::npos==false||a38==string::npos==false&&a19==string::npos==false){
		        	    if(num==1){
		    		    	cout<<"我是男生。"<<endl; 
		    	    	}
		    	    	if(num==2){
		    	    		cout<<"是男生"<<endl; 
				    	}
				    	if(num==3){
				    		cout<<"男的"<<endl;
				    	}
				    }else{
				    	if(num==1){
		    		    	cout<<"不是,我确实是男生"<<endl; 
		    		    }
		    		    if(num==2){
		    		    	cout<<"我是男生。"<<endl; 
					    }
					    if(num==3){
					    	cout<<"是男生"<<endl;
					    }
					}
				}
	        	}
	        }
	        if(a1==string::npos==false){
	        	if(y[z]==0){
	        		y[z]=22;
		    	    if(num==1){
		    	    	cout<<"你好,我是SirusBlack。"<<endl; 
		    	    }
		        	if(num==2){
		    	    	cout<<"你也好。"<<endl; 
				    }
				    if(num==3){
				    	cout<<"你好呀!"<<endl; 
				    }
				}
		    }
		    if(a20==string::npos==false&&a22==string::npos==false||a20==string::npos==false&&a27==string::npos==false||a21==string::npos==false&&a22==string::npos==false||a28==string::npos==false&&a22==string::npos==false||a28==string::npos==false&&a27==string::npos==false||a28==string::npos==false&&a4==string::npos==false){
		    	if(y[z]==0){
		        	y[z]=32;
		        	if(num==1){
		    	    	cout<<"这个~~就不说了吧~~~~"<<endl; 
		    	    }
		        	if(num==2){
		        		cout<<"你有必要问这种问题吗?年轻人,不要随随便便问别人的年龄(@…@)"<<endl; 
			    	}
			    	if(num==3){
				    	cout<<"问这个干什么?"<<endl; 
				    }
			    }
		    }
		    if(a29==string::npos==false&&a30==string::npos==false||a29==string::npos==false&&a19==string::npos==false||a29==string::npos==false&&h==string::npos==false){
		    	if(y[z]==0){
	        		y[z]=42;
		    	    if(num==1){
		    	    	cout<<"我的生日是1月14日。"<<endl; 
		    	    }
		        	if(num==2){
		    	    	cout<<"我是一月十四日出生的。"<<endl; 
				    }
				    if(num==3){
				    	cout<<"1.14。怎么啦?"<<endl; 
				    }
			    }
		    }
        }
        if(a23==string::npos==false||a24==string::npos==false||a25==string::npos==false||a26==string::npos==false||a35==string::npos==false){
        	if(y[z]==0){
	        	y[z]=22;
		    	if(num==1){
		    	    cout<<"你好,我是SirusBlack。"<<endl; 
		    	}
		        if(num==2){
		    	    cout<<"你也好。"<<endl; 
				}
				if(num==3){
				    cout<<"你好呀!"<<endl; 
				}
			}
		}
		if(g==string::npos==false||i==string::npos==false||j==string::npos==false||a15==string::npos==false||a20==string::npos==false||a21==string::npos==false||a28==string::npos==false){
        	if(y[z]==0){
	        	y[z]=1;
		    	if(num==1){
		    	    cout<<"好问题。"<<endl; 
		    	}
		        if(num==2){
		    	    cout<<"我不造欸"<<endl; 
				}
				if(num==3){
				    cout<<"你觉得呢?"<<endl; 
				}
			}
		}
		if(f==string::npos==false||a14==string::npos==false||a31==string::npos==false||a32==string::npos==false&&a33==string::npos==false&&a34==string::npos==false){
        	if(y[z]==0){
	        	y[z]=22;
		    	if(num==1){
		    	    cout<<"那好,我也下线了。"<<endl; 
		    	}
		        if(num==2){
		    	    cout<<"行,拜拜"<<endl; 
				}
				if(num==3){
				    cout<<"好的"<<endl; 
				}
				break; 
			}
		}
		if(y[z]==0){
	       	y[z]=1;
            string answer[100] ={"呵呵","挺好的","嗯嗯","额......","不知道说什么了","一时语塞","我能说些什么","不错耶","你觉得呢","哦","真的吗?","哈哈","我也是","嗯,是的呢。","真的诶"};
            srand((int)time(NULL));
            int num = rand() % (17-0) + 0;
            cout<<answer[num]<<endl;
		}
		z=z+1;
    }
    cout<<"(系统提示:SirusBlack 已下线)"<<endl;
    while(1){
    	Sleep(10);
	}
}
int main()
{
	chatbot();
}

憧憬

未来,我将会持续不断地投入更大的努力和精力来创作更多的技术文章,不断提升自己的技术水平和写作能力,以便更好地为读者提供有价值的内容和帮助。

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值