MLHA - PC - Software - Programmering - C/C++ - C++
> Functions, Header-files
> Eksempel-programmer
gox.gif (837 bytes)

Reserverede ord:

  1. asm, auto
  2. break
  3. case, catch, char, class, const, continue
  4. default, delete, do, double
  5. else, enum, extern
  6. float, for, friend
  7. goto
  8. if, inline, int
  9. long
  1. new
  2. operator
  3. private, protected, public
  4. register, return
  5. short, signed, sizeof, static, struct, switch
  6. template, this, throw, try, typeof
  7. union, unsigned
  8. virtual, void, volatile
  9. while

void

Empty value

This function does not return a value and does not require any parameters:
void main(void)
{ cout << "hello";}