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: ??
- GCC: ??
- Visual C++: ??
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