English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

7 answers

An example of what you're talking about is:

set myName = "Bob"

myName is the variable, and Bob is the string.

2007-01-14 10:31:39 · answer #1 · answered by so far north 3 · 0 1

A string is a series of bytes in a row where each bytes represents some information. In most languages strings are used to store non-number data, like text. An example of a string is "this is text". If you're wondering what the purpose of a string is, it is commonly used to store user input.

example program display below

Enter your name below.
bob -->this would be the user input which you would probably put in some string variable to save it for later so you don't need to ask the user its name everytime you want to display it. Instead you would just use the string information to put it on the screen.

'later on in the program..

thanks for playing bob. -->the reason it knew the name is because you stored the user input into a string variable

2007-01-14 12:17:28 · answer #2 · answered by Bridgeofstraws 2 · 0 0

A string is a stream of characters. A word is a string. A sentence can be a string. Strings are made up of keyboard characters. A number can be IN a string, but you can't do math with a string. Does that help?

2007-01-14 10:28:58 · answer #3 · answered by Kokopelli 6 · 0 0

what language are you using?
If it is DOS Windows shell the command:
set variable=string
set is the command
variable is the name of the variable
and string is the contents of the variable "variable"

2007-01-14 10:34:19 · answer #4 · answered by runlolarun 4 · 0 2

String refers to either a variable, command syntax, or text enclosed in either single or double quotes depending on the language.

2007-01-14 10:32:15 · answer #5 · answered by Shawn H 6 · 0 3

String is a long, thin, fibrous material frequently used for keeping boxes closed.

2007-01-14 10:39:47 · answer #6 · answered by worm22 2 · 0 1

stringy cheese

2007-01-14 10:27:20 · answer #7 · answered by Anonymous · 0 2

fedest.com, questions and answers