Looking for programming examples in any programming language
I run a website called Rosetta Code, where the goal is to enable
comparison and learning of programming languages by seeing how a
programming task is implemented in multiple languages.
I started it back in January as a MediaWiki setup, hoping it would grow
into an encyclopedia of programming knowledge. It never became an
encyclopedia, but it *did* accumulate a hefty amount of code, with 94
tasks solved using 64 programming languages. (Mind you, not all tasks
are solved in all programming languages.)
I've been particularly pleased to see experimental and rare programming
languages...program not working properly. book example. program included.
The program is an Example from Deitel and Deitel, chapter 6.
I typed it in carefully, I believe.
The program seems to freeze in the function median, where
median calls printArray(). printArray() prints only 80 elements
and then it seems to be in a loop of some type running
the cpu at 100%. well, freeze may not be the right terminology.
really it happens in the printArray(), because printArray()
does not finish printing.
output i get:
The mean is the average value of the data
items. The mean is equal to the of
all the data items divided by the n...programming examples
Lots of good code here for me to learn from, but I can't access it from
where I am in the world. Is there a mirror anywhere I could try?
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
Colin MacIntyre wrote:
> Lots of good code here for me to learn from, but I can't access it from
> where I am in the world. Is there a mirror anywhere I could try?
> *** Free account spon...Programming Examples
Is there anybody out there having an URL to a resource where Programming
Fortran/MS SQL is explained ?
Or just send me some samples !
I suppose this is not quite what you want, but I have been working on a
Fortran interface to the SQLite database system
(http://www.sqlite.org). That particular site at least explains how to
use SQL and in combination with my library you can use the database
system from a regular Fortran program.
Alf Nilsen wrote:
| Is there anybody out there having an URL to a resource where Programming
| Fortran/MS SQL is expla...example program
can any one give a example program where recursive version is faster
than iterative version ?
> Hi all,
> can any one give a example program where recursive version is faster
> than iterative version ?
For trivial programs there may or may not be examples where recursion is
But recursion is a natural fit for many kinds of programming which would be
a pain to implement with iterative methods.
Especially with making arrangements to save/restore complex data which may
well end up slower than just using recursion. But even if recursi...example of program
Does anybody have an exemple of programme using the librairy visa.h . It is only to help to know how to use simply the function of the librairy.
I have to communicate with a ANRITSU spectrum analyser via RJ45. For example, if I want to change the frequency, the document provided by ANRITSU tells me to send " [:SENSE]:FREQUENCY:START 1MHZ " . But i don't know if I write directly this command on C++, or if I have to save it into a buffer with " sprintf(buffer,"[:SENSE]:FREQUENCY:START 1MHZ ") and use the function of the visa32.lib ...Program or be Programmed
The debate over whether the Net is good or bad for us fills the airwaves
and the blogosphere. But for all the heat of claim and counter-claim,
the argument is essentially beside the point: it's here; it's
everywhere. The real question is, do we direct technology, or do we let
ourselves be directed by it and those who have mastered it? ?Choose the
former,? writes Rushkoff, ?and you gain access to the control panel of
civilization. Choose the latter, and it could be the last real choice
you get to make.? ...Program or be Programmed !
I just started to read Douglas Rushkoff's book "Program or be Programmed" a=
nd found some lines which should tell us that it is an important task of us=
to educate young people in programming:
"Computers and networks finally offer us the ability to write. And we do wr=
ite with them on our websites, blogs, and social networks. But the underlyi=
ng capability of the computer era is actually programming -- which almost n=
one of us knows how to do . We simply use the programs that have been made =
for us, and enter our text in the appropriate box on the screen. We t...affiliate program program wedding program weight loss program graphic program
Gambling has unfortunately become an acceptable practise in Muslim
Society due to its wide scale promotion by the media. A large number
of good Muslims are also caught in the web, not realising that they
are gambling and that the earnings from the gambling are haraam.
The following is a translation of a scholarly article by the late
Mufti Muhammad Shafi rahmatullahi alaihe which is being published to
make Muslims aware of the different forms of transactions and other
items which are classified in Shar'iah as gambling.
aff...AppleSoft Programming Examples?
I want to "re-learn" AppleSoft Basic after being away from it for 25+
years. Are there any places on the web that have programming examples
(apps, games, etc...) I did a search on Google and couldn't find
On Aug 30, 10:17 pm, Jcarlson1701 <jcarlson1...@gmail.com> wrote:
> Hi All,
> I want to "re-learn" AppleSoft Basic after being away from it for 25+
> years. Are there any places on the web that have programming examples
> (apps, games, etc...) I did a search on Google and couldn't find
It kind of d...NetCDF example programs
The UNIDATA Program
developers of the netCDF library
makes available a small set of example programs
in multiple languages as part of their netCDF tutorial.
I have written IDL versions of each of the six sample programs. You can
download the programs and example netCDF files here
(a 16 kB zip file).
I have ...Programming examples sought...
Can anyone provide me with sample code (commented) on how to create a
window with a few controls? I'd really like to know how to do it
programmatically, without using resources. Also how to set & get
values of the controls, labels, text boxes, check boxes, radio
All the examples that come with the various programming languages show
how to create a window, and draw text or shapes in the window...but
none show how to put buttons, drop-down lists, text boxes, etc on the
Also, what is the best graphical resource editor for the GS? I want
to use the Resource edi...Insecure Programming by example
found an interesting C link here::
> Hi folks,
> found an interesting C link here::
I looked at the first example. Anyone programming like that needs a good
"Usenet is a strange place" - dmr 29/7/1999
email: rjh at above domain (but drop the www, obviously)
Richard Heathfield wrote:
> firstname.lastname@example.org said:
>&g...match program example
Does anyone have a simple example of a COBOL match program. I need to
become more familiar with the logic.
do until File1-EOF and File2-EOF
if File1-key < File2-key
else if File2-key < File1-key
Obviously pseudo-code, not real COBOL.
The issue of handling end-of-file I leave as an exercise for you.
<email@example.com> wrote...Gui programming example
I'm absolutely new to ruby but I can program in a lot of other languages. To
get to know this language better I would like to animate a robot walking to
a maze, does anyone of you have pointers to examples on GUI programming
with ruby? I'll learn the rest ;-)
"May the source be with you"
Sounds like you need something with the power of Tk's Canvas widget. I've
been playing with that lately and like it a lot. I'm not familiar with the
details of other GUI toolkits for Ruby. I'd like to hear if they have
something equivalent to Tk's Canvas w...QoS example program
I want to make example code of QoS using TCP.
I don't understand ACE's QoS example.
if you make server/client code of Qos using TCP, please send me~~ *^^*
please help.. me
...QAM Example Programs?
Are there any good/simple QAM example programs online that I can look a
and learn how to use QAM.
On Aug 1, 6:26 am, "glazarev" <g...@magpieti.com> wrote:
> Are there any good/simple QAM example programs online that I can look at
> and learn how to use QAM.
This question is hard to answer without considering a few prerequisite
1. Is this a homework problem?
2. What do you expect the input and output to be? Is it a bunch of
symbols and are they in complex baseband? Or do you want the
pas...Example Pop11 programs
I have put a few example programs at:
...Linear Programming Examples
This is a multi-part message in MIME format.
I use wgnuplot (4.0) on MS Windows. I see that gnuplot can shade areas =
bound by functions.
I am tryinng to use gnuplot to shade feasible regions bound by, e.g.,
0<=3D x <=3D 75
0<=3D y <=3D 80
Minimize z=3D12x+10y subject to the above constraints.
Any relevant example will be much appreciated.
Thanks - Danke Shoene!
Y...Examples of win32 programs
I am looking for example of program which shows how to draw lines, ellipses
and rectangles using mouse (written in C without MFC).
"SzymeX" <firstname.lastname@example.org> wrote in message
> I am looking for example of program which shows how to draw lines,
> and rectangles using mouse (written in C without MFC).
MSDN has such examples as does many books. Also using Google
would give you several examples.
To draw use GDI functions such as MoveToEx() and LineToEx(), Polyline(),
Ellipse() or Rectan...openMP: no speedup with example program
I'm using the Portland Group Workshop f95 compiler on
a 4 dual-core Opteron 865s machine (i.e. 8 total cores), and am
having trouble geting any speedup on a PGI example program....
the following program comes from pp. 136-137 of the "PGI� User's Guide
-Parallel Fortran, C and C++ for Scientists and Engineers"
I've got 20 MB of shared RAM available on this node.
64-bit Fedora core 3, pgf95 6.1-1
--- begin fortran program ----
REAL*8 A(10000,10000), MX, LMX
INTEGER I, J
MX = -1.0
LMX = -1.0
...Socket Programming HOWTO example
Hi. I read the Gordon McMillan's "Socket Programming Howto".
I tried to use the example in this howto but this doesn't work.
The code is class mysocket:
'''classe solamente dimostrativa
- codificata per chiarezza, non per efficenza'''
def __init__(self, sock=None):
if sock is None:
self.sock = socket.socket(
self.sock = sock
def connect(host, port):
de...where to see mathlab examples programming?
On Sun, 05 Nov 2006 09:50:45 -0500, shermaine wrote:
> Please advise.
Read this newsgroup.
Look for Matlab Central at www.mathworks.com.
> Please advise.
Try the MATLAB section at LiteratePrograms:
> Please advise.
I will immodestly suggest my new Web log, Data Mining in MATLAB, at:
...Looking for an example of C++ program
I was hoping to get an example of a C++ program I am working on with my son
need to calculate the average of a series of game scores where we can drop
the lowest score. ie five games get the best 4 out of 5.
He is in c++ and thinks I know about this stuff. I study the book to try to
keep ahead of him, but he is a sponge I am wax.
I would need something with 3 functions if possible getscore find lowest and
if you could help an old guy out so I can put him in his place I would
thanks in advance
"vato" <email@example.com> wrote