Skip to content

Commit 726b27a

Browse files
committedMar 6, 2019
Add examples
1 parent 48c5895 commit 726b27a

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
 

‎cpp/examples/and_keyword.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <iostream.h>
2+
3+
using namespace std;
4+
5+
int main()
6+
{
7+
if (true and true) {
8+
cout << "Hello World!";
9+
}
10+
return 0;
11+
}
12+

‎cpp/examples/not_keyword.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <iostream.h>
2+
3+
using namespace std;
4+
5+
int main()
6+
{
7+
if (not false) {
8+
cout << "Hello World!";
9+
}
10+
return 0;
11+
}
12+

‎cpp/examples/or_keyword.cpp

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <iostream.h>
2+
3+
using namespace std;
4+
5+
int main()
6+
{
7+
if (false or true) {
8+
cout << "Hello World!";
9+
}
10+
return 0;
11+
}
12+

0 commit comments

Comments
 (0)
Please sign in to comment.