Computer Science
Computer science is the study and the science of the theoretical foundations of information and computation and their implementation and application in computer systems.
Language
Pascal
Remove
Platform
Any
License
Any
Hi guys; I am new to the programming world, just beginning to study in my A Levels so hopefully this shouldn't be a problem for you guys
For my homework assignment I need to devise a 2Dimensional...
I would like some help with this pascal programming language please im totally new to pascal.
im just the "Free PASCAL Compiler"
T.J Limited pays its operational staff weekly wages at a rate...
How can I manage to let the user input a number (n) and the program will read strings for n times?
I can do that in this way, but not good enough if user enters a number greater than 100.
VAR...
// reverse a string
program reverse;
procedure Main();
var
before : string;
len : integer;
begin
WriteLn('Enter string ');
ReadLn(before);
len:=length(before);
repeat...
// reverse a string
program reverse;
procedure Main();
var
before : string;
len : integer;
begin
WriteLn('Enter string ');
ReadLn(before);
len:=length(before);
repeat...
program divide1;
procedure Main();
var
num : integer;
ans : integer;
i : integer;
begin
Write('Enter number:');
ReadLn(num);
for i:=1 to num do
begin
ans:= num Mod i;
if...
THE WAY U DECLARED ARRAYIS WRONG.
e.g of how to declared array
num :array of string;
Hey!
I need some help with my pascal homework. What I need to do, is make the program return the least frequent character(s) in a string and number of occurances.
1) User inputs the main string,...
');readln(s);
if s<>'' then begin
blockwrite(f,s,sizeof(str20)); { 0 then begin
{Retrieving a random name }
randomize;
j:=succ(random(i));
reset(f,1); { After...
Okay, nice try. How did you create C:\f.dat? Use a regular editor to do it? Look at your record definition; name is defined as a STRING. How long is a STRING? Well, it's 255 bytes with a leading...
Let's say I'm going to handle a lot of words which is stored in a plain text file.
Be sure that each line has only 1 word & there are more than hundred thousands of lines in total.
I have to...
I used Pascal years ago this may help:
http://www.mustansiriya.com/pascal.pdf
good luck
Hmmmmm.... without any details about what you are trying to accomplish, guessing is all that anybody has left. What kind of file line? What's a vector? Start off with some program so that any...
Can you please provide some usage example?
You might want to try my post from last year to sort your array.
http://www.programmersheaven.com/mb/pasprog/412937/416646/re-arranging-sorting-an-array/?S=B20000#416646
I had a problem with this program,though it seems easy..:/
A matrix is given.Find the sum of the minimal elements of each row.
Pls help with this one! :(
Ok, so firstly I use Free Pascal 0.6.4.
The game is pretty much like this: you control the "spaceship" and destroy objects falling from the top of screen by shooting them. Once object is...
: What does {$h+} do?
:
: In some programs (for example the free pascal ones), people tend to
: use {$h+}after the first line (program ;).
:
: Just want to know how to use it and when should...
: You are required to:
:
: 1. Develop an algorithm in narrative and pseudopodia or flowchart
: that will accept the names of all sales staff members and their
: total sales for the month. The...