blob: aad7a8981c77a0a23e0538976901c22378d54834 (
plain)
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
|
#include <iostream>
#include <vector>
/*
*
* 3.28
*
*
*/
using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
using std::vector;
string sa[10]; // Default initialized strings
int ia[10]; // ints with 0
int main() {
string sa2[10]; // Default initialized strings
//int ia2[10]; // Unititialized, UB
cout << sa[0] << "|" << ia[0] << "|" << sa2[0] << endl;
return 0;
}
|