Using printf_s to output message : printf_s « Development « Visual C++ .NET






Using printf_s to output message

 
#include "stdafx.h"
using namespace System;
#include <stdio.h>

int main()
{
   String^ str = "managed string";

   // The string is automatically converted to a
   // char array for printf_s
   printf_s("%s", str );
}

   
  








Related examples in the same category