This page includes instructions and information about all the languages we intend to supply/support/use at the
LSU Computer Science High School Programming Contest.
Table of Contents:
Return to Top of Page
IBM Visual Age C/C++
NOTES | To Make It Work | Example Program | Judges Information
NOTES:
To Make It Work:
Example Program:
Judges Information:
IBM Visual Java / Java JDK
NOTES | To Make It Work | Example Program | Judges Information
NOTES:
To Make It Work:
Example Program:
Judges Information:
Borland Turbo Pascal v1.5 for Windows
NOTES | To Make It Work | Example Program | Judges Information
NOTES:
- You must not try to use the debugger!!! It does not work and will crash the system (Turbo Pascal at least)!
- You must have the uses WinCRT; at the top of your program to get output (if you are planning to do I/O with the keyboard and the screen).
- You should only use READ, READLN, WRITE, and WRITELN (if you are plannig on doing keyboard/screen I/O).
To Make It Work:
Example Program:
program Welcome;
uses WinCRT;
var
name: string;
begin
Assign(Input,'input.txt'); Reset(Input);
Assign(Output,'output.txt'); Rewrite(Output);
Readln(name);
Writeln('Welcome to Turbo Pascal for Windows, ',name);
Close(Output);
end.
Items in red are the needed additions for file I/O using standard I/O commands.
Judges Information:
- Look at the source for:
- Make sure there is a uses WinCRT; section
- Make sure the following two lines just after the begin of the main program (if they aren't already there):
Assign(Input,'C:\TEMP\test.in'); Reset(Input);
Assign(Output,'C:\TEMP\test.out'); Rewrite(Output);
- Make sure the following line just before the end. of the main program:
If any of these sections aren't there, return IS - Improper Submission
Return to Top of Page
Microsoft QBasic
NOTES | To Make It Work | Example Program | Judges Information
Return to Top of Page
Microsoft Visual Basic v5.0
NOTES | Example Program | Judges Information
NOTES:
- When you create your project, just select the standard.exe, not a GUI. Use only one form for your application. Submit only your form file (we just need the form source-- not the whole project).
Example Program:
Private Sub Form_Load()
Close #1
Open "c:\temp\input.txt" For Input As #1
Dim b As Integer, c As Integer, d, e, f As Integer
Dim aa As Integer, bb As Integer, cc As Integer
b = 1
While b <> 0
Input #1, b
Input #1, c
f = b * c
Open "c:\temp\output.txt" For Append As #2
Print #2, f
Close #2
Wend
Close #1
Unload Me
End Sub
Judges Information:
Return to Top of Page
Microsoft Visual C/C++ v5.0
NOTES | To Make It Work | Example Program
NOTES:
- When creating a new project, make sure you select Win32 Console Application for the project type!
- When creating a new source file, choose C++ Source File and let it append a .cpp to your filename (this works even if you only code in C).
- Your project should have only one .c or .cpp file only.
To Make It Work:
- Under the Build menu, select Rebuild All to compile.
- Under the Build menu, select Execute <filename> to run.
Example Program:
#include <stdio.h>
void main()
{
char name[80];
printf("What's your name? ");
scanf("%s",name);
printf("\nHello World!, %s\n",name);
}
|