c++如何一个字一个字输出?

我想让一些文字一个一个输出,请帮忙解答,谢谢
最好可以简单一点,c++新手

// Q765326.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
#include <string.h>
#include <windows.h>
#include <conio.h>

using namespace std;

int main()
{
    char str[] = "好好学习天天向上,提高警惕保卫祖国!";
    for (int i = 0; i < strlen(str); i++)
    {
        HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
        COORD pos = { 0, 0 };
        SetConsoleCursorPosition(h, pos);
        cout << str[i];
        Sleep(300);
    }
}

图片说明

#include <iostream>
#include <string.h>
#include <windows.h>
#include <conio.h>
using namespace std;
int main()
{
    char str[] = "好好学习天天向上,提高警惕保卫祖国!";
    for(int i=0;i<strlen(str);i++)
    {
        cout<<str[i];
        Sleep(100);//这么简单还要问?
    }
}