CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Get Real

In the real C++ world, there is no franca.h, therefore:

  • there are no Clocks, athletes, Robots, Circles, Squares, Boxes,
  • no functions such as: ask, askwords, yesno.
  • Do you miss me? use "nofranca.h"

What is different?

  • do not use "franca.h"
  • with Visual C++ use <iostream>, with borland use <iostream.h> and <cstring.h> for strings.
  • your main program is no longer mainprog(), it should be main()
  • you don't need a project anymore
  • you may try to include "nofranca.h". This way you can still have functions like ask, askwords and yesno.

What do you have?

formatting

why do you need formatting?

User Interface:

  • The way your program communicates with the user
  • Make it easy so that users will make less mistakes
  • Always explain what the user is supposed to type in
    • ex. cout<<"Please enter your first name:";
    • cin>>firstname;
  • Make sure you explain what your results are
    • ex. cout<<"Your change is: "<<change;
  • Text interface (as opposed to graphic interface) may demand more attention from both the programmer and the user.

 

Files