-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.cpp
More file actions
31 lines (23 loc) · 721 Bytes
/
Source.cpp
File metadata and controls
31 lines (23 loc) · 721 Bytes
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
// https://www.cppandfriends.com/
// https://stackoverflow.com/cv/lefticus
// https://articles.emptycrate.com/index.html
#include <cstdio>
#include <iostream>
int main() {
// :: is the scope resolution operator.
std::cout << "Hello World!";
bool b = true;
// We can also use braces {} for initialization.
bool c{false};
// All local variables should be initialized.
char c = 'a';
std::cout << "The value of variable c is: " << c;
std::cout << "The size of type char is: "
<< sizeof(char)
<< " byte(s)";
double d = 3.14;
std::cout << "The value of d is: " << d;
}
// C++ is a language like no
// other, surprising in its complexity, yet wonderfully
// sleekand elegant in so many ways.