Skip to content

Commit 389cf7b

Browse files
committed
improve CTRKViewer/PLAViewer code
1 parent 9c1c2dd commit 389cf7b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎tools/CTRKViewer/CTRKViewer.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) {
5252
std::ofstream CTRKOutput(inputFile.stem().string() + ".txt");
5353

5454
if (!CTRKOutput) {
55-
fprintf(stderr, "Error: Unable to create a text output of the CTRK Script.");
55+
fprintf(stderr, "Error: Unable to create a text output of the CTRK Script.\n");
5656
return 1;
5757
}
5858

@@ -64,7 +64,7 @@ int main(int argc, char* argv[]) {
6464

6565
// Exit message for CTRKViewer
6666
ConsoleUtils::printNewLine();
67-
printf("Press Enter to exit CTRKViewer");
67+
printf("Press Enter to exit CTRKViewer\n");
6868
(void)getchar();
6969
ConsoleUtils::clearConsole();
7070
return 0;

‎tools/PLAViewer/PLAViewer.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int main(int argc, char* argv[]) {
5555
return 1;
5656
}
5757

58-
// Close input & output for PLA Script
58+
// Cleanup
5959
PLAInput.close();
6060
PLAOutput.close();
6161

@@ -67,7 +67,7 @@ int main(int argc, char* argv[]) {
6767

6868
// Exit message for PLAViewer
6969
ConsoleUtils::printNewLine();
70-
std::cout << "Press Enter to exit PLAViewer.\n" << std::endl;
70+
printf("Press Enter to exit PLAViewer.\n");
7171
(void)getchar();
7272
ConsoleUtils::clearConsole();
7373

0 commit comments

Comments
 (0)