|
|
|||||
|
Get the Ebook
C Tutorial
Source Code
Function Reference
|
puts()Prototype: int puts(const char *astring);Header File: stdio.h (C) or cstdio (C++) Explanation: This function, puts, will output the string pointed to by astring. It will then add a newline character. This is built in to the function. It returns a nonnegative integer if it was successful. It returns EOF if there was an error.
//Example outputs "Hello, World" with a newline
#include <cstdio>
using namespace std;
int main()
{
puts("Hello World");
}
Other Functions
Want to become a C++ programmer? The Cprogramming.com ebook, Jumping into C++, will walk you through it, step-by-step. Get Jumping into C++ today!
Popular pages
Custom Search
|
||||