Funkcje z pustą listą parametrów

Void wyswietl();

// Fig. 3.18: fig03_18.cpp

// Functions that take no arguments

#include <iostream.h>

void function1();

void function2( void );

int main()

{

function1();

function2();

return 0;

}

void function1()

{

cout << "function1 takes no arguments" << endl;

}

void function2( void )

{

cout << "function2 also takes no arguments" << endl;

}

0x08 graphic

function1 takes no arguments

function2 also takes no arguments