Resolving Typedefs
Classes | Typedefs | Functions
restypedef.cpp File Reference

Classes

struct  CoordStruct
 

Typedefs

typedef CoordStruct Coord
 

Functions

Coord add (Coord c1, Coord c2)
 

Detailed Description

An example of resolving typedefs.

Typedef Documentation

◆ Coord

typedef CoordStruct Coord

Creates a type name for CoordStruct

Function Documentation

◆ add()

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)