You are currently browsing the STARS at MEDAL blog archives


Variables, arithmetic operations and conditions

The following set of programs provides examples for use of variables, arithmetic operations, and conditions. We will look at more examples when we meet:

Program 2: Arithmetic operations, variables
http://ideone.com/5Z7o5

Programs 3-6: Conditions
http://ideone.com/CL2TD
http://ideone.com/6GvFA
http://ideone.com/AvtTw
http://ideone.com/Eoilq

Additional materials for these topics can be found in the books I suggested or online. As we go through more complex topics, we will of course have to revisit these basics and get better at them.

Program 1: I’m alive!

I’ve already put in a few programs for us to start with, here’s the first one. Don’t worry about the post until we start with the program on June 11, 2012 (but of course feel free to look at it already if you want):

http://ideone.com/JoRau

When you click on the link, you should be able to see the first, simple program, similar to the classical “Hello World!” program. The only thing the program does is print out a line with “I’m alive!” on the screen. The output is shown in the page as well, and you can edit and play with the program there yourself.

First step: Create an account on ideone.com

We will complete all or most of the programming projects as well as simple demo programs using an online tool that allows one to execute, store, and share programs. This should make the communication between us much more efficient.

Please, go to the following site and register an account on it, so that you can use the site for your own code. As the primary language, we will use C++ (so you can choose C++ as the default language to work with):

http://ideone.com/

We will use ideone.com to work with programs used by me to teach you main concepts, as well as by you to solve home assignments. The site makes it quite easy to edit the code, run it, and share it. Code can also be assigned to one or more categories, and cloned to create more complex projects in future starting from a previous project.

Welcome to STARS at MEDAL

STARS at MEDAL blog is dedicated to the STARS project at the Missouri Estimation of Distribution Algorithms Laboratory (MEDAL) at the University of Missouri. We will use this blog to post important links throughout the project and keep track of what has been covered, and is required for successful completion of this program.