Visual C++ .NET/Development/printf s
Версия от 18:31, 26 мая 2010; (обсуждение)
Using printf_s to output message
<source lang="csharp">
- 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 );
}
</source>