Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ define function in header

#ifndef FUNCTIONS_H_INCLUDED
#define FUNCTIONS_H_INCLUDED

int add(int a, int b)
{
   return a + b;
}

#endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #define #function #header
ADD COMMENT
Topic
Name
7+9 =