2023 2024 EduVark > Education Discussion > General Discussion


  #1  
January 23rd, 2016, 11:32 AM
Super Moderator
 
Join Date: Mar 2012
Inventor of BCPL

For my GK knowledge want to know who is Inventor of BCPL , do you know about it , if so then plz let me know ???

BCPL stand for Basic Combined Programming Language which is a procedural, imperative, and structured computer programming language, its Invent by Martin Richards of the University of Cambridge in 1966.

BCPL was the first brace programming language, and the braces survived the syntactical changes and have become a common means of denoting program source code statements

BCPL is the language in which the original hello world program was written.[2] The first MUD was also written in BCPL (MUD1).

These complete and compilable examples are from Martin Richards′ BCPL distribution.

Print factorials:

GET "LIBHDR"

LET START() = VALOF $(
FOR I = 1 TO 5 DO
WRITEF("%N! = %I4*N", I, FACT(I))
RESULTIS 0
$)

AND FACT(N) = N = 0 -> 1, N * FACT(N - 1)

Count solutions to the N queens problem:

GET "LIBHDR"

GLOBAL $(
COUNT: 200
ALL: 201
$)

LET TRY(LD, ROW, RD) BE
TEST ROW = ALL THEN
COUNT := COUNT + 1
ELSE $(
LET POSS = ALL & ~(LD | ROW | RD)
UNTIL POSS = 0 DO $(
LET P = POSS & -POSS
POSS := POSS - P
TRY(LD + P << 1, ROW + P, RD + P >> 1)
$)
$)

LET START() = VALOF $(
ALL := 1
FOR I = 1 TO 12 DO $(
COUNT := 0
TRY(0, 0, 0)
WRITEF("%I2-QUEENS PROBLEM HAS %I5 SOLUTIONS*N", I, COUNT)
ALL := 2 * ALL + 1
$)
RESULTIS 0
$)

Last edited by Neelurk; June 15th, 2020 at 09:16 AM.
Similar Threads
Thread
Pay Scale of BCPL
Inventor training courses
BCPL Wisconsin
BCPL Baltimore
BCPL HR Department
Information About BCPL
Hours of BCPL
BCPL Language
BCPL Ltd
BCPL Jobs
Mango BCPL
Woodlawn BCPL
BCPL Bookmobile
Towson BCPL
BCPL Web



Quick Reply
Your Username: Click here to log in

Message:
Options



All times are GMT +5. The time now is 01:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8