Classes | Typedefs | Functions
restypedef.cpp File Reference

Go to the source code of this file.

Classes

struct  CoordStruct
 

Typedefs

typedef CoordStruct Coord
 

Functions

Coord add (Coord c1, Coord c2)
 

Detailed Description

An example of resolving typedefs.

Definition in file restypedef.cpp.

Typedef Documentation

typedef CoordStruct Coord

Creates a type name for CoordStruct

Definition at line 17 of file restypedef.cpp.

Function Documentation

Coord add ( Coord  c1,
Coord  c2 
)

This function returns the addition of c1 and c2, i.e: (c1.x+c2.x,c1.y+c2.y)

Definition at line 23 of file restypedef.cpp.

24 {
25 }