blob: 25077ce46768088f4aa5a1a8f9cdfb0f0087890c (
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
|
#include <iostream>
#include "sales_data.hpp"
#include "sales_item.hpp"
/*
*
* 3.9
*
* Program does compile but not sure if valid. It has a size of 0 so its probably undefined behavior.
*/
using std::string;
using std::cout;
using std::cin;
using std::cerr;
using std::clog;
using std::endl;
int main () {
string s;
auto Size = s.size();
cout << Size << endl;
cout << s[0] << endl;
return 0;
}
|