Yan text storm + Yan text selection game

I feel that I must express my joy with some words at this time_
be prompted by a sudden impulse

//I wanted to use random numbers, but I spent hours looking at the whole time Konjaku of H
//The biggest gain of this winter vacation: I learned the word konjaku hhh
I'm curious about a lot of colorful words. If you put them in ordinary text, they are "?" Or squares...
. . . . (๑→ ܫ ←) becomes (?)... orz…
So you may not be able to write qwq

wowwow!!! Konjaku was found on the forum,! You can use Notepad to avoid random code, really!! But I don't know how to display it on devc + +~
oh, when saving, remind that this is a character in Unicode format. When saving as ANSI code, the character will be lost....... Although the Unicode TXT is saved, but... The operation is like this... %o%???)"g
Finally, at present, we can only give in to ansi_ (: з」 ∠)_
I want to make one, or delete those with garbled codes tomorrow..
Hey.
Or so, yes? Re select if you want!!
You can try
But there is another problem. We can't distinguish between the blank space of face text and a single blank space...

Finally, I found that the 360 encyclopedia said that the full angle face is a face that doesn't mess with code... therefore
Now the question is how to distinguish Chinese characters from English—— See sizeof(char[0])==4? No, the first Chinese characters are char[0] and [1]... Finally, they can only be placed regularly without spaces qwq (in fact, wyw boss taught me that it's OK to read the end of '\ n', and konjak can't learn c + + string s, but I'm really Brainy. Change the spaces one by one, www, and modify it next time)
//You don't have to wchar_t is also OK. It doesn't need to judge Chinese characters at all. Stupid force still changes the law one by one... Because there are Chinese characters or strokes in some faces...
(after a long time) well, it's finally finished. It's so fun (≥ ▽≤)/~
Although there is no beautiful page www, I will learn to visualize www in the future

————————————emoji.txt as follows————————

:-)

smile

:-(

Displeasure

;-)

Wink

:-D

happy

:-P

Stick out your tongue

:-O

surprised

8-)

The smile of the glasses wearer

xc==

Vomit

^-^

smile


@_@

Confused and disoriented

o_O

be surprised at

^_^

happy

XD 

It is often used to laugh happily and open your mouth

T_T

Cry very sad

-_-b

Sweat

=_="

but

=3=

Kiss, toot

^o^/

Cuddle

(^O^)/

happy

._/.#

get angry

(=^_^=)

Meow cat

( ̄(work) ̄)

Big bear

<{=·····

Crows fly by, cold

orz 

Lost to you

<( ̄︶ ̄)>

Satisfied and proud

<( ̄︶ ̄)/

Meet and reach out for approval

<(@ ̄︶ ̄@)>

Blush contentedly

(# ̄▽ ̄#)

Shyness

\( ̄︶ ̄)/

Cuddle

b( ̄▽ ̄)d

Put up your thumbs and say yes

╰( ̄▽ ̄)╭

beam with joy

( ̄︶ ̄)↗

Let's go

○(* ̄︶ ̄*)○

Eat and sleep well

♀( ̄▽ ̄)/

Quality girl

♂( ̄▽ ̄)/

Quality boy

╮(╯◇╰)╭

Chirp~Chirp~Have a kiss

╭(′▽‵)╭(′▽‵)╭(′▽‵)╯

GO!

( ̄▽ ̄)~■□~( ̄▽ ̄)

cheers 

<( ̄︶ ̄)><( ̄︶ ̄)><( ̄︶ ̄)>

When we are together

(┬_┬)

shed tears

(>﹏<)

pain

(┬_┬)↘

fall

〒▽〒

It's a hard life

~>_<~

Crying...

...(⊙_⊙;)... 

Quack?

( ̄∞ ̄)

pig!

(︶^︶)

dissatisfaction

╰(‵□′)╯

Rage

((‵□′))

Rage

(╯-_-)╯╧╧

Turn the table A

(︶^︶)=Convex

Than middle finger

(╯‵□′)╯︵┴─┴

Turn the table B

┴─┴︵╰(‵□′╰)

Turn the table C

╭∩╮( ̄▽ ̄)╭∩╮

Hum, fuck you(Despise you)

┴┴︵╰(‵□′)╯︵┴┴

Lift the table!!!

(╬ ̄Dish ̄)=○#( ̄#)3 ̄)

Watch boxing

<(‵□′)>───Cε(┬_┬)3

Angry twist your ears

<( ̄^ ̄)︵θ︵θ︵θ︵θ︵☆(>mouth<-)

Shadowless foot attack

〈(_\_)〉

Apologize and bow

m(_,_)m

Kowtow

( ̄c ̄)y▂ξ

Smoking 001

 ̄3 ̄▂ξ

Smoking 002

(~′-`)y-~

Smoking 003

(~ ̄▽ ̄~)

play dumb

╭(─Succinate%)╮▃▇

Uh huh, don't bother

("▔□▔)/("▔□▔)/("▔□▔)/

Big cold field
	
(メ▼へ▼)/?{︻┻┳═one

Kill you!!

-(>mouth<-)
	
embarrassed


( ̄Q ̄)╯

Get lost.

╮( ̄▽ ̄")╭

but

∑(_mouth_||

Surprised, speechless

ψ(._.~)>

note A

_ψ_(._.~)メモ

note B


——————Choose face text game cpp is as follows——————

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
wchar_t ch[1000][100];
int main()
{
	system("color 0e");
	FILE*fp=fopen("emoji.txt","r"); 
	FILE*op=fopen("award.txt","w");
	int i=1; 
	while(~fscanf(fp,"%s",ch[i])){
		i++;
	}
	int num=i-1;
	int cnt=num/2;
	printf("Make sure you press 0 for the soft draw. You should look around carefully and press 1 for selection,"
		"In total%d Oh~(Have the ability to try others): ",cnt);
	int flag1;
again:
	scanf("%d",&flag1);
	switch (flag1){
		case 0:
			
			int flag2;
			do{
				srand((unsigned)time(NULL));
				int temp=rand()%cnt+1;
				printf("The first%d Oh, my God\n Yan Wenshi:%s\n intend:\t%s\n",temp,ch[2*temp-1],ch[2*temp]);
				printf("I think it's OK. If you order 6~I'll give it to you~~\n");
				int flag3;
				scanf("%d",&flag3);
				if(flag3==6){
					fprintf(op,"The first%d Oh, my God\n Yan Wenshi:%s\n intend:\t%s\n",temp,ch[2*temp-1],ch[2*temp]);
					printf("OK, I'll be in a hurry..Hey, it's done~\n"); 
				}else{
					printf("Well, do you want another one~\n");
				}
				printf("As long as your enthusiasm for me is not 0, I will continue~(Enter 0 to end)\n"); 
				scanf("%d",&flag2); 
			}while(flag2);
			printf("Thank you, sir~It has been packed and put in award.txt Oh, please take it away in time, or it will disappear next time");
			break;
		case 1:
			for(int i=1;i<=cnt;i++){
				printf("The first%d Oh, my God\n Yan Wenshi:%s\n intend:\t%s\n",i,ch[2*i-1],ch[2*i]);
			}	
			printf("What do you like~(Enter serial number pa~Good boy paper,End of input 0)(Better not exceed%d oh):\n",cnt);
			int temp;
			while(scanf("%d",&temp),temp){
				if(temp<=cnt&&temp>0){
					fprintf(op,"The first%d Oh, my God\n Yan Wenshi:%s\n intend:\t%s\n",temp,ch[2*temp-1],ch[2*temp]);
					printf("OK, I'll be in a hurry..Hey, it's done~\n"); 
					printf("Well, well, what's next~~\n");
				}
				else {
					printf("oh Didn't buy enough goods qwq\n"); 
				} 
			}
			printf("Thank you, sir~Already packed in award.txt Oh, please take it away in time, or it will disappear next time"); 
			break;
		default:
			printf("Nothing. Ow T_T..Do you want to do it again qwq,"
					"For another wave, please press 1. If you don't play, press 0:(If you have the ability, try another one. Hey, hey)"); 
			int flag4;
			scanf("%d",&flag4);
	
			switch (flag4){
				case 0:
					printf("You are welcome to come again~~~\n");
					break;
				case 1:
					printf("OK, one more time, BAM:"); 
					goto again;
				default:
					printf("Disobedient smelly child, I won't play with you anymore╭(╯^╰)╮\n");
					printf("Congratulations on finding the treasure hhhh\n"); 
					//The following is konjaku H occasional hhh 
				    char a[10];    //Define an array of character types to facilitate players to type various character information from the keyboard
				
				flag:
				
				    printf("Please enter\"I'm a pig\",Otherwise, the computer will shut down in two minutes\n");  //The phrase "I am a pig" can be changed freely by the maker, but the corresponding position behind should also be changed
				
				    system("shutdown -s -t 120");    //60 second countdown shutdown command, the time can be changed freely
				
				    scanf("%s", a);             //Players type strings from the keyboard
				
				    if (strcmp(a, "I'm a pig") == 0){  //Compare two strings. IF they are equal, execute the statement under IF
				
				        printf("Congratulations on your success in choosing your sign,Take the initiative to admit reality!\n");
				
				        system("shutdown -a");  //End the automatic shutdown countdown command. Of course, you can also break the rules and cancel the statement, but that would be too evil
				
				    }
				
				    else
				
				        goto flag;        //Jump statement, jump to the flag mark and continue execution
					break;
			}
	} 

	
	//text

	
   	return 0;
}

-----
Kaisen!!
Note: pay attention to put emoji and cpp in one folder (watch will generate it by itself)
Note that emoji must have one line of symbol meaning to ensure that the read string is correct
Have fun~~~

Posted by Felex on Fri, 15 Apr 2022 19:07:44 +0930