what does this mean and how would i write it in C++

Ok so i'm learning SDL and I came across this line of code from Lazyfoos website:

printf( "SDL could not initialize! SDL_Error: %s\n", SDL_GetError() );

I know what printf does but i would rather use iostream instead of stdio so how would I write that line of code using C++ style output?

cout << "SDL could not initialize! ????????? << endl;
std::cout << "SDL could not initialize! SDL_Error: " << SDL_GetError() << '\n';
Topic archived. No new replies allowed.