/
Exercise 5
38 lines (30 loc) · 1005 Bytes
/
Exercise 5
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
// -----------------------------------------------------------------------------
// https://lptcp.blogspot.com/
//
/*
Chapter 2 - Exercise 5
(*1) Write out a bool, a char, an int, a double, and a string.
*/
// https://github.com/l-paz91/
// -----------------------------------------------------------------------------
//--INCLUDES--//
#include "std_lib_facilities.h"
// -----------------------------------------------------------------------------
int main()
{
bool b = true;
char c = 'a';
int i = 123;
double d = 3.14;
string s = "Hello, World!";
cout << "bool: " << b << endl;
cout << "char: " << c << endl;
cout << "int: " << i << endl;
cout << "double: " << d << endl;
cout << "string: " << s << endl;
keep_window_open();
return 0;
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------