Logo 刘卓成的博客

博客

狼银瞎(3.141593653589793)

2023-12-17 14:54:44 By 刘卓成
介于2.0版本总是会噶,
此新版本更改了这个问题。

#include <bits/stdc++.h>
#include <Windows.h>
using namespace std;
int ls;
int ID;
void aday() {
cout << "天黑请闭眼,"<< endl;
Sleep(1500);
cout << "狼人请睁眼,"<< endl;
Sleep(1500);
cout << "你要噶谁的腰子?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "警长请睁眼,"<< endl;
Sleep(1500);
cout << "你要噶谁的腰子?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "抹除者请睁眼,"<< endl;
Sleep(1500);
cout << "你要抹除谁的身份?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "医生请睁眼,"<< endl;
Sleep(1500);
cout << "你要给谁护盾?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "女巫请睁眼,"<< endl;
Sleep(1500);
cout << "你要噶/复活谁的腰子?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "天亮了。"<< endl;
}
void brc(int n) {
ID=n;
switch(n) {
    case 1:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无技能" << endl;
        Sleep(2000);
        break;
    case 2:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 狼人......(坏人)" << endl;
        Sleep(500);
        cout << "技能:噶腰子" << endl;
        Sleep(2000);
        break;
    case 3:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无" << endl;
        Sleep(2000);
        break;
    case 4:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 抹除者......(中立)" << endl;
        Sleep(500);
        cout << "技能:使一个人变成平民" << endl;
        Sleep(2000);
        break;
    case 5:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 小丑......(中立)" << endl;
        Sleep(500);
        cout << "技能:你死则你胜利" << endl;
        Sleep(2000);
        break;
    case 6:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 狼人......(坏人)" << endl;
        Sleep(500);
        cout << "技能:噶腰子" << endl;
        Sleep(2000);
        break;
    case 7:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 医生......(好人)" << endl;
        Sleep(500);
        cout << "技能:给人护盾(可免疫一次腰子攻击)" << endl;
        Sleep(2000);
        break;
    case 8:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 警长......(好人)" << endl;
        Sleep(500);
        cout << "技能:噶内鬼的腰子(噶错自己死)" << endl;
        Sleep(2000);
        break;
    case 9:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 女巫......(中立)" << endl;
        Sleep(500);
        cout << "技能:可救活人也可噶人的腰子" << endl;
        Sleep(2000);
        break;
    case 10:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无" << endl;
        Sleep(2000);
        break;
}
}
int main() {
srand(time(NULL));
cout << "欢迎来到狼人杀。"<< endl;
Sleep(500);
cout << "正在为您匹配房间......"<< endl;
Sleep(2500);
int lsss=rand()%(50000);
cout << "匹配成功!"<<endl;
Sleep(500);
cout <<"房间号:"<<"E"<<lsss<<endl;
Sleep(1000);
cout <<"下面为你抽取身份......" <<endl;
Sleep(3000);
int n=1+rand()%(10-1+1);
brc(n);
cout << "游戏即将开始,倒计时十秒:" << endl;
for(int i=10; i>=1; i--) {
    cout << i << endl;
    Sleep(1500);
}
bool f=true,k=true,l=true;
int x=1+rand()%(10);
do {
    aday();
    x=rand()%(10);
    Sleep(500);
    if(1+rand()%10>3) {
        cout << "你噶了。"<< endl;
        Sleep(500);
        cout << "游戏结束。"<< endl;
        return 0;
    } else {
        cout <<x+1<< "号平民噶了。"<< endl;
        Sleep(1500);
        ls= rand()%(10);
        cout << ls << "号身份被抹除了。"<< endl;
        Sleep(500);
    }
    cout<<"开始投票。"<<endl;
    Sleep(1000);
    cout<<"你投几号?"<<endl;
    int tou;
    cin>>tou;
    while(tou>10||tou==ls||tou==1||tou==ID||tou==9) {
        cout<<"你投的人不可被投,请重新投票。"<<endl;
        cin>>tou;
    }
    Sleep(1000);
    cout<<"投票成功,请等待。"<<endl;
    Sleep(3000);
    if((tou+x)>10) {
        cout<<tou+x-10<<"号被投出了飞船"<<endl;
    } else {
        cout<<tou+x<<"号被投出了飞船"<<endl;
    }
    Sleep(1000);
    cout<<endl<<endl<<endl;
} while(x==2||x==3||x==5||x==7);
return 0;
}

狼人瞎(2.0)

2023-12-03 19:41:43 By 刘卓成
#include <bits/stdc++.h>
#include <Windows.h>
using namespace std;
int ls;
int ID;
void aday() {
cout << "天黑请闭眼,"<< endl;
Sleep(1500);
cout << "狼人请睁眼,"<< endl;
Sleep(1500);
cout << "你要噶谁的腰子?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "警长请睁眼,"<< endl;
Sleep(1500);
cout << "你要噶谁的腰子?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "抹除者请睁眼,"<< endl;
Sleep(1500);
cout << "你要抹除谁的身份?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "医生请睁眼,"<< endl;
Sleep(1500);
cout << "你要给谁护盾?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "女巫请睁眼,"<< endl;
Sleep(1500);
cout << "你要噶/复活谁的腰子?"<< endl;
Sleep(4500);
cout << "闭眼。"<< endl;
Sleep(500);
cout << "天亮了。"<< endl;
}
void brc(int n) {
    ID=n;
    switch(n) {
    case 1:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无技能" << endl;
        Sleep(2000);
        break;
    case 2:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 狼人......(坏人)" << endl;
        Sleep(500);
        cout << "技能:噶腰子" << endl;
        Sleep(2000);
        break;
    case 3:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无" << endl;
        Sleep(2000);
        break;
    case 4:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 抹除者......(中立)" << endl;
        Sleep(500);
        cout << "技能:使一个人变成平民" << endl;
        Sleep(2000);
        break;
    case 5:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 小丑......(中立)" << endl;
        Sleep(500);
        cout << "技能:你死则你胜利" << endl;
        Sleep(2000);
        break;
    case 6:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 狼人......(坏人)" << endl;
        Sleep(500);
        cout << "技能:噶腰子" << endl;
        Sleep(2000);
        break;
    case 7:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 医生......(好人)" << endl;
        Sleep(500);
        cout << "技能:给人护盾(可免疫一次腰子攻击)" << endl;
        Sleep(2000);
        break;
    case 8:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 警长......(好人)" << endl;
        Sleep(500);
        cout << "技能:噶内鬼的腰子(噶错自己死)" << endl;
        Sleep(2000);
        break;
    case 9:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 女巫......(中立)" << endl;
        Sleep(500);
        cout << "技能:可救活人也可噶人的腰子" << endl;
        Sleep(2000);
        break;
    case 10:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无" << endl;
        Sleep(2000);
        break;
    }
}
int main() {
srand(time(NULL));
cout << "欢迎来到狼人杀。"<< endl;
Sleep(500);
cout << "正在为您匹配房间......"<< endl;
Sleep(2500);
int lsss=rand()%(50000);
cout << "匹配成功!"<<endl;
Sleep(500);
cout <<"房间号:"<<"E"<<lsss<<endl;
Sleep(1000);
cout <<"下面为你抽取身份......" <<endl;
Sleep(3000);
int n=1+rand()%(10-1+1);
brc(n);
cout << "游戏即将开始,倒计时十秒:" << endl;
for(int i=10; i>=1; i--) {
    cout << i << endl;
    Sleep(1500);
}
bool f=true,k=true,l=true;
int x=1+rand()%(10);
do {
    aday();
    x=1+rand()%(10);
    Sleep(500);
    if(1+rand()%10>5) {
        cout << "你噶了。"<< endl;
        Sleep(500);
        cout << "游戏结束。"<< endl;
        return 0;
    } else {
        cout << "1号平民噶了。"<< endl;
        Sleep(1500);
        ls= rand()%(10);
        cout << ls << "号身份被抹除了。"<< endl;
        Sleep(500);
    }
    cout<<"开始投票。"<<endl;
    Sleep(1000);
    cout<<"你投几号?"<<endl;
    int tou;
    cin>>tou;
    while(tou>10||tou==ls||tou==1||tou==ID||tou==9) {
        cout<<"你投的人不可被投,请重新投票。"<<endl;
        cin>>tou;
    }
    Sleep(1000);
    cout<<"投票成功,请等待。"<<endl;
    Sleep(3000);
    if((tou+x)>10) {
        cout<<tou+x-10<<"号被投出了飞船"<<endl;
    } else {
        cout<<tou+x<<"号被投出了飞船"<<endl;
    }
    Sleep(1000);
    cout<<endl<<endl<<endl;
} while(x==2||x==3||x==5||x==7);
return 0;
}

狼人杀(最新版)

2023-11-19 15:35:23 By 刘卓成
//耗时两年半//
#include <bits/stdc++.h>
#include <Windows.h>
using namespace std;
int ls;
int ID;
void aday(){

    cout << "天黑请闭眼,"<< endl; 
    Sleep(1500);
    cout << "狼人请睁眼,"<< endl; 
    Sleep(1500);
    cout << "你要噶谁的腰子?"<< endl;
    Sleep(4500); 
    cout << "闭眼。"<< endl;
    Sleep(500); 
    cout << "警长请睁眼,"<< endl; 
    Sleep(1500);
    cout << "你要噶谁的腰子?"<< endl;
    Sleep(4500); 
    cout << "闭眼。"<< endl;
    Sleep(500); 
    cout << "抹除者请睁眼,"<< endl; 
    Sleep(1500);
    cout << "你要抹除谁的身份?"<< endl;
  Sleep(4500); 
    cout << "闭眼。"<< endl;
    Sleep(500); 
    cout << "医生请睁眼,"<< endl; 
    Sleep(1500);
    cout << "你要给谁护盾?"<< endl;
    Sleep(4500); 
    cout << "闭眼。"<< endl;
    Sleep(500); 
    cout << "女巫请睁眼,"<< endl; 
    Sleep(1500);
     cout << "你要噶/复活谁的腰子?"<< endl;
    Sleep(4500); 
    cout << "闭眼。"<< endl;
    Sleep(500); 
    cout << "天亮了。"<< endl;
} 
void brc(int n){
    ID=n;
    switch(n){
        case 1:
          cout << "你是" << ID << "号,";
          cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无技能" << endl;
        Sleep(2000);
        break;
    case 2:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 狼人......(坏人)" << endl;
        Sleep(500);
        cout << "技能:噶腰子" << endl;
        Sleep(2000);
        break; 
    case 3:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无" << endl;
        Sleep(2000);
        break;
    case 4:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 抹除者......(中立)" << endl;
        Sleep(500);
        cout << "技能:使一个人变成平民" << endl;
        Sleep(2000);
        break;
    case 5:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 小丑......(中立)" << endl;
        Sleep(500);
        cout << "技能:你死则你胜利" << endl;
        Sleep(2000);
        break;
    case 6:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 狼人......(坏人)" << endl;
        Sleep(500);
        cout << "技能:噶腰子" << endl;
        Sleep(2000);
        break;
    case 7:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 医生......(好人)" << endl;
        Sleep(500);
        cout << "技能:给人护盾(可免疫一次腰子攻击)" << endl;
        Sleep(2000);
        break;
    case 8:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 警长......(好人)" << endl;
        Sleep(500);
        cout << "技能:噶内鬼的腰子(噶错自己死)" << endl;
        Sleep(2000);
        break;
    case 9:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 女巫......(中立)" << endl;
        Sleep(500);
        cout << "技能:可救活人也可噶人的腰子" << endl;
        Sleep(2000);
        break;
    case 10:
        cout << "你是" << ID << "号,";
        cout << "你的身份是: 平民......(好人)" << endl;
        Sleep(500);
        cout << "技能:无" << endl;
        Sleep(2000);
        break;
    }
}
int main(){
    cout << "欢迎来到狼人杀。"<< endl;
    Sleep(500);
    cout << "正在为您匹配房间......"<< endl;
    Sleep(2500);
    int lsss=rand()%(500);cout<<<<"号被投出了飞船"<<endl;
    cout << "匹配成功!"<<endl;
    Sleep(500);
  cout <<"房间号:"<<"E"<<lsss<<endl;
    Sleep(1000);
    cout <<"下面为你抽取身份......" <<endl;
    srand(time(NULL));
    Sleep(3000);
    int n=1+rand()%(10-1+1);
    brc(n);
    cout << "游戏即将开始,倒计时十秒:" << endl;
    for(int i=10;i>=1;i--){
    cout << i << endl;
    Sleep(1500);
    }
    bool f=true,k=true,l=true;
    int x=1+rand()%(10);
    do{
    aday();
    x=1+rand()%(10);    
      Sleep(500); 
     if(1+rand()%(10-1+1)>5) {
        cout << "你噶了。"<< endl;
        Sleep(500); 
        cout << "游戏结束。"<< endl;
        return 0;
     }else{
        cout << "1号平民噶了。"<< endl;
        Sleep(1500);
        ls= rand()%(10);
        cout << ls << "号身份被抹除了。"<< endl;
        Sleep(500); 
     }
    cout<<"开始投票。"<<endl; 
    Sleep(1000); 
    cout<<"你投几号?"<<endl; 
    int tou;
    cin>>tou;
    while(tou>10||tou==ls||tou==1||tou==ID||tou==9) {
        cout<<"你投的人不可被投,请重新投票。"<<endl; 
        cin>>tou; 
    }
    Sleep(1000); 
    cout<<"投票成功,请等待。"<<endl; 
    Sleep(3000);
    if((tou+x)>10){
        cout<<tou+x-10<<"号被投出了飞船"<<endl;
    }else{
        cout<<tou+x<<"号被投出了飞船"<<endl;
    }
    Sleep(1000);
    cout<<endl<<endl<<endl; 
}while(x==2||x==3||x==5||x==7);
return 0;
}

代码库(续)

2023-06-17 14:36:06 By 刘卓成
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#ifndef _INC_STRING
#define _INC_STRING

#include <crtdefs.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef _NLSCMP_DEFINED
#define _NLSCMP_DEFINED
#define _NLSCMPERROR 2147483647
#endif

#ifndef NULL
#ifdef __cplusplus
#ifndef _WIN64
#define NULL 0
#else
#define NULL 0LL
#endif  /* W64 */
#else
#define NULL ((void *)0)
#endif
#endif

#define _WConst_return _CONST_RETURN

#ifndef _CRT_MEMORY_DEFINED
#define _CRT_MEMORY_DEFINED
  _CRTIMP void *__cdecl _memccpy(void *_Dst,const void *_Src,int _Val,size_t _MaxCount);
  _CONST_RETURN void *__cdecl memchr(const void *_Buf ,int _Val,size_t _MaxCount);
  _CRTIMP int __cdecl _memicmp(const void *_Buf1,const void *_Buf2,size_t _Size);
  _CRTIMP int __cdecl _memicmp_l(const void *_Buf1,const void *_Buf2,size_t _Size,_locale_t _Locale);
  int __cdecl memcmp(const void *_Buf1,const void *_Buf2,size_t _Size);
  void * __cdecl memcpy(void * __restrict__ _Dst,const void * __restrict__ _Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  void * __cdecl mempcpy (void *_Dst, const void *_Src, size_t _Size);
  void * __cdecl memset(void *_Dst,int _Val,size_t _Size);
#ifndef    NO_OLDNAMES
  void * __cdecl memccpy(void *_Dst,const void *_Src,int _Val,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  int __cdecl memicmp(const void *_Buf1,const void *_Buf2,size_t _Size) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
#endif
#endif
  char * __cdecl _strset(char *_Str,int _Val) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  char * __cdecl _strset_l(char *_Str,int _Val,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  char * __cdecl strcpy(char * __restrict__ _Dest,const char * __restrict__ _Source);
  char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
  int __cdecl strcmp(const char *_Str1,const char *_Str2);
  size_t __cdecl strlen(const char *_Str);
  size_t __cdecl strnlen(const char *_Str,size_t _MaxCount);
  void *__cdecl memmove(void *_Dst,const void *_Src,size_t _Size) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP char *__cdecl _strdup(const char *_Src);
  _CONST_RETURN char *__cdecl strchr(const char *_Str,int _Val);
  _CRTIMP int __cdecl _stricmp(const char *_Str1,const char *_Str2);
  _CRTIMP int __cdecl _strcmpi(const char *_Str1,const char *_Str2);
  _CRTIMP int __cdecl _stricmp_l(const char *_Str1,const char *_Str2,_locale_t _Locale);
  int __cdecl strcoll(const char *_Str1,const char *_Str2);
  _CRTIMP int __cdecl _strcoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale);
  _CRTIMP int __cdecl _stricoll(const char *_Str1,const char *_Str2);
  _CRTIMP int __cdecl _stricoll_l(const char *_Str1,const char *_Str2,_locale_t _Locale);
  _CRTIMP int __cdecl _strncoll (const char *_Str1,const char *_Str2,size_t _MaxCount);
  _CRTIMP int __cdecl _strncoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);
  _CRTIMP int __cdecl _strnicoll (const char *_Str1,const char *_Str2,size_t _MaxCount);
  _CRTIMP int __cdecl _strnicoll_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);
  size_t __cdecl strcspn(const char *_Str,const char *_Control);
  _CRTIMP char *__cdecl _strerror(const char *_ErrMsg) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  char *__cdecl strerror(int) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP char *__cdecl _strlwr(char *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  char *strlwr_l(char *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  char *__cdecl strncat(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  int __cdecl strncmp(const char *_Str1,const char *_Str2,size_t _MaxCount);
  _CRTIMP int __cdecl _strnicmp(const char *_Str1,const char *_Str2,size_t _MaxCount);
  _CRTIMP int __cdecl _strnicmp_l(const char *_Str1,const char *_Str2,size_t _MaxCount,_locale_t _Locale);
  char *strncpy(char * __restrict__ _Dest,const char * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP char *__cdecl _strnset(char *_Str,int _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP char *__cdecl _strnset_l(char *str,int c,size_t count,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CONST_RETURN char *__cdecl strpbrk(const char *_Str,const char *_Control);
  _CONST_RETURN char *__cdecl strrchr(const char *_Str,int _Ch);
  _CRTIMP char *__cdecl _strrev(char *_Str);
  size_t __cdecl strspn(const char *_Str,const char *_Control);
  _CONST_RETURN char *__cdecl strstr(const char *_Str,const char *_SubStr);
  char *__cdecl strtok(char * __restrict__ _Str,const char * __restrict__ _Delim) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP char *__cdecl _strupr(char *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP char *_strupr_l(char *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  size_t __cdecl strxfrm(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount);
  _CRTIMP size_t __cdecl _strxfrm_l(char * __restrict__ _Dst,const char * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);

#ifndef    NO_OLDNAMES
  char *__cdecl strdup(const char *_Src) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  int __cdecl strcmpi(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  int __cdecl stricmp(const char *_Str1,const char *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  char *__cdecl strlwr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  int __cdecl strnicmp(const char *_Str1,const char *_Str,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  int __cdecl strncasecmp (const char *, const char *, size_t);
  int __cdecl strcasecmp (const char *, const char *);
#ifndef __CRT__NO_INLINE
  __CRT_INLINE int __cdecl strncasecmp (const char *__sz1, const char *__sz2, size_t __sizeMaxCompare) { return _strnicmp (__sz1, __sz2, __sizeM        axCompare); }
  __CRT_INLINE int __cdecl strcasecmp (const char *__sz1, const char *__sz2) { return _stricmp (__sz1, __sz2); }
#else
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif /* !__CRT__NO_INLINE */
  char *__cdecl strnset(char *_Str,int _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  char *__cdecl strrev(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  char *__cdecl strset(char *_Str,int _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
  char *__cdecl strupr(char *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
#endif

#ifndef _WSTRING_DEFINED
#define _WSTRING_DEFINED

  _CRTIMP wchar_t *__cdecl _wcsdup(const wchar_t *_Str);
  wchar_t *__cdecl wcscat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CONST_RETURN wchar_t *__cdecl wcschr(const wchar_t *_Str,wchar_t _Ch);
  int __cdecl wcscmp(const wchar_t *_Str1,const wchar_t *_Str2);
  wchar_t *__cdecl wcscpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  size_t __cdecl wcscspn(const wchar_t *_Str,const wchar_t *_Control);
  size_t __cdecl wcslen(const wchar_t *_Str);
  size_t __cdecl wcsnlen(const wchar_t *_Src,size_t _MaxCount);
  wchar_t *wcsncat(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  int __cdecl wcsncmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);
  wchar_t *wcsncpy(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  wchar_t *__cdecl _wcsncpy_l(wchar_t * __restrict__ _Dest,const wchar_t * __restrict__ _Source,size_t _Count,_locale_t _Locale) __MINGW_ATTRIB_        DEPRECATED_SEC_WARN;
  _CONST_RETURN wchar_t *__cdecl wcspbrk(const wchar_t *_Str,const wchar_t *_Control);
  _CONST_RETURN wchar_t *__cdecl wcsrchr(const wchar_t *_Str,wchar_t _Ch);
  size_t __cdecl wcsspn(const wchar_t *_Str,const wchar_t *_Control);
  _CONST_RETURN wchar_t *__cdecl wcsstr(const wchar_t *_Str,const wchar_t *_SubStr);
  wchar_t *__cdecl wcstok(wchar_t * __restrict__ _Str,const wchar_t * __restrict__ _Delim) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP wchar_t *__cdecl _wcserror(int _ErrNum) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP wchar_t *__cdecl __wcserror(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP int __cdecl _wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2);
  _CRTIMP int __cdecl _wcsicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);
  _CRTIMP int __cdecl _wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);
  _CRTIMP int __cdecl _wcsnicmp_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);
  _CRTIMP wchar_t *__cdecl _wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP wchar_t *__cdecl _wcsrev(wchar_t *_Str);
  _CRTIMP wchar_t *__cdecl _wcsset(wchar_t *_Str,wchar_t _Val) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
  _CRTIMP wchar_t *__cdecl _wcslwr(wchar_t *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     _CRTIMP wchar_t *_wcslwr_l(wchar_t *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
      _CRTIMP wchar_t *__cdecl _wcsupr(wchar_t *_String) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     _CRTIMP wchar_t *_wcsupr_l(wchar_t *_String,_locale_t _Locale) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
     size_t __cdecl wcsxfrm(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount);
     _CRTIMP size_t __cdecl _wcsxfrm_l(wchar_t * __restrict__ _Dst,const wchar_t * __restrict__ _Src,size_t _MaxCount,_locale_t _Locale);
         int __cdecl wcscoll(const wchar_t *_Str1,const wchar_t *_Str2);
      _CRTIMP int __cdecl _wcscoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);
     _CRTIMP int __cdecl _wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2);
     _CRTIMP int __cdecl _wcsicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,_locale_t _Locale);
          _CRTIMP int __cdecl _wcsncoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);
     _CRTIMP int __cdecl _wcsncoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);
          _CRTIMP int __cdecl _wcsnicoll(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount);
      _CRTIMP int __cdecl _wcsnicoll_l(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount,_locale_t _Locale);

    #ifndef    NO_OLDNAMES
     wchar_t *__cdecl wcsdup(const wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
    #define wcswcs wcsstr
     int __cdecl wcsicmp(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
     int __cdecl wcsnicmp(const wchar_t *_Str1,const wchar_t *_Str2,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
     wchar_t *__cdecl wcsnset(wchar_t *_Str,wchar_t _Val,size_t _MaxCount) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
     wchar_t *__cdecl wcsrev(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
     wchar_t *__cdecl wcsset(wchar_t *_Str,wchar_t _Val) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
     wchar_t *__cdecl wcslwr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
     wchar_t *__cdecl wcsupr(wchar_t *_Str) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
      int __cdecl wcsicoll(const wchar_t *_Str1,const wchar_t *_Str2) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
    #endif
    #endif

    #ifdef __cplusplus
    }
    #endif

    #include <sec_api/string_s.h>
    #endif

神秘iostream代码库(续)

2023-05-20 09:22:31 By 刘卓成
那天
我开了连点器,准备玩一玩麦块(MC)
一不小心点到了
#include<iostream>
    using namespace std;
    int main(){  
    int x=0,s=0;
    for(int i=0;i<=100;i++){
        x=i*i*3+i*i;
        s=8000+i*100+i*10+9;
        if(x*x==s){
            cout<<"["<<i<<"*"<<"("<<i<<"*"<<3<<"+"<<i<<")"<<"]"<<"^"<<2<<"="<<8000+i*100+i*10+9;
        }
    }  
    return 0;
}
中的include<iostream>
当时连点器是0.02秒一次
也就是说一秒50次!!!(注意这个数字)
因此我推断
快速连点include<iostream>多次
可已进入这个界面





另外
代码名字就叫iostream

神秘iostream代码库

2023-05-14 21:02:24 By 刘卓成
中间都是一些版权声明(有种遗书的感觉)
Standard iostream objects -*- C++ -*-

Copyright (C) 1997-2013 Free Software Foundation, Inc.

This file is part of the GNU ISO C++ Library.  This library is free
software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option)
any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.

You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
gnuorglicenses

** @file include/iostream
 *  This is a Standard C++ Library header.
 *


 ISO C++ 14882: 27.3  Standard iostream objects


#ifndef _GLIBCXX_IOSTREAM
#define _GLIBCXX_IOSTREAM 1

#pragma GCC system_header

#include <bits/c++config.h>
#include <ostream>
#include <istream>

namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION

  **
   *  @name Standard Stream Objects
   *
   *  The &lt;iostream&gt; header declares the eight <em>standard stream
   *  objects</em>.  For other declarations, see
   *  gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt11ch24
   *  and the @link iosfwd I/O forward declarations @endlink
   *
   *  They are required by default to cooperate with the global C
   *  library's @c FILE streams, and to be available during program
   *  startup and termination. For more information, see the HOWTO
   *  linked to above.
  *
  @{
  extern istream cin;        /// Linked to standard input
  extern ostream cout;        /// Linked to standard output
  extern ostream cerr;        /// Linked to standard error (unbuffered)
  extern ostream clog;        /// Linked to standard error (buffered)

#ifdef _GLIBCXX_USE_WCHAR_T
  extern wistream wcin;        /// Linked to standard input
  extern wostream wcout;    /// Linked to standard output
  extern wostream wcerr;    /// Linked to standard error (unbuffered)
  extern wostream wclog;    /// Linked to standard error (buffered)
#endif
  @}

   For construction of filebuffers for cout, cin, cerr, clog et. al.
  static ios_base::Init __ioinit;

_GLIBCXX_END_NAMESPACE_VERSION
}  namespace

#endif * _GLIBCXX_IOSTREAM *

如何装逼

2023-04-26 11:56:42 By 刘卓成
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,i,j,k;
cin>>n;
int a[n];
for(int i=0;i<=n;i++){
    cout<<n*n+54-j*j+54+i-k;
    for(int k=i;k<=n*n;k++){
        cout<<n*n+54-3646+54+i-k;
        for(int j=k;j<=n*2;j++){
            cout<<n*n+5454-j*j+i-k;
                    if(i==5){
                    i=54-j*j+i-k;
                    }
                }
        }
    }
    return 0;
}

        输入10086
       即可装逼

新博客

2023-03-25 14:47:48 By 刘卓成
#include<iostream>
using namespace std;
void rjz(int r){
    if(r==0){
        return ;
    }
    rjz(r/2);
    cout<<r%2;
}
int main(){
    int r;
    cin>>r;
    if(r==0){
        cout<<0;
    }
    rjz(r);
    return 0;
}

#74

2023-03-25 13:31:55 By 刘卓成

7455

2023-03-18 14:39:00 By 刘卓成

7455

include

using namespace std; int zhshu(int x){ if(x==5){ return 10; }else{ return zhshu(x+1)+2; } } int main(){ int n=1; cout<<zhshu(n); return 0; }

共 17 篇博客