CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

askwords function

this function is similar to the ask function; However, ask can only be used to input numbers. Askwords, can be used to input a text.

askwords( inputstring, maxsize, message );

where:

  • inputstring: a character array where you want the input to be placed;
  • maxsize - an integer limiting the maximum size of the input string;
  • message: a character array that will be displayed in the input box for the user.

example:

askwords(first_name,20,"Enter your first name:");