Run 1
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>d:
D:\>dir
Volume in drive D is BShuey MCTrans
Volume Serial Number is CA85-6B66
Directory of D:\
12/07/2007 02:55 PM
mctranslator
12/07/2007 02:54 PM 155,648 mctranslator.exe
1 File(s) 155,648 bytes
1 Dir(s) 0 bytes free
D:\>mctranslator.exe
Please enter the name of your input file: c:\temp\minicore.txt
Please enter the name of your new .cpp file: c:\temp\dradams
Input file : c:\temp\minicore.txt
Output file: c:\temp\dradams.cpp
Line 2 has produced an error:
A, B : integer;
Missing begin statement
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try2.txt
Please enter the name of your new .cpp file: c:\temp\try2
Input file : c:\temp\try2.txt
Output file: c:\temp\try2.cpp
Line 1 has produced an error:
program SILLY
Improper program statement
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try2.txt
Please enter the name of your new .cpp file: c:\temp\try2
Input file : c:\temp\try2.txt
Output file: c:\temp\try2.cpp
Line 1 has produced an error:
program SILLY
Improper program statement
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try3.txt
Please enter the name of your new .cpp file: c:\temp\try3
Input file : c:\temp\try3.txt
Output file: c:\temp\try3.cpp
Line 3 has produced an error:
A = 5;
Missing begin statement
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try4.txt
Please enter the name of your new .cpp file: try4
Input file : c:\temp\try4.txt
Output file: try4.cpp
Line 4 has produced an error:
A = 5;
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try5.txt
Please enter the name of your new .cpp file: c:\temp\try5
Input file : c:\temp\try5.txt
Output file: c:\temp\try5.cpp
Failed to open input file: c:\temp\try5.txt
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try5.txt
Please enter the name of your new .cpp file: c:\temp\try5
Input file : c:\temp\try5.txt
Output file: c:\temp\try5.cpp
Line 4 has produced an error:
A := 5;
Improper Assignment statement
******
D:\>mctranslator
Please enter the name of your input file: c:\temp\try6.txt
Please enter the name of your new .cpp file: c:\temp\try6
Input file : c:\temp\try6.txt
Output file: c:\temp\try6.cpp
Line 6 has produced an error:
ab := 3;
Improper Assignment statement
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try7.txt
Please enter the name of your new .cpp file: c:\temp\try7
Input file : c:\temp\try7.txt
Output file: c:\temp\try7.cpp
******
D:\>mctranslator
Please enter the name of your input file: c:\temp\try8.txt
Please enter the name of your new .cpp file: c:\temp\try8
Input file : c:\temp\try8.txt
Output file: c:\temp\try8.cpp
D:\>type c:\temp\try8.cpp
#include
using namespace::std;
int main() {
int A,B;
A = 5;
cin >> B;
cout << A << " " << B << " " << endl;
return(0);
}
****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try9.txt
Please enter the name of your new .cpp file: c:\temp\try9
Input file : c:\temp\try9.txt
Output file: c:\temp\try9.cpp
Line 8 has produced an error:
output A ;
*****
D:\>mctranslator
Please enter the name of your input file: c:\temp\try9.txt
Please enter the name of your new .cpp file: c:\temp\try9
Input file : c:\temp\try9.txt
Output file: c:\temp\try9.cpp
D:\>mctranslator
Please enter the name of your input file: c:\temp\try9.txt
Please enter the name of your new .cpp file: c:\temp\try9
Input file : c:\temp\try9.txt
Output file: c:\temp\try9.cpp
*****
D:\>type c:\temp\try9.cpp
#include
using namespace::std;
int main() {
int A,B;
A = 5;
while (A < 27) {
A = A + 2;
};
cout << A << " " << endl;
cin >> B;
cout << A << " " << B << " " << endl;
return(0);
}
***************
D:\>type f:\shuey\try10.cpp
#include
using namespace::std;
int main() {
int A,B,C;
A = 5;
while (A < 27) {
A = A + 2;
};
cout << A << " " << endl;
cin >> B;
cout << A << " " << B << " " << endl;
if (A > B) {
C = A + B;
} else {
C = A * B - 5;
};
return(0);
}
*****
D:\>mctranslator
Please enter the name of your input file: f:\shuey\try11.t
Please enter the name of your new .cpp file: f:\shuey\try1
Input file : f:\shuey\try11.txt
Output file: f:\shuey\try11.cpp
D:\>type try11.cpp
The system cannot find the file specified.
D:\>type f:\shuey\try11.cpp
#include
using namespace::std;
int main() {
int A,B,C;
A = 5;
while (A < 27) {
A = A + 2;
};
cout << A << " " << endl;
cin >> B;
cout << A << " " << B << " " << endl;
if (A > B) {
C = A + B;
} else {
C = A * B - 5;
};
cout << C << " " << endl;
return(0);
}
*****