#include<iostream>using namespace std;main(){ cout<<"happy bithday"; return 0;}我想让happy birthday这几个字母一个一个的显示,这个时间间隔怎么实现?? 期待你的回答,谢谢
[CODE]#include <iostream>#include <string>#include <windows.h>using namespace std;
int main(){ string a("happy birthday"); for(int i=0; i<a.size(); i++) { cout<<a[i]; Sleep(500); } cout<<endl; system("pause"); return 0;}[/CODE]
笨办法,api我还不会.
good