# Void Functions

**URL:** <https://forum.kirupa.com/t/void-functions/292316>\
**Category:** programming\
**Created:** [July 13, 2009, 9:38am UTC](https://forum.kirupa.com/t/void-functions/292316 "2009-07-13T09:38:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaLa\_Land](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@LaLa\_Land](https://forum.kirupa.com/u/LaLa_Land)\
**Post date:** [July 13, 2009, 9:38am UTC](https://forum.kirupa.com/t/void-functions/292316/1 "2009-07-13T09:38:45Z")

</div>

I can’t seem to call any void functions, can anyone figure out why?

**Quick Example:**

_#include \<iostream\>  
using namespace std;_

_void ras();_

_int main(){  
cout \<\< ras() \<\< endl;  
cout \<\< “hi2” \<\< endl;  
return 0;  
}_

_void ras(){  
cout \<\< “hi” \<\< endl;  
}_

The compilers throws me about 20 errors for the basically the same thing. Anyone familiar with this?
