File tree Expand file tree Collapse file tree 8 files changed +289
-77
lines changed Expand file tree Collapse file tree 8 files changed +289
-77
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ int main(){
21
21
DeleteImage (imageReference->image );
22
22
}else {
23
23
cerr << " Error: " ;
24
- for (int i = 0 ; i < errorMessage. string ->size (); i++){
25
- cerr << errorMessage. string [i] ;
24
+ for (int i = 0 ; i < errorMessage-> string ->size (); i++){
25
+ wcerr << errorMessage-> string -> at (i) ;
26
26
}
27
27
cerr << endl;
28
28
}
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ int main(){
19
19
DeleteImage (imageReference->image );
20
20
}else {
21
21
cerr << " Error: " ;
22
- for (char c : errorMessage. string ){
23
- cerr << c;
22
+ for (wchar_t c : * errorMessage-> string ){
23
+ wcerr << c;
24
24
}
25
25
cerr << endl;
26
26
}
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ int main(){
39
39
DeleteImage (imageReference->image );
40
40
}else {
41
41
cerr << " Error: " ;
42
- for (int i = 0 ; i < errorMessage. string ->size (); i++){
43
- cerr << errorMessage. string [i] ;
42
+ for (int i = 0 ; i < errorMessage-> string ->size (); i++){
43
+ wcerr << errorMessage-> string -> at (i) ;
44
44
}
45
45
cerr << endl;
46
46
}
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ int main(){
37
37
DeleteImage (imageReference->image );
38
38
}else {
39
39
cerr << " Error: " ;
40
- for (char c : errorMessage. string ){
41
- cerr << c;
40
+ for (wchar_t c : * errorMessage-> string ){
41
+ wcerr << c;
42
42
}
43
43
cerr << endl;
44
44
}
Original file line number Diff line number Diff line change 1
1
#include " pbPlots.hpp"
2
2
#include " supportLib.hpp"
3
3
4
+ using namespace std ;
5
+
4
6
int main (){
5
7
bool success;
6
8
StringReference *errorMessage = new StringReference ();
@@ -50,7 +52,7 @@ int main(){
50
52
DeleteImage (imageReference->image );
51
53
}else {
52
54
cerr << " Error: " ;
53
- for (char c : errorMessage. string ){
55
+ for (wchar_t c : * errorMessage-> string ){
54
56
cerr << c;
55
57
}
56
58
cerr << endl;
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ g++ -c example2-c++98.cpp -std=c++98 -O3 -march=native
5
5
g++ -c example2.cpp -std=c++11 -O3 -march=native
6
6
g++ -c example1.cpp -std=c++11 -O3 -march=native
7
7
g++ -c example2.cpp -std=c++11 -O3 -march=native
8
+ g++ -c example3.cpp -std=c++11 -O3 -march=native
8
9
g++ example1.o pbPlots.o supportLib.o -lm -o example1
9
10
g++ example2.o pbPlots.o supportLib.o -lm -o example2
11
+ g++ example3.o pbPlots.o supportLib.o -lm -o example3
10
12
strip example1
11
13
strip example2
14
+ strip example3
15
+ ./example1
16
+ ./example2
17
+ ./example3
You can’t perform that action at this time.
0 commit comments