In this tutorial, we are going to introduce key features of C++. We assume the readers know other object-oriented and high level languages including Java and Python.
We use a sample program to show the basics structure and syntax of C++.
Host setup bellow.| #include <iostream> | |
| #include <bits/stdc++.h> | |
| #include <unordered_set> | |
| #include <sw/redis++/redis++.h> | |
| #include <hiredis/hiredis.h> | |
| using namespace std; | |
| using namespace sw::redis; | |
| int main() { | |
| time_t start, end; |
| import os | |
| import re | |
| from datetime import datetime | |
| index = 0 | |
| output = open('lineitem' + str(index) +'.sql', 'w', encoding='utf-8') | |
| output.write('insert into lineitem values ') | |
| with open('lineitem.tbl', 'r', encoding='utf-8') as f: | |
| lines = f.readlines() | |
| print(len(lines)) | |
| for l in range(len(lines)): |