22 lines
372 B
C++
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__
|