??????????
?????????????д????????????????????ζ????У??????getline()?????????????α????????·?????????????????С?
?????????????鷳??д???tab????????????
?????????????????????????л?????????????????????????????ɡ?
????????????windows???????????
??????????????
????1.????????о???????????????в???????
#include<stdio.h>
#include<string>
#include<conio.h>
#include<map>
usingnamespacestd;
#include<windows.h>
#include<stdlib.h>
#include<wincon.h>
//tab????????????????????????
voidtab_find_char(std::map<int??char*>store_compare_??char*store_input??inti_store_input_count??int&tab_count);
//????????????????????????????????
char*get_attach(constchar*stacks_??constchar*needle_);
voidconsole_start();
voidconsole_end();
voidwrite(constchar*message??intlength);
voidwrite(constchar*message);
voidread(char*buffer??size_tsize);
#include<iostream>
#include"conio.h"
//?????????λ??
staticCOORDcurser_position;
voidmain()
{
console_start();
//??????????????????
staticstd::map<int??char*>store_compare;
store_compare[0]="thread_parameter_";
store_compare[1]="parameter_";
store_compare[2]="build";
store_compare[3]="compile";
intcount=0;
charch;
while(true)
{
inttab_count=0;
charstore_input[256];
inti_store_input_count=0;
//??????λ??
HANDLEhOut;
CONSOLE_SCREEN_BUFFER_INFObInfo;
hOut=GetStdHandle(STD_OUTPUT_HANDLE);
GetConsoleScreenBufferInfo(hOut??&bInfo);
curser_position.X=bInfo.dwCursorPosition.X;
curser_position.Y=bInfo.dwCursorPosition.Y;
do
{
ch=(char)_getch();
if(ch!=' ')
{
if(ch=='q')
{
break;
}
elseif(ch==9)
{
tab_find_char(store_compare??store_input??i_store_input_count??tab_count);
tab_count++;
}
//????????????????????????????
elseif((ch>=48&&ch<=57)||(ch>=65&&ch<=122))
{
char*temp_char=newchar[1];
temp_char[0]=ch;
write(temp_char??1);
store_input[i_store_input_count]=ch;
i_store_input_count++;
}
}
}
while(ch!=' ');
write(" ");
}
console_end();
}
voidtab_find_char(std::map<int??char*>store_compare_??char*store_input??inti_store_input_count??int&tab_count)
{
if(i_store_input_count<0||tab_count<0)
{
return;
}
intmap_size=store_compare_.size();
tab_count=tab_count%map_size;
i_store_input_count+=1;
store_input[i_store_input_count-1]='

主站蜘蛛池模板: 三级在线观看视频 | 黄色a网站 | 羞羞视频免费在线观看 | 午夜高清免费观看视频 | 欧美一区日韩精品 | 午夜影放免费观看 | 国产一级特黄全黄毛片 | 成年人福利视频 | 久久精品国产精品亚洲婷婷 | 精品国产片 | 国产 日韩欧美 | 在线天堂资源 | 九草视频在线 | aaa在线观看高清免费 | 成人嗯啊视频在线观看 | 一级特黄牲大片免费视频 | 国产大片一区 | 日韩欧美中 | 激情亚州 | 国产一国产一级毛片视频在线 | 日韩精品欧美激情亚洲综合 | 日韩欧美中文字幕在线播放 | 亚洲欧洲色天使日韩精品 | 亚洲天堂首页 | 国产精品青青青高清在线 | 欧美xxxxx69xxxx| 天天爱夜夜操 | 欧美一级看片免费观看视频在线 | 夜夜添夜夜添夜夜摸夜夜摸 | 亚洲一区二区三区高清不卡 | 中国又粗又大又爽的毛片 | 性色毛片免费视频 | 99国产超薄丝袜足j在线观看 | 三级经典欧美激情 | 男人香蕉好大好爽视频 | 亚洲精品日韩专区在线观看 | 无遮挡一级毛片私人影院 | 成片免费观看视频在线网 | 午夜极品 | 麻豆一区二区大豆行情 | 欧美日韩中文一区 |