Visual C++ .NET/Development/printf s

Материал из .Net Framework эксперт
Версия от 15:04, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

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>