- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
{hey! that's not the same word} Answers can come in all forms, like library book names in section Bumblebees, Antidisestablishmentarianistic. {that's a real word}
This is a picture game where you post the most funny picture you know. I'll start:[IMG]http://img73.imageshack.us/img73/6923/kamikazewatermelon4ng.png[/IMG]:cheesy:
antidisestablishmenterianistic {this is a word} potato domesticated!
in pascal, you have to predefine all your variable types, including array lengths, so you should already know the length.
Many damned antidisestablishmenterianistic losers, filled with spywares, crying. {^ that IS a word}
{this makes a great deal of colors} [code] program lights; uses crt; var a,b:integer; label 1; begin textbackground(white); clrscr; for a:=1 to 1000000 do inc b; randomize; 1: a:=random(4)+1; if a=1 then textbackground(blue); if a=2 then textbackground(red); if a=3 then textbackground(green); if a=4 then textbackground(yellow); write(' '); goto 1; end. …
What is a good language that can easily make applications, has the ability to read mouse clicks on certain places, can make highly detailed pictures, is just as mathematicaly abled as dev-pascal, and can easily make a program using Artificial Inteligence, a new compiler, or a user interface?
Even though I think that you give not enough data about your procedure, I can stil answer your question. To tell if it is a leap-year, simply designate a boolean variable titled "lyear", make "yr" an integer, and do this: [code] if (yr div 4)=0 then lyear:=true; [/code]
Hi, I am a dev-pascal program maker that wants to know how to read a line for a limited amount of time. Like for example, if I only wanted to give the user 1 second or 1 milisecond to send in data, how do I do it?
Hello, I am an experianced dev-pascal programmer who would like to know more functions. If anybody knows any more code than the code up to uses files and text files, please post it here.
Can we only post a picture of ourselves? I have a really good not-real picture.
A good pascal compiler would be "Dev-Pascal 1.9.2" which you can get at bloodshed.net. A good source of information would be <http://thedp.netfirms.com/cgi-bin/tut_load.pl?file=pascal>.
if mnth='january' then mnthdays:=31; if mnth='february' then begin if (yr mod 4)=0 then mnthdays:=28 else mnthdays:=29; end; if mnth='march' then mnthdays:=31; if mnth='april' then mnthdays:=30; if mnth='may' then mnthdays:=31; if mnth='june' then mnthdays:=30; if mnth='july' then mnthdays:=31; if mnth='august' then mnthdays:=31; if mnth='september' then mnthdays:=30; if mnth='october' then mnthdays:=31; if …
Easy, put this right after the first begin and then use x:=random(y)+1 to get a random integer. [code] program blah; var a,b:integer; begin for a:= 1 to 1000000 do inc(b); a:=random(10)+1; {this makes "a" a random number from 1 to 10} writeln(a); end. [/code]
Can dev-pascal use graphics, sound, and mouseclicks? If so, please tell me where to find how to do it.
Hello, I have been using Dev-Pascal 1.9.2 and I think that an extra unit that lets you access the mouse and use much better graphics. Please post code that can do this.
one starter game: [code] program guess; uses crt; var a,b,c:integer; label 1,2; begin textbackground(green); textcolor(white); clrscr; 1: c:=0; writeln('guess a number from 1 to 1000'); randomize; b:=random(1000)+1; 2: readln(a); inc(c); if a<b then begin writeln('too little'); goto 2; end; if a>b then begin writeln('too much'); goto 2; end; writeln('You found …
First, directly below the program name put "uses crt;". Next use "textbackground(color);" and "textcolor(color);" to change colors.
Read the number of widgets and do some if, then calculations based on how many widgets. Then based on those calculations, find n if price=highest possible.
Your problems are that first, you put a ";" at the end of the first "if, then" and then you had an "else", and second, you forgot to put ";"s at the end of the "write();" statements. You have to leave out the ";" that is usually at the end …
If you want to learn how computers "think" then lisp or clisp is your best bet. For pascal, an example with footnotes: [code] program learn; {this program generates random problems} uses crt; {this is put here to unlock 3 new funtions} var a,b,c,d,e,f,right: integer; {this is the variable section} label …
Hi, I have a game which some people tell me is good, but I think needs more ideas. Please list some good ideas so that the game can become better. I don't need simplification. Here is the game: [code] program weee (input,output,save); uses crt; type a31415=array [1..10,1..10] of integer; var …
The End.