GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ft_cpp/cpp_03/ex02/main.cpp at master · librity/ft_cpp

Expand file tree

/

main.cpp

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
61 lines (54 loc) · 1.64 KB
/

main.cpp

Copy path

File metadata and controls

61 lines (54 loc) · 1.64 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lpaulo-m <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/09 16:07:50 by lpaulo-m #+# #+# */
/* Updated: 2023/07/18 13:36:21 by lpaulo-m ### ########.fr */
/* */
/* ************************************************************************** */
#include "ScavTrap.hpp"
#include "FragTrap.hpp"
int main(void)
{
int i;
FragTrap a("A");
a.inspect();
FragTrap b(a);
b.inspect();
FragTrap c("C");
c.inspect();
c = b;
c.inspect();
FragTrap grumpy("Grumpy");
grumpy.inspect();
i = 110;
while (i--)
grumpy.attack("Roland");
grumpy.takeDamage(2);
grumpy.beRepaired(2);
grumpy.highFivesGuys();
grumpy.inspect();
FragTrap dopey("Dopey");
dopey.inspect();
dopey.takeDamage(49);
dopey.takeDamage(49);
dopey.takeDamage(49);
dopey.takeDamage(49);
dopey.attack("Roland");
dopey.beRepaired(2);
dopey.highFivesGuys();
dopey.inspect();
FragTrap doc("Doc");
doc.inspect();
i = 110;
while (i--)
doc.beRepaired(2);
doc.attack("Roland");
doc.takeDamage(2);
doc.highFivesGuys();
doc.inspect();
return 0;
}
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.