1. Basic knowledge1.1 Definition:Variable type variable name;int x;1.2 Assigning valuesx = 100;1.3 Outputprintf ("%d", x);Common format characters:Integral type:%d,%iFloating point type:%fCharacter Type:%c2. Scope and life cycle2.1 Local Variables:2.
I. Basic CONCEPTSBasic data types in ①java (simple type, built-in type):byte type (byte), short Integer, Integer (int), long, character (char), floating point (float), double type (double), Boolean (Boolean), note all lowercase, no string type, The
A string is a very special type of data that is both a primitive type and a reference type, at compile and run-time. NET has done some optimization work on it, formal these optimizations sometimes confuse programmers, making string look elusive,
First, the basic article1. Do not use the third party to achieve the exchange of two variable values:Package basic;Import Java.util.Scanner;public class Exchangevalue {public static void Main (string[] args) {Scanner scan = new Scanner
There are two types of data in JavaScript: base type and reference type.
The basic type is simply a simple data segment.
A reference type is an object that consists of multiple values.
When we do an assignment, the parser first parses whether the
Welcome to visit the blog Basic Exercise Output
public class MyApp {public
static void Main (string[] args) {
System.out.println ("I can learn the Java language well.") ");
}
}
Integer type
public class Test {public
static void
Tag: Ike its select ROM Operation connection description comparison systemvariablescategory System variables: global variable session variable custom variable: user variable local variable description system
68. Logical judgment in shell script, file directory attribute judgment, if special usage, case judgmentI. Logical judgments in shell scriptsFormat 1:if condition; Then statement; FiFormat 2:if condition; Then statement; else statement; FiFormat
I. Logical judgments in the shell
Format 1:if condition; Then statement; Fia=2if [ $a -ge 2 ];then echo ">=2";fi
Format 2:if condition; Then statement; else statement; Fia=1if [ $a -ge 2 ];then echo ">=2";else echo "
Format 3:if ...;
Logical judgment in the shell
Format 1:if condition; Then statement; FI//If the condition is met, then execute the statement[[email protected] shell]# cat if1.sh #!/bin/basha=5if [ $a -gt 3 ]then echo okfi[[email protected] shell]# sh -x if1.sh +
I. Logical judgments in shell scriptsGrammar1. Format 1if condition; Then statement; FiExample: If a is greater than 3, print OK[[email protected] ~]# vi 2.sh[[email protected] ~]# bash -v 2.sh #!/bin/basha=5if [ $a -gt 3 ]then 2. Format 2if
20.5 logical judgments in shell scriptsYou should use a variable instead when you use a string more frequently in your script and the string length is longWhen using conditional statements, variables are often used?? If [$a-gt 1]; Then ...; FiWhen
Logical-judgment logical expressions in shell scripts are used in [] (brackets):
-lt:=little than less than
-le:=little && wqual less than equals
-eq:=equal equals
-ne:=no Equal Not equal to
-gt:=greater than greater than
GDB 10-Minute tutorialAuthor: LiigoOriginal link: http://blog.csdn.net/liigo/archive/2006/01/17/582231.aspxDate: January 16, 2006This article is written to programs that are mainly working on Windows operating systems and need to develop some
20.5 logical Judgments in shell scripts• format 1:if conditions; Then statement; FiExample: a=5If [$a-gt 3]; then echo OK; Fi[Email protected] shell]# sh If1.shok• format 2:if conditions; Then statement; else statement; FiExample: a=5If [$a-gt 3];
Hello, crossing, we are talking about GDB's call stack debugging function, and how to use GDB to view the callStack. In this one, we continue to describe GDB's debugging capabilities: viewing information. Of course, we'll also show you how to use
GDB more than 10-minute tutorialAuthor: LiigoOriginal link: http://blog.csdn.net/liigo/archive/2006/01/17/582231.aspxDate: January 16, 2006This article is written to programs that are mainly working on Windows operating systems and need to develop
Before reading "Head first Java", remember that there are mentions, Java in the call method, passing parameters, the use of Pass-by-copy method, passing a copy of the content, that is, the value of the transfer.To give a simple example:1 Public
Directory of this document
I. Range of values
Two, Char
Three, specifier
Iv. Automatic type Promotion
V. Coercion type conversion
C has a rich data type, so it is well suited for writing databases, such as DB2, Oracle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service