We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7cab8 commit 0192c8cCopy full SHA for 0192c8c
examples/example6.cc
@@ -17,11 +17,11 @@ int main() {
17
18
object tab;
19
for (size_t indx = 0; indx != elems; ++indx) {
20
- tab.append(object(numbers[indx]), i);
+ tab.append(object(numbers[indx]));
21
}
22
23
object cmd("lsort -integer");
24
- cmd.append(tab, i);
+ cmd.append(tab);
25
26
// here, cmd contains the following:
27
// lsort -integer {5 7 1 6 3 9 7}
@@ -34,10 +34,10 @@ int main() {
34
35
36
cout << "\n sorted: ";
37
- elems = result.size(i);
+ elems = result.size();
38
39
- object obj(result.at(indx, i));
40
- int val = obj.get<int>(i);
+ object obj(result.at(indx));
+ int val = obj.get<int>();
41
42
cout << val << ' ';
43
0 commit comments