??????????
?????????????д????????????????????ζ????У??????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]='

主站蜘蛛池模板: 欧美精品免费xxxxx视频 | 天天干天天干天天干天天干天天干 | 久久久网站亚洲第一 | 插一插射一射视频 | 国产极品在线观看视频 | 亚洲视频中文 | 57pao国产成视频免费播放 | 99在线视频精品费观看视 | 天天澡天天摸天天添视频 | 操操网站| 最新亚洲情黄在线网站无广告 | 免费人成在线观看视频播放 | 国产精品成人观看视频国产奇米 | 狠狠色婷婷狠狠狠亚洲综合 | 亚洲国产天堂久久综合网站 | 茄子视频黄 | 日本aⅴ在线不卡免费观看 日本aaa大片 | 丁香天堂| 欧美a级在线 | 在线看污视频网站 | 国产一卡2卡3卡四卡精品网 | 一个人免费播放在线视频看片 | 中文字幕在线看视频一区二区三区 | 成人欧美一区二区三区黑人免费 | 黄色片www| 天天操综合视频 | a级片视频在线观看 | 日韩高清网站 | 国产成人成人一区二区 | 中文字幕亚洲综合久久2 | 欧美人与日本人xx在线视频 | 久久888| 中文字幕免费在线播放 | 中国三级黄色 | 亚洲色图制服诱惑 | 国产精品久久久久久一区二区三区 | 特级黄色免费片 | 亚洲精品高清中文字幕 | 国产妞干网 | 日本黄色免费网址 | 草草影院欧美三级日本 |