printf ze std :: string?

Moje rozumienie jest takiestring jest członkiemstd przestrzeń nazw, więc dlaczego występują następujące zdarzenia?

#include <iostream>

int main()
{
    using namespace std;

    string myString = "Press ENTER to quit program!";
    cout << "Come up and C++ me some time." << endl;
    printf("Follow this command: %s", myString);
    cin.get();

    return 0;
}

Za każdym razem, gdy program działa,myString drukuje pozornie losowy ciąg 3 znaków, taki jak na wyjściu powyżej.

questionAnswers(7)

yourAnswerToTheQuestion