Go Back   2023 2024 Courses.Ind.In > Main Category > Main Forum

  #1  
Old January 11th, 2016, 11:28 AM
Super Moderator
 
Join Date: Apr 2013
Default bcpl basic combined programming language

Discuss about bcpl basic combined programming language here. Welcome to Courses.ind.in and this page is for bcpl basic combined programming language discussion. If you are looking for information on bcpl basic combined programming language then ask your question is as much details as possible in the “Reply” box provided below. The more detailed your question will be, the more easy will it be for our experts to answers your query. And if you have any updated or latest information on bcpl basic combined programming language, then please share you knowledge with our experts in the “Reply” box below. Your reply will be published here and your knowledge can help many people. Thanks for stopping by at Courses.ind.in. Please visit again.
Reply With Quote Quick reply to this message
  #2  
Old June 10th, 2017, 08:35 AM
Unregistered
Guest
 
Default Re: bcpl basic combined programming language

Hi buddy here I have come to get info related to BCPL ("Basic Combined Programming Language") , so would you plz tell me about the same ??
Reply With Quote Quick reply to this message
  #3  
Old June 10th, 2017, 08:36 AM
Super Moderator
 
Join Date: Aug 2012
Default Re: bcpl basic combined programming language

As you want here I am telling BCPL (Basic Combined Programming Language) is a procedural, imperative, and structured computer programming language designed by Martin Richards of the University of Cambridge in 1966.

It 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. In practice, on limited keyboards of the day, source programs often used the sequences $( and $) in place of the symbols { and }. The single-line // comments of BCPL, which were not adopted by C, reappeared in C++ and later in C99.

Example of BCPL (Basic Combined Programming Language)

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
$)
Reply With Quote Quick reply to this message
Reply
Similar Threads
Thread
post basic bsc nursing in aiims
BCPL Download
BCPL Admit Download
BCPL Language Download
BCPL Assam Website
basic upfc ppt
chinese language course in jnu
bcpl pune
hyderabad university foreign language
jnu french language
upcoming bcpl recruitment
bcpl dibrugarh website
basic facts about the upcat
pacific university language
bcpl kolkata
bcpl gas cracker dibrugarh
Health Occupations Basic Entrance Test Study Guide
Post basic BSc nursing entrance exam


Quick Reply
Your Username: Click here to log in

Message:
Options



All times are GMT +5.5. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.1
vBulletin Optimisation provided by vB Optimise (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.