public,private,protected in C++
When talking about public,private, and protected in C++, two words must pop up in your head:accessibility and visibility. Unfortunately, the two academic words are just created to confuse learners as […]
When talking about public,private, and protected in C++, two words must pop up in your head:accessibility and visibility. Unfortunately, the two academic words are just created to confuse learners as […]
Let’s compile a simple java program in current directory(javac Test.java): //Test.java class Test { String a=”hello”; public static void main(String[]args) { Test b=new Test(); b.a=”world”; System.out.println(b.a); App app=new App(); app.fun(); […]
Button is an inline element. It can not be centered using the “margin:auto;” that is for block element. Even if you set “display:inline-block” for it, the “margin:auto;” still has no […]
The height and width CSS properties are not inheritable. If not specified, their default value is “auto” which means “browser will calculate it“. But how does the browser calculate the […]
The articles I’ve read that talk about px and em all say px is an absolute unit while em is a relative unit. “Absolute” seems easy to understand. That is […]
I love php array because the array’s key can not only be number but also be string. $arr=array(“a”,”b”,”c”); $arr=[“a”,”b”,”c”]; $arr=array(“k1″=>”a”,”k2″=>”b”,”k3″=>”c”); $arr=[“k1″=>”a”,”k2″=>”b”,”k3″=>”c”]; That makes it an association array or a […]
Javascript does not allow multi -line string constant. var html=’ <div> <span> hello world</span> </div> ‘; alert(html); This will produce an error:”unterminated string literal“. To write multi-line string, you have […]
The Date object looks simple. It has methods to get the date, month, year, hour,minute, second that it represents. And it has methods to set these values. But it has […]
We know that we can refer to a variable in a string; the variable will be expanded to its value: $a=1; echo “$a”; The array member can also be embedded […]
I thought the jQuery library must have supported the calendar/date time picker UI because it is such a basic and frequently used control like button or input box. But I’m […]