GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • cpprefjp - C++日本語リファレンス
  • GitHub Project

This view

  • Original page
  • New address

GeezerVison is showing cpprefjp.github.io — std::printf - cpprefjp C++日本語リファレンス

  1. リファレンス
  2. cstdio
  3. printf

最終更新日時: 2026年09月19日 21時31分51秒 (JST)
rotarymars が更新

履歴 編集

function
<cstdio>

std::printf

namespace std {
  int printf(const char * format, ...);
}

概要

標準出力に、指定された書式文字列を使用してデータを出力する。

例

#include <cstdio>

int main() {
  int n = 123;
  std::printf("Hello, World!\n%d\n", n);
}

出力

Hello, World!
123

処理系

  • Clang: 9.0.1 ✅
  • GCC: ??
  • Visual C++: ??
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.