Files
david dc3cfc8fa3 add pure virtual
add interfaces like classes
add template example
2025-02-12 13:03:15 +01:00

22 lines
372 B
C++

#pragma once
#ifndef __FUNCTIONS_H__
#define __FUNCTIONS_H__
//void functionE() {}
void functionF();
void printArray(int numbers[], size_t count);
void changeInt(int n);
void changeIntPointer(int* pN);
void changeIntReference(int& n);
template<class T>
void safeDelete(T*& pObj)
{
if (pObj != nullptr)
{
delete pObj;
pObj = nullptr;
}
}
#endif // __FUNCTIONS_H__