Google
 
Webcprogramming.com




An Affiliate of AIHorizon




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

-----
Interested in advertising with us?
Please read our privacy policy.
Copyright © 1997-2005 Cprogramming.com. All rights reserved.

Geodesy Designs


Click Here