2013年4月19日 星期五

Second Lesson, Variables


Variables
This passage is teaching me how to use variables on scripting. Sometimes, when there are many same words in your program, we use this skill to save some time. For example, if you want to write a latter to your girlfriend, Alice. In your latter, you may need to mention her name many times. For this time, giving Alice in the place of x variable will help a lot. Whenever you need to use her name, just go ahead use x to replace where the name should be. That will be much more convenient.
EX:
X = ”Alice”
Print(x, “is my favorite girl in high school year,”, x, x, “ I can’t forget you”);
Print(x, x, “What a beautiful name”, x ,“I want to kiss your lips…”);
Print(x, “my loving”, x);
This is an example of programing words, it will shows like the following words:
Alice is my favorite girl in high school year, Alice Alice I can’t forget you
Alice Alice What a beautiful name Alice I want to kiss your lips…
Alice my loving Alice


4 則留言:

  1. This is very interested, so how long does it take you to learn all of this. Also, where to we use the valuable on?

    回覆刪除
  2. Hey, I give you a website. Here is it. " http://net.tutsplus.com/articles/web-roundups/10-hand-picked-tutorials-for-beginning-web-designers/ " Check it out!!! This is the website for ,who wants to be a web designer. A simple beginner guide like a tutorial.

    回覆刪除
  3. Do you use variables before, and where we can use variables?

    回覆刪除