Initial commit

This commit is contained in:
Michael Reber
2019-11-15 12:59:38 +01:00
parent 40a414d210
commit b880c3ccde
6814 changed files with 379441 additions and 0 deletions
@@ -0,0 +1,24 @@
Demonstrates the use of array of pointers.
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
// initialize an array of char pointers with five fortunes
const char* const Fortune[5] =
{" Earth is a great funhouse without the fun.",
" There is always more hell that needs raising.",
" Confession is good for the soul, but bad for the career.",
" Live in a world of your own, but always welcome visitors.",
" The man who laughs has not yet been told the terrible news."
};
cout << "Here are the 5 fortunes: " << endl;
for(int i = 0; i < 5; i++)
{
cout << Fortune[i] << endl;
}
}