SlideShare a Scribd company logo
1 of 2
Download to read offline
1 The Gospel According to C++ (Lite version)
2 by Patrick Connor
3
4 // *******************************************************************
5 //
6 // Class representing God (a singleton)
7 //
8 // *******************************************************************
9 public class God {
10
11 // no constructors or destructors
12
13 private:
14
15 // creation of the world and humanity
16 void initUniverseAndHumanity();
17
18 // God is at work daily in the lives of everyday people
19 void workInTheWorld();
20
21 // Knowing our problem with Sin accumulation, God becomes
22 // a man (Jesus) and, loving us dearly, provides a way to clear sins.
23 void transformIntoMan3D();
24
25 // at the end of time on earth, God will judge humanity
26 void judgeTheWorld()
27 {
28 for (unsigned i = 0; i < ::getNumHumans(); i++)
29 testPerson(::getHumanSoul(i));
30 }
31
32 // judges a human based on number of sins
33 void testPerson(Soul &person)
34 {
35 if (person.getSinRecords().size() == 0)
36 ::getHeaven().admitOne(person);
37 else
38 ::getHell().admitOne(person);
39 }
40 }
41
42 // *******************************************************************
43 //
44 // Class representing the Soul
45 //
46 // *******************************************************************
47 public class Soul
48 {
49
50 public:
51 // default constructor
52 Soul(void);
53
54 // no destructor;
55
56 // accessor methods
57 std::vector<std::auto_ptr<SinRecord> >& getSins();
58
59 private:
60 // private members
61 // array containing a list of sins committed by human
62 std::vector<std::auto_ptr<SinRecord> > listOfSins;
63
64 // array of good deeds done
65 std::vector<std::auto_ptr<GoodDeed> > listOfGoodDeeds;
66
67 }
68
69 // *******************************************************************
70 //
71 // Class representing people
72 //
73 // *******************************************************************
74 public class Human
75 {
76
77 // constructors, destructors
78 Human(bool bGenderMF, Soul person);
79 ~Human();
80
81 // public methods
82 void live(int numDays);
83
84 private:
85 // private methods
86
87 // called when human trusts in Jesus' sacrifice to clear sins
88 void trustsInJesusSacrifice(void)
89 {
90 std::vector<std::auto_ptr<SinRecord> > listOfSins
91 = this->m_mySoul.getSins();
92 for (size_t i = 0; i < listOfSins.size(); i++)
93 ::getJesusList().push_back(listOfSins[i]);
94 listOfSins.pop_back();
95 }
96
97 // during daily activities humans do:
98 void doGoodDeed(GoodDeed &deed);
99 void doSin(SinRecord &sin);
100
101 // private methdods
102 Soul m_mySoul;
103
104 bool m_maleFemale;
105
106 }
107

More Related Content

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

The Gospel According to C++

  • 1. 1 The Gospel According to C++ (Lite version) 2 by Patrick Connor 3 4 // ******************************************************************* 5 // 6 // Class representing God (a singleton) 7 // 8 // ******************************************************************* 9 public class God { 10 11 // no constructors or destructors 12 13 private: 14 15 // creation of the world and humanity 16 void initUniverseAndHumanity(); 17 18 // God is at work daily in the lives of everyday people 19 void workInTheWorld(); 20 21 // Knowing our problem with Sin accumulation, God becomes 22 // a man (Jesus) and, loving us dearly, provides a way to clear sins. 23 void transformIntoMan3D(); 24 25 // at the end of time on earth, God will judge humanity 26 void judgeTheWorld() 27 { 28 for (unsigned i = 0; i < ::getNumHumans(); i++) 29 testPerson(::getHumanSoul(i)); 30 } 31 32 // judges a human based on number of sins 33 void testPerson(Soul &person) 34 { 35 if (person.getSinRecords().size() == 0) 36 ::getHeaven().admitOne(person); 37 else 38 ::getHell().admitOne(person); 39 } 40 } 41 42 // ******************************************************************* 43 // 44 // Class representing the Soul 45 // 46 // ******************************************************************* 47 public class Soul 48 { 49 50 public: 51 // default constructor 52 Soul(void); 53 54 // no destructor; 55 56 // accessor methods 57 std::vector<std::auto_ptr<SinRecord> >& getSins(); 58 59 private:
  • 2. 60 // private members 61 // array containing a list of sins committed by human 62 std::vector<std::auto_ptr<SinRecord> > listOfSins; 63 64 // array of good deeds done 65 std::vector<std::auto_ptr<GoodDeed> > listOfGoodDeeds; 66 67 } 68 69 // ******************************************************************* 70 // 71 // Class representing people 72 // 73 // ******************************************************************* 74 public class Human 75 { 76 77 // constructors, destructors 78 Human(bool bGenderMF, Soul person); 79 ~Human(); 80 81 // public methods 82 void live(int numDays); 83 84 private: 85 // private methods 86 87 // called when human trusts in Jesus' sacrifice to clear sins 88 void trustsInJesusSacrifice(void) 89 { 90 std::vector<std::auto_ptr<SinRecord> > listOfSins 91 = this->m_mySoul.getSins(); 92 for (size_t i = 0; i < listOfSins.size(); i++) 93 ::getJesusList().push_back(listOfSins[i]); 94 listOfSins.pop_back(); 95 } 96 97 // during daily activities humans do: 98 void doGoodDeed(GoodDeed &deed); 99 void doSin(SinRecord &sin); 100 101 // private methdods 102 Soul m_mySoul; 103 104 bool m_maleFemale; 105 106 } 107