Visual C++ .NET/Development/printf s — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (1 версия)
 
(нет различий)

Текущая версия на 15:04, 26 мая 2010

Using printf_s to output message

<source lang="csharp">

  1. include "stdafx.h"

using namespace System;

  1. 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 );

}

 </source>