Digital currency CLS
Publish: 2021-04-28 22:28:59
1. The salesmen in "magic girl's little circle" make the girls become magic girls
2. 1、 Scepter, grail, sword, star coin
the main card represents the common theme, while the auxiliary card extends these themes to reality, showing how they play a role in daily events. Auxiliary cards represent the things you care about, your actions, your emotions, which construct the script of life
there are 56 auxiliary cards, which are divided into four groups: wands, cups, swords and Pentacles. Many taros use other names for the four sets
each card has a specific definition
the staff group represents creation, action and movement. They are related to the virtues of passion, exploration, adventure and self-confidence. This group is equivalent to the "Yang" or male characteristics of Chinese philosophical power, and the related element is fire. A throbbing flame is a perfect symbol of the power of the staff. This kind of energy radiates outward, making people enthusiastically participate in affairs
the cup group represents emotional and spiritual experience. They describe inner states, feelings and relationships. This energy is concentrated inward. The cup is equivalent to "Yin" or feminine characteristics in Chinese philosophy, and the related element is water. Water can flow, can fill gaps, can enre, but moody, which makes it a typical symbol of the cup< The sword group represents intelligence, thinking and reason. They are related to justice, sincerity and morality. The related element of sword is wind. The clear sky is open, cloudless and bright everywhere, symbolizing the clear and clear inner spirit, which is the best portrayal of sword. This group will also lead to disharmony and discomfort. Our mind is a valuable asset, but it represents the self. If there is no spiritual guide to inject wisdom, it will lead us astray
the group of stars represents practice, safety and material. They are related to the specific needs when dealing with problems. The associated element of a star is the earth. The spirit of the star is to celebrate the beauty of nature, the interaction with plants and animals, and the physical feeling of the body. Stars also represent all kinds of prosperity, success and wealth. Sometimes this group is also called "coins". In this material world, "money" is of course the most obvious symbol when exchanging goods and enjoying services< Second, the energy operation of digital cards. The four groups of cards are composed of ten digital cards and four palace cards, which are very similar to the playing cards we often play. In the energy operation of tarot cards, each card plays its own role
the first card
the first card illustrates the theme of this group. For example, "the first card of the Grail" stands for love, emotion, intuition, and intimacy - these are presented in other cards in the Grail group. The first card always represents positive power. It carries the best that this group can offer
middle card
middle card with serial number (2-9), each of which represents a different side of the group. For example, the themes revealed by the scepter include personal strength (Scepter 2), leadership (Scepter 3), excitement (Scepter 4) and competition (Scepter 5). A card may explore a problem from several perspectives. For example, star coin 5 shows many aspects of demand - hard times (material needs), poor health (physical needs), and rejection (emotional needs)
No.10 card
the No.10 card of each group is to dece the theme of the first card of the group to a logical result. For example, the first card of the Holy Grail represents love, intimacy and emotion. If you let them develop, they will eventually become fun, peace and family love. This is the content of "Holy Grail 10"
palace card
palace card is some personalized characters, each character has a special identity, symbolizing a specific role or a special stage in our life. Palace cards show us some specific ways of life, so we can learn from (or avoid) the principles they represent when appropriate< The king is mature and masculine. He is a doer. When dealing with various affairs, he pays more attention to external aspects. In this group, the king represents authority, control and domination. The king's way is strong, decisive and direct. He's concerned about results and practices, and how to deal with things
queen
mature and feminine. She embraces the characteristics of this group and makes the characteristics of this group of cards concrete rather than realizing them. She focuses on the inside, her way is relaxed and natural. The queen is more concerned with the pleasure of living than the result. She is associated with feelings, relationships and self-expression
Knight
an immature youth. He can't balance himself. He wants to adapt to the world successfully, but he swings between the two extremes. Knight's behavior is sometimes excessive, but he is eager and loyal, so we can forgive him. We admire and admire his spirit and energy
waiter
a naughty child. He showed the happy and inlgent quality of this set of cards. His way may not be profound enough, but it is simple, relaxed and instinctive. He symbolizes adventure, exploration and possibility<
key words of little Akana
first card (start)
Scepter action start action, the beginning of energy, new action, creation, opportunity, inspiration
Holy Grail emotional start emotion, love, joy, feeling
sword thought mental start thought, reason, new challenge, extreme Determination
Star coin material substantive start material, wealth, pleasure, security, substance
2 (decision)
Scepter body or position decision, power, courage, plan
Holy Grail emotional union true love, love, friendship, cooperation, union
Baojian faith decision deadlock, escape, resistance, opposition Tension
financial decisions of starcoin: circulation, fluctuation, flexibility, balance, entertainment
3 (growth)
Scepter travel or physical progress, achievement, leadership, vision, exploration, trade, cooperation
Holy Grail emotional progress or celebration, joy, alliance, group, banquet
sword brings pain, sadness, loss, loss of understanding Delay
Star coin learning brings about physical growth plan, cooperation, coordination, honor and talent
4 (Consolidation)
Scepter's physical consolidation, stability, celebration, harmony and prosperity
Grail's emotional consolidation, choice, meditation, coldness and retreat
sword's spiritual consolidation, rest, negativity, meditation Prepare for
financial consolidation, possession, control, profit and inheritance of star coin
5 (change)
the scepter disperses the energy conflict, dispute, competition and fierce battle of the body
the separation of the Holy Grail, loss, disappointment, sadness and loss
the inner impulse, dispute, loss, selfishness and meaningless victory of the sword Humiliation
Star coin's spiritual and financial poverty, disease, hardship, lovers
6 (stability)
Scepter's concentrated energy and stable victory, progress, self-confidence, good news
Holy Grail's emotional stability, kindness, childhood, memory, homesickness, care, gift
sword abandons old faith, calm, melancholy, healing, healing, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace Travel
Star coin financial stability, charity, generosity, financial management
7 (don't give up)
Scepter physical challenge, courage, defense, challenge, opposition
Holy Grail emotional pursuit of dream, confusion, imagination, choice
sword mental adaptation, not fame, fraud, isolation, attempt Confidence
Star coin needs to adapt to major financial challenges assessment, standby, pause, thinking, harvest
8 (strength or personal ability)
Scepter full of energy, rapid, arrival, travel, information
holy grail to pursue the power of a richer life, pursue, abandon, dissatisfaction, action, sacrifice
sword found to get rid of other people's belief, strength limit, and other people's life Star coin is determined to build on its past success the foundation of specialty, skill, diligence and work
9 (reassessment)
Scepter reassesses which goal is important: prudence, vigilance, obstinacy, defense, experience
grail satisfaction and healthy self-worth satisfaction, enjoyment, self satisfaction, self satisfaction Dream come true
sword worry, despair, pain, insomnia
Star coin e to the actual efforts to achieve material success charm, confidence, success, enjoyment, self-discipline, affluence
10 (completion)
the burden of oppression, fatigue, pressure, effort, responsibility brought by too many scepters
Holy Grail harmonious family or group happiness, family, satisfaction Harmony, joy
sword is knocked down by the outlook on life, failure, pain, end, darkness before dawn
Star coin material stable and lasting success, wealth, material success
waiter
Scepter serious naive youth
holy Grail tender and friendly, studious, pay feelings, good friends
sword alert rumors, bad news, detectives, spies Paparazzi
Star coin use students, apprentices, craftsmen, investment
Knight
Scepter active hot young people, travel
Holy Grail considerate romantic, affectionate, talent, Prince Charming
sword strong radicals, extremists
Star coin accumulation hard-working, realistic, workaholic Money worship
queen
Scepter cheerful sunshine girl, silly elder sister, strong woman, heroine
Holy Grail warm imagination, care, sensibility, poetess
sword moral widow, separation, cold as ice
Star coin motherly care, professional women, boss's wife, young woman
King
Scepter steady founding monarch, Overlord Ambitious leaders
Holy Grail tolerance, love of family, care, charity, new good man, religious family
sword serious and shrewd, professionals
Star coin reliable, successful business, economic foundation, big boss, business tycoon
the main card represents the common theme, while the auxiliary card extends these themes to reality, showing how they play a role in daily events. Auxiliary cards represent the things you care about, your actions, your emotions, which construct the script of life
there are 56 auxiliary cards, which are divided into four groups: wands, cups, swords and Pentacles. Many taros use other names for the four sets
each card has a specific definition
the staff group represents creation, action and movement. They are related to the virtues of passion, exploration, adventure and self-confidence. This group is equivalent to the "Yang" or male characteristics of Chinese philosophical power, and the related element is fire. A throbbing flame is a perfect symbol of the power of the staff. This kind of energy radiates outward, making people enthusiastically participate in affairs
the cup group represents emotional and spiritual experience. They describe inner states, feelings and relationships. This energy is concentrated inward. The cup is equivalent to "Yin" or feminine characteristics in Chinese philosophy, and the related element is water. Water can flow, can fill gaps, can enre, but moody, which makes it a typical symbol of the cup< The sword group represents intelligence, thinking and reason. They are related to justice, sincerity and morality. The related element of sword is wind. The clear sky is open, cloudless and bright everywhere, symbolizing the clear and clear inner spirit, which is the best portrayal of sword. This group will also lead to disharmony and discomfort. Our mind is a valuable asset, but it represents the self. If there is no spiritual guide to inject wisdom, it will lead us astray
the group of stars represents practice, safety and material. They are related to the specific needs when dealing with problems. The associated element of a star is the earth. The spirit of the star is to celebrate the beauty of nature, the interaction with plants and animals, and the physical feeling of the body. Stars also represent all kinds of prosperity, success and wealth. Sometimes this group is also called "coins". In this material world, "money" is of course the most obvious symbol when exchanging goods and enjoying services< Second, the energy operation of digital cards. The four groups of cards are composed of ten digital cards and four palace cards, which are very similar to the playing cards we often play. In the energy operation of tarot cards, each card plays its own role
the first card
the first card illustrates the theme of this group. For example, "the first card of the Grail" stands for love, emotion, intuition, and intimacy - these are presented in other cards in the Grail group. The first card always represents positive power. It carries the best that this group can offer
middle card
middle card with serial number (2-9), each of which represents a different side of the group. For example, the themes revealed by the scepter include personal strength (Scepter 2), leadership (Scepter 3), excitement (Scepter 4) and competition (Scepter 5). A card may explore a problem from several perspectives. For example, star coin 5 shows many aspects of demand - hard times (material needs), poor health (physical needs), and rejection (emotional needs)
No.10 card
the No.10 card of each group is to dece the theme of the first card of the group to a logical result. For example, the first card of the Holy Grail represents love, intimacy and emotion. If you let them develop, they will eventually become fun, peace and family love. This is the content of "Holy Grail 10"
palace card
palace card is some personalized characters, each character has a special identity, symbolizing a specific role or a special stage in our life. Palace cards show us some specific ways of life, so we can learn from (or avoid) the principles they represent when appropriate< The king is mature and masculine. He is a doer. When dealing with various affairs, he pays more attention to external aspects. In this group, the king represents authority, control and domination. The king's way is strong, decisive and direct. He's concerned about results and practices, and how to deal with things
queen
mature and feminine. She embraces the characteristics of this group and makes the characteristics of this group of cards concrete rather than realizing them. She focuses on the inside, her way is relaxed and natural. The queen is more concerned with the pleasure of living than the result. She is associated with feelings, relationships and self-expression
Knight
an immature youth. He can't balance himself. He wants to adapt to the world successfully, but he swings between the two extremes. Knight's behavior is sometimes excessive, but he is eager and loyal, so we can forgive him. We admire and admire his spirit and energy
waiter
a naughty child. He showed the happy and inlgent quality of this set of cards. His way may not be profound enough, but it is simple, relaxed and instinctive. He symbolizes adventure, exploration and possibility<
key words of little Akana
first card (start)
Scepter action start action, the beginning of energy, new action, creation, opportunity, inspiration
Holy Grail emotional start emotion, love, joy, feeling
sword thought mental start thought, reason, new challenge, extreme Determination
Star coin material substantive start material, wealth, pleasure, security, substance
2 (decision)
Scepter body or position decision, power, courage, plan
Holy Grail emotional union true love, love, friendship, cooperation, union
Baojian faith decision deadlock, escape, resistance, opposition Tension
financial decisions of starcoin: circulation, fluctuation, flexibility, balance, entertainment
3 (growth)
Scepter travel or physical progress, achievement, leadership, vision, exploration, trade, cooperation
Holy Grail emotional progress or celebration, joy, alliance, group, banquet
sword brings pain, sadness, loss, loss of understanding Delay
Star coin learning brings about physical growth plan, cooperation, coordination, honor and talent
4 (Consolidation)
Scepter's physical consolidation, stability, celebration, harmony and prosperity
Grail's emotional consolidation, choice, meditation, coldness and retreat
sword's spiritual consolidation, rest, negativity, meditation Prepare for
financial consolidation, possession, control, profit and inheritance of star coin
5 (change)
the scepter disperses the energy conflict, dispute, competition and fierce battle of the body
the separation of the Holy Grail, loss, disappointment, sadness and loss
the inner impulse, dispute, loss, selfishness and meaningless victory of the sword Humiliation
Star coin's spiritual and financial poverty, disease, hardship, lovers
6 (stability)
Scepter's concentrated energy and stable victory, progress, self-confidence, good news
Holy Grail's emotional stability, kindness, childhood, memory, homesickness, care, gift
sword abandons old faith, calm, melancholy, healing, healing, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace, peace Travel
Star coin financial stability, charity, generosity, financial management
7 (don't give up)
Scepter physical challenge, courage, defense, challenge, opposition
Holy Grail emotional pursuit of dream, confusion, imagination, choice
sword mental adaptation, not fame, fraud, isolation, attempt Confidence
Star coin needs to adapt to major financial challenges assessment, standby, pause, thinking, harvest
8 (strength or personal ability)
Scepter full of energy, rapid, arrival, travel, information
holy grail to pursue the power of a richer life, pursue, abandon, dissatisfaction, action, sacrifice
sword found to get rid of other people's belief, strength limit, and other people's life Star coin is determined to build on its past success the foundation of specialty, skill, diligence and work
9 (reassessment)
Scepter reassesses which goal is important: prudence, vigilance, obstinacy, defense, experience
grail satisfaction and healthy self-worth satisfaction, enjoyment, self satisfaction, self satisfaction Dream come true
sword worry, despair, pain, insomnia
Star coin e to the actual efforts to achieve material success charm, confidence, success, enjoyment, self-discipline, affluence
10 (completion)
the burden of oppression, fatigue, pressure, effort, responsibility brought by too many scepters
Holy Grail harmonious family or group happiness, family, satisfaction Harmony, joy
sword is knocked down by the outlook on life, failure, pain, end, darkness before dawn
Star coin material stable and lasting success, wealth, material success
waiter
Scepter serious naive youth
holy Grail tender and friendly, studious, pay feelings, good friends
sword alert rumors, bad news, detectives, spies Paparazzi
Star coin use students, apprentices, craftsmen, investment
Knight
Scepter active hot young people, travel
Holy Grail considerate romantic, affectionate, talent, Prince Charming
sword strong radicals, extremists
Star coin accumulation hard-working, realistic, workaholic Money worship
queen
Scepter cheerful sunshine girl, silly elder sister, strong woman, heroine
Holy Grail warm imagination, care, sensibility, poetess
sword moral widow, separation, cold as ice
Star coin motherly care, professional women, boss's wife, young woman
King
Scepter steady founding monarch, Overlord Ambitious leaders
Holy Grail tolerance, love of family, care, charity, new good man, religious family
sword serious and shrewd, professionals
Star coin reliable, successful business, economic foundation, big boss, business tycoon
3.
@echooff
set中=零壹贰叁肆伍陆柒捌玖
set位=万仟佰拾亿仟佰拾万仟佰拾元
set/pvar=输入数字:
setn=0
:add
ifnot"!var:~%n%,1!"==""(set/an+=1&gotoadd)
set/am=!n!-1
setnum=0
for%%iin(%中%)do(
setnet=%%i
call:num
set/anum+=1
)
set"var=!var:0.0=零!"
sety=1
for/l%%iin(0,1,%m%)do(
set/ax=!n!-%%i
setxx=%%i
call:show
)
set/pvalue=<$
del$
cls
echo!value!整
pause
exit
:show
set/p=!var:~%xx%,1!!位:~-%x%,1!<nul>>$
:num
ifnoty==1(
set"var=!var:%num%=%net%!"
)
遇到连00的数字就不行了,这也是代码的弊端转换后只作显示
4. #include<stdio.h>
#include<windows.h>
#include<math.h>
#define p 3.1415926
#define r p/180 //r=p/180,p=3.14....,p/180是求的1弧度,下面sin(里面要求的是弧度),sin30弧度=0.5 void main()
{
float i,j,k;
int l,m,n,a[10];
char cmd;
LOOP:
system("cls");
printf("***********************\n");
printf("*******小寒计算器******\n");
printf("***********************\n");
printf("\n\n本计算器提供+、-、*、/四种运算\n");
printf("p-代表圆周率pai\n");
printf("a-代表十进制转换为二进制\n");
printf("b-代表十进制转换为八进制\n");
printf("c-代表十进制转换为十六进制\n");
printf("d-代表该数值开方\n");
printf("e-代表该数值开立方\n");
printf("f-代表求几次方\n");
printf("S-代表sin\n");
printf("C-代表cos\n");
printf("T-代表tan\n");
printf("\n\n请输入要计算的数字和运算符号,输入逗#地时,结束输入逗地时复位\n");
scanf("%f",&k);
while((cmd=getchar())!='#')
{
if(i!=0)
switch(cmd)
{
case '+': scanf("%f",&i);
k=k+i;
printf("=%5.2f",k);
break; case '-': scanf("%f",&i);
k=k-i;
printf("=%5.2f",k);
break; case '*': scanf("%f",&i);
k=k*i;
printf("=%5.2f",k);
break; case '/': scanf("%f",&i);
k=k/i;
printf("=%5.2f",k);
break;
case 'p': k=k*p;
printf("%6.4f",k);
break; case 'f': printf("请输入要求该数字的几次方:");
scanf("%d",&n);
i=k;
for(m=0;m<n-1;m++)
k=k*i;
printf("%5.2f",k);
break; case 'a': printf("转换成二进制\n");
m=0;
while((int)k>0)
{
l=k;
k=k/2;
l=l%2;
a[m]=l;
m++;
}
for(n=m-1;n>=0;n--)
printf("%d",a[n]);
break; case 'b': printf("转换成八进制\n");
m=0;
while((int)k>0)
{
l=k;
k=k/8;
l=l%8;
a[m]=l;
m++;
}
for(n=m-1;n>=0;n--)
printf("%d",a[n]);
break;
case 'c': printf("转换成十六进制\n");
m=0;
while((int)k>0)
{
l=k;
k=k/16;
l=l%16;
a[m]=l;
m++;
}
for(n=m-1;n>=0;n--)
{
if(a[n]==10)
{ printf("A");continue;}
else if(a[n]==11)
{ printf("B");continue;}
else if(a[n]==12)
{ printf("C");continue;}
else if(a[n]==13)
{ printf("D");continue;}
else if(a[n]==14)
{ printf("E");continue;}
else if(a[n]==15)
{ printf("F");continue;} printf("%d",a[n]);
}
break;
case 'e': printf("该数值开立方得\n");
i=pow(k,1.0/3);
printf("%5.2f",i );
break;
case 'd': printf("该数值开方得\n");
i=k/2;
j=sqrt(k);
printf("%5.2f",j);
break; case 'S': k=k*r;
i=sin(k);
printf("%5.2f",i);
break;
case 'C': k=k*r;
i=cos(k);
printf("%5.2f",i);
break; case 'T': k=k*r;
i=tan(k);
printf("%5.2f",i);
break; case '!': goto LOOP;
}
}
}
#include<windows.h>
#include<math.h>
#define p 3.1415926
#define r p/180 //r=p/180,p=3.14....,p/180是求的1弧度,下面sin(里面要求的是弧度),sin30弧度=0.5 void main()
{
float i,j,k;
int l,m,n,a[10];
char cmd;
LOOP:
system("cls");
printf("***********************\n");
printf("*******小寒计算器******\n");
printf("***********************\n");
printf("\n\n本计算器提供+、-、*、/四种运算\n");
printf("p-代表圆周率pai\n");
printf("a-代表十进制转换为二进制\n");
printf("b-代表十进制转换为八进制\n");
printf("c-代表十进制转换为十六进制\n");
printf("d-代表该数值开方\n");
printf("e-代表该数值开立方\n");
printf("f-代表求几次方\n");
printf("S-代表sin\n");
printf("C-代表cos\n");
printf("T-代表tan\n");
printf("\n\n请输入要计算的数字和运算符号,输入逗#地时,结束输入逗地时复位\n");
scanf("%f",&k);
while((cmd=getchar())!='#')
{
if(i!=0)
switch(cmd)
{
case '+': scanf("%f",&i);
k=k+i;
printf("=%5.2f",k);
break; case '-': scanf("%f",&i);
k=k-i;
printf("=%5.2f",k);
break; case '*': scanf("%f",&i);
k=k*i;
printf("=%5.2f",k);
break; case '/': scanf("%f",&i);
k=k/i;
printf("=%5.2f",k);
break;
case 'p': k=k*p;
printf("%6.4f",k);
break; case 'f': printf("请输入要求该数字的几次方:");
scanf("%d",&n);
i=k;
for(m=0;m<n-1;m++)
k=k*i;
printf("%5.2f",k);
break; case 'a': printf("转换成二进制\n");
m=0;
while((int)k>0)
{
l=k;
k=k/2;
l=l%2;
a[m]=l;
m++;
}
for(n=m-1;n>=0;n--)
printf("%d",a[n]);
break; case 'b': printf("转换成八进制\n");
m=0;
while((int)k>0)
{
l=k;
k=k/8;
l=l%8;
a[m]=l;
m++;
}
for(n=m-1;n>=0;n--)
printf("%d",a[n]);
break;
case 'c': printf("转换成十六进制\n");
m=0;
while((int)k>0)
{
l=k;
k=k/16;
l=l%16;
a[m]=l;
m++;
}
for(n=m-1;n>=0;n--)
{
if(a[n]==10)
{ printf("A");continue;}
else if(a[n]==11)
{ printf("B");continue;}
else if(a[n]==12)
{ printf("C");continue;}
else if(a[n]==13)
{ printf("D");continue;}
else if(a[n]==14)
{ printf("E");continue;}
else if(a[n]==15)
{ printf("F");continue;} printf("%d",a[n]);
}
break;
case 'e': printf("该数值开立方得\n");
i=pow(k,1.0/3);
printf("%5.2f",i );
break;
case 'd': printf("该数值开方得\n");
i=k/2;
j=sqrt(k);
printf("%5.2f",j);
break; case 'S': k=k*r;
i=sin(k);
printf("%5.2f",i);
break;
case 'C': k=k*r;
i=cos(k);
printf("%5.2f",i);
break; case 'T': k=k*r;
i=tan(k);
printf("%5.2f",i);
break; case '!': goto LOOP;
}
}
}
5. The unsigned data types include uint, ulong and ushortuint data types. (1) uint data types can hold 32-bit (i.e. 4-byte) integers without sign, with values ranging from 0 to 2 to the 32nd power - 1. (2) uint and int data types are the most efficient data types on 32-bit platforms, and they will provide the best performance of your application. Although the smaller integer types (including: USHORT, short, byte and sbyte) use fewer bits, they take more time to load, save and extract 3) Because uint is an unsigned type, it cannot represent a negative number. If you add a negative sign to an expression that will be evaluated as uint, Visual C # will convert the expression to long 4) The uint region variable in Visual C # must be initialized before use (myuint = new uint();), And the default value of uint data type is 0 5) The uint data types can be extended to long, uling, float, double and decimal, which means that you can convert uint to these data types without overflow errors 6) You can add the type character u or u after a constant to indicate that the constant is a uint data type. For example: message box. Show (typename (3993u)) 7) In terms of CLS compatibility, the uint data type is not part of the common language specification Common language specifications (CLS) specifies the rules of meeting between programming languages on. Net platform; A component that follows all CLS rules is called a CLS compliant component. If your code violates any CLS specification, programs written in languages other than the component may not be able to use the component 8) The C # data type is equivalent to the corresponding data type in. Net framework, and the corresponding type of uint data type in. Net framework is system. Uint32 structure. Ulong data type (1) the ulong data type can hold 64 bit (i.e. 8-byte) integers without sign, with values ranging from 0 to 2 to the 64th power - 1 (2) since ulong is a type without sign, it cannot represent a negative number. If you add a negative sign to an expression that will be evaluated as ulong, Visual C # will convert the expression to decimal 3) The ulong data types can be extended to float, double and decimal, which means that you can convert ulong to these data types without overflow errors 4) You can add the type character UL after a constant to indicate that the constant is a uint data type. For example: message box. Show (typename (3993ul)) 5) The corresponding type of ulong data type in. Net framework is system. Uint64 structure 6) The ulong region variable in visual c#must be initialized before use (myulong = new ulong();), And the default value of ulong data type is 0 7) The same as uint (7) USHORT data type (1) USHORT data type can hold 16 bit (i.e. 2 bytes) integers without sign, and the value range is from 0 to the 16th power of 2-1 (2) because USHORT is a type without sign, it cannot represent a negative number. If you add a negative sign to an expression that will be evaluated as a USHORT type, Visual C # will convert the expression to int 3) USHORT data types can be extended to int, uint, long, ulong, float, double and decimal, which means that you can convert USHORT to these data types without overflow errors 4) The corresponding type of USHORT data type in. Net framework is system. Uint16 structure 5) The USHORT region variable in Visual C # must be initialized before use (myushort = new ushort();), The default value of USHORT data type is 0 6) You don't need to add any type character after a constant to indicate that the constant is a USHORT data type 7) The same as uint (7) sbyte data type (1) sbyte data type can hold signed 8-bit (i.e. 1 byte) integers with values ranging from - 128 to 127 2) The same as the sbyte region variable in uint (7) (3) visual c #, which must be initialized before use (mysbyte = new sbyte();), The default value of sbyte data type is 0 4) Sbyte data types can be extended to short, int, long, flow, double and decimal, which means that you can convert sbyte to these data types without overflow errors 5) The sbyte data type does not have any type characters 6) The corresponding type of sbyte data type in. Net framework is system. Sbyte structure. Decimal data type (1) the decimal keyword represents a 128 bit data type. Compared with floating-point type, decimal type has higher precision and smaller range, which makes it suitable for financial and monetary calculation 2) Approximate scope of decimal ± one × 10 to the minus 28th power ± seven point nine × The accuracy is 28 to 29 significant bits 3) You can add the type character m or m after a constant to indicate that the constant is a decimal data type. For example: decimal mymoney = 300.5m; Without the suffix m, the number is treated as a double type, resulting in compiler errors 4) Integer is implicitly converted to decimal, and the result is decimal. Therefore, you can initialize decimal variables with integers instead of suffix characters, such as decimal mymoney = 300 5) There is no implicit conversion between floating-point and decimal types; Therefore, cast must be used to convert between the two types.
6. 1. 迷宫问题
/////////////////////////
/////////迷宫求解////////
//////作者:hacker/////
/////时间:11.10.2006/////
/////////////////////////
//Migong.h
//利用栈进行回溯
/*class:
Matrix:矩阵类
offsets:搜索偏移
enum directions:四个方向
struct item:搜索节点
Migong:迷宫类
1.创建一个Migong对象
2.使用用Create方法输入数据
3.使用Solve方法进行求解
4.ShowSolve方法显示解
5.可以重复使用Create方法
6.入口只能在左上角
7.默认出口在右下角
ShowAllPath:穷举所有的路径
备注:
由于算法原因,这里的所有路径应该是指
介于:
a.如果两条路存在某个点不同那么就是不同的路
b.如果在一条路中去掉一个或者一个以上的圈,那么他们是同一条路
之间意义上的路
*/
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
#ifndef MIGONG_H
#define MIGONG_H
///////////////////
///////矩阵类//////
///////////////////
class Matrix{
int* m;
int row, col;
bool iscreate;
public:
Matrix(){m=0;iscreate=false;};
~Matrix() {Release();};
bool Create(int, int);
int& operator () (int, int);
int GetRow(){return row;};
int GetCol(){return col;};
void Release();
void Show(char, char );
};
bool Matrix::Create(int r, int c)
{
if( r<=0 || c<=0) return false;
Release();
row = r;
col = c;
m = new int[row*col];
for (int i=0;i<row*col;i++)
{
*(m+i) = 0;
}
iscreate = true;
return true;
}
int& Matrix::operator ()(int r, int c)
{
return *(m+r*col+c);
}
void Matrix::Release()
{
if (iscreate)
{
row = col = 0;
if (m) delete[] m;
m = 0;
}
iscreate = false;
}
void Matrix::Show(char blk='#', char nblk=' ')
{
int i, j;
for (i=0;i<row;i++)
{
for (j=0;j<col;j++)
{
if (*(m+i*col+j) == 0)
cout<<nblk;
else
cout<<blk;
}
cout<<endl;
}
}
/////////////////////////////
////迷宫相关数据结构的定义///
/////////////////////////////
struct offsets{
int a, b;
};
enum directions{
_S = 0,
_E,
_N,
_W
};
struct item{
int row, col, dir;
};
class Migong{
static offsets move[4];
Matrix maze;
Matrix mark;
int row;
int col;
int desr;
int desc;
stack<item> stk;
bool iscreate;
int pathlength;
bool GetPath();
bool IsInPath(int, int);
public:
Migong(){issolved=false;result=0;pathlength=row=col=0;iscreate=false;};
~Migong(){Release();};
bool Create(int* , int , int , int , int );
void Solve();
void Release();
void OutputMaze();
void ShowSolve(char, char );
public:
bool issolved;
item* result;
};
offsets Migong::move[4]={ {1, 0}, {0, 1},
{-1, 0}, {0, -1}};
////////////////////////////
//迷宫数据应该是不含边框的//
////////////////////////////
bool Migong::Create(int* m, int r, int c, int desrow=-1, int descol=-1)
{
if (r<=0 || c<=0) return false;
Release();
if (desrow==-1 || descol==-1)
{
desr = r;
desc = c;
}
else
{
desr = desrow;
desc = descol;
}
row = r;
col = c;
maze.Create(r+2, c+2);
mark.Create(r+2, c+2);
int i, j;
for (i=0;i<r+2;i++)
{
for (j=0;j<c+2;j++)
{
if (j==0 || j==c+1 || i==0 || i==r+1)
{
mark(i, j) = maze(i, j) = 1;
}else
{
mark(i, j) = 0;
maze(i, j) = m[((i-1)*col+j-1)];
}
}
}
return iscreate = true;
}
bool Migong::GetPath()
{
mark(1,1) = 1;
item temp;
temp.col = 1;
temp.row = 1;
temp.dir = _S;
stk.push(temp);
while (!stk.empty())
{
temp = stk.top();
stk.pop();
int i = temp.row;
int j = temp.col;
int d = temp.dir;
while (d<4)
{//根据当前点的状态确定下一个搜索点
int g = i + move[d].a;
int h = j + move[d].b;
if (g==desr && h==desc)
{
return true;
}
//如果这个点不是障碍点且没有被搜索过那么可以对这个点进行搜索
if (maze(g, h)==0 && mark(g, h)==0)
{
mark(g, h) = 1;
temp.row = g;
temp.col = h;
temp.dir = d+1;
stk.push(temp);
i = g;
j = h;
d = _S;//对一下个点进行搜索
}
else d++;
}
}
return false;
}
void Migong::Solve()
{
issolved = GetPath();
if (issolved)
{
pathlength = stk.size();
result = new item[pathlength];
for (int i=0;i<pathlength;i++)
{
*(result+i) = stk.top();
stk.pop();
// cout<<"("<<(*(result+i)).row<<","<<(*(result+i)).col<<")"<<endl;
}
}
while (!stk.empty())
stk.pop();
}
void Migong::Release()
{
if (iscreate)
{
maze.Release();
mark.Release();
row=col=0;
if (result)
delete [] result;
result = 0;
while (!stk.empty())
stk.pop();
}
iscreate = false;
issolved = false;
pathlength = 0;
}
void Migong::OutputMaze()
{
if (!iscreate) return;
maze.Show();
}
bool Migong::IsInPath(int r, int c)
{
if (!iscreate || !issolved)
return false;
item temp;
for (int i=0;i<pathlength;i++)
{
temp = *(result+i);
if ((temp.row==r) && (temp.col==c))
return true;
}
return false;
}
void Migong::ShowSolve(char blk='#',char s='o')
{
if (!iscreate) return;
if (!issolved)
{
cout<<"无解"<<endl;
}
else
{
int i, j;
for (i=0;i<row+2;i++)
{
for (j=0;j<col+2;j++)
{
if ((i==1 && j==1) || (i==desr && j==desc))
{
cout<<s;
}
else if (maze(i, j) == 1)
{
cout<<blk;
}else
{
if (IsInPath(i, j))
cout<<s;
else
cout<<' ';
}
}
cout<<endl;
}
}
}
//////////////////////
//////穷举所有路径////
//////////////////////
offsets move[4]={ {1, 0}, {0, 1},
{-1, 0}, {0, -1}};
struct node
{
int row,col;
};
vector<node> path;
int count;
bool IsReachable( Matrix& maze, Matrix& mark, node beg, node des)
{
if (beg.row==des.row&&beg.col==des.col)
{//如果达到的话那么显示路径
count++;
cout<<"第"<<count<<"条路径:"<<endl;
for (int i=0;i<path.size();i++)
cout<<"("<<path[i].row<<","<<path[i].col<<")";
cout<<"("<<des.row<<","<<des.col<<")";
cout<<endl;
return false;
}
if (maze(beg.row, beg.col)==1 || mark(beg.row, beg.col)==1)
{
return false;
}
path.push_back(beg);
mark(beg.row, beg.col) = 1;
node nextnode;
for (int i=_S;i<_W+1;i++)
{
nextnode.row = beg.row + move[i].a;
nextnode.col = beg.col + move[i].b;
IsReachable(maze, mark, nextnode, des);
}
path.resize(path.size()-1);
mark(beg.row, beg.col) = 0;
return false;//如果不是穷举的话应该根据for循环的结果重新设置返回值
}
/*
参数maze,mark为迷宫长宽均加二的矩阵
desr,desc为出口点
*/
void FindAllPath( Matrix& maze, Matrix& mark, int desr, int desc)
{
node first, last;
first.row = 1;
first.col = 1;
last.row = desr;
last.col = desc;
IsReachable(maze, mark, first, last);
path.clear();
}
/*
m迷宫矩阵数据
r,c行和列的大小
desr,desc目标位置
*/
void ShowAllPath(int* m, int r, int c, int desr=-1, int desc=-1)
{
Matrix maze, mark;
maze.Create(r+2, c+2);
mark.Create(r+2, c+2);
if (desr==-1 || desc==-1)
{
desr = r;
desc = c;
}
int i, j;
for (i=0;i<r+2;i++)
{
for (j=0;j<c+2;j++)
{
if (j==0 || j==c+1 || i==0 || i==r+1)
{
mark(i, j) = maze(i, j) = 1;
}else{
mark(i, j) = 0;
maze(i, j) = m[((i-1)*c+j-1)];
}
}
}
count = 0;
FindAllPath(maze, mark, desr, desc);
maze.Release();
mark.Release();
}
#endif
//main.cpp
#include <iostream>
#include "Migong.h"
using namespace std;
int mg[]={
0,0,1,0,0,0,1,0,//1
0,0,1,0,0,0,1,0,//2
0,0,0,0,1,1,0,1,//3
0,1,1,1,0,0,1,0,//4
0,0,0,1,0,0,0,0,//5
0,1,0,0,0,0,0,1,//6
0,1,1,1,1,0,0,1,//7
1,1,0,0,0,1,0,1,//8
1,1,0,0,0,0,0,
/////////////////////////
/////////迷宫求解////////
//////作者:hacker/////
/////时间:11.10.2006/////
/////////////////////////
//Migong.h
//利用栈进行回溯
/*class:
Matrix:矩阵类
offsets:搜索偏移
enum directions:四个方向
struct item:搜索节点
Migong:迷宫类
1.创建一个Migong对象
2.使用用Create方法输入数据
3.使用Solve方法进行求解
4.ShowSolve方法显示解
5.可以重复使用Create方法
6.入口只能在左上角
7.默认出口在右下角
ShowAllPath:穷举所有的路径
备注:
由于算法原因,这里的所有路径应该是指
介于:
a.如果两条路存在某个点不同那么就是不同的路
b.如果在一条路中去掉一个或者一个以上的圈,那么他们是同一条路
之间意义上的路
*/
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
#ifndef MIGONG_H
#define MIGONG_H
///////////////////
///////矩阵类//////
///////////////////
class Matrix{
int* m;
int row, col;
bool iscreate;
public:
Matrix(){m=0;iscreate=false;};
~Matrix() {Release();};
bool Create(int, int);
int& operator () (int, int);
int GetRow(){return row;};
int GetCol(){return col;};
void Release();
void Show(char, char );
};
bool Matrix::Create(int r, int c)
{
if( r<=0 || c<=0) return false;
Release();
row = r;
col = c;
m = new int[row*col];
for (int i=0;i<row*col;i++)
{
*(m+i) = 0;
}
iscreate = true;
return true;
}
int& Matrix::operator ()(int r, int c)
{
return *(m+r*col+c);
}
void Matrix::Release()
{
if (iscreate)
{
row = col = 0;
if (m) delete[] m;
m = 0;
}
iscreate = false;
}
void Matrix::Show(char blk='#', char nblk=' ')
{
int i, j;
for (i=0;i<row;i++)
{
for (j=0;j<col;j++)
{
if (*(m+i*col+j) == 0)
cout<<nblk;
else
cout<<blk;
}
cout<<endl;
}
}
/////////////////////////////
////迷宫相关数据结构的定义///
/////////////////////////////
struct offsets{
int a, b;
};
enum directions{
_S = 0,
_E,
_N,
_W
};
struct item{
int row, col, dir;
};
class Migong{
static offsets move[4];
Matrix maze;
Matrix mark;
int row;
int col;
int desr;
int desc;
stack<item> stk;
bool iscreate;
int pathlength;
bool GetPath();
bool IsInPath(int, int);
public:
Migong(){issolved=false;result=0;pathlength=row=col=0;iscreate=false;};
~Migong(){Release();};
bool Create(int* , int , int , int , int );
void Solve();
void Release();
void OutputMaze();
void ShowSolve(char, char );
public:
bool issolved;
item* result;
};
offsets Migong::move[4]={ {1, 0}, {0, 1},
{-1, 0}, {0, -1}};
////////////////////////////
//迷宫数据应该是不含边框的//
////////////////////////////
bool Migong::Create(int* m, int r, int c, int desrow=-1, int descol=-1)
{
if (r<=0 || c<=0) return false;
Release();
if (desrow==-1 || descol==-1)
{
desr = r;
desc = c;
}
else
{
desr = desrow;
desc = descol;
}
row = r;
col = c;
maze.Create(r+2, c+2);
mark.Create(r+2, c+2);
int i, j;
for (i=0;i<r+2;i++)
{
for (j=0;j<c+2;j++)
{
if (j==0 || j==c+1 || i==0 || i==r+1)
{
mark(i, j) = maze(i, j) = 1;
}else
{
mark(i, j) = 0;
maze(i, j) = m[((i-1)*col+j-1)];
}
}
}
return iscreate = true;
}
bool Migong::GetPath()
{
mark(1,1) = 1;
item temp;
temp.col = 1;
temp.row = 1;
temp.dir = _S;
stk.push(temp);
while (!stk.empty())
{
temp = stk.top();
stk.pop();
int i = temp.row;
int j = temp.col;
int d = temp.dir;
while (d<4)
{//根据当前点的状态确定下一个搜索点
int g = i + move[d].a;
int h = j + move[d].b;
if (g==desr && h==desc)
{
return true;
}
//如果这个点不是障碍点且没有被搜索过那么可以对这个点进行搜索
if (maze(g, h)==0 && mark(g, h)==0)
{
mark(g, h) = 1;
temp.row = g;
temp.col = h;
temp.dir = d+1;
stk.push(temp);
i = g;
j = h;
d = _S;//对一下个点进行搜索
}
else d++;
}
}
return false;
}
void Migong::Solve()
{
issolved = GetPath();
if (issolved)
{
pathlength = stk.size();
result = new item[pathlength];
for (int i=0;i<pathlength;i++)
{
*(result+i) = stk.top();
stk.pop();
// cout<<"("<<(*(result+i)).row<<","<<(*(result+i)).col<<")"<<endl;
}
}
while (!stk.empty())
stk.pop();
}
void Migong::Release()
{
if (iscreate)
{
maze.Release();
mark.Release();
row=col=0;
if (result)
delete [] result;
result = 0;
while (!stk.empty())
stk.pop();
}
iscreate = false;
issolved = false;
pathlength = 0;
}
void Migong::OutputMaze()
{
if (!iscreate) return;
maze.Show();
}
bool Migong::IsInPath(int r, int c)
{
if (!iscreate || !issolved)
return false;
item temp;
for (int i=0;i<pathlength;i++)
{
temp = *(result+i);
if ((temp.row==r) && (temp.col==c))
return true;
}
return false;
}
void Migong::ShowSolve(char blk='#',char s='o')
{
if (!iscreate) return;
if (!issolved)
{
cout<<"无解"<<endl;
}
else
{
int i, j;
for (i=0;i<row+2;i++)
{
for (j=0;j<col+2;j++)
{
if ((i==1 && j==1) || (i==desr && j==desc))
{
cout<<s;
}
else if (maze(i, j) == 1)
{
cout<<blk;
}else
{
if (IsInPath(i, j))
cout<<s;
else
cout<<' ';
}
}
cout<<endl;
}
}
}
//////////////////////
//////穷举所有路径////
//////////////////////
offsets move[4]={ {1, 0}, {0, 1},
{-1, 0}, {0, -1}};
struct node
{
int row,col;
};
vector<node> path;
int count;
bool IsReachable( Matrix& maze, Matrix& mark, node beg, node des)
{
if (beg.row==des.row&&beg.col==des.col)
{//如果达到的话那么显示路径
count++;
cout<<"第"<<count<<"条路径:"<<endl;
for (int i=0;i<path.size();i++)
cout<<"("<<path[i].row<<","<<path[i].col<<")";
cout<<"("<<des.row<<","<<des.col<<")";
cout<<endl;
return false;
}
if (maze(beg.row, beg.col)==1 || mark(beg.row, beg.col)==1)
{
return false;
}
path.push_back(beg);
mark(beg.row, beg.col) = 1;
node nextnode;
for (int i=_S;i<_W+1;i++)
{
nextnode.row = beg.row + move[i].a;
nextnode.col = beg.col + move[i].b;
IsReachable(maze, mark, nextnode, des);
}
path.resize(path.size()-1);
mark(beg.row, beg.col) = 0;
return false;//如果不是穷举的话应该根据for循环的结果重新设置返回值
}
/*
参数maze,mark为迷宫长宽均加二的矩阵
desr,desc为出口点
*/
void FindAllPath( Matrix& maze, Matrix& mark, int desr, int desc)
{
node first, last;
first.row = 1;
first.col = 1;
last.row = desr;
last.col = desc;
IsReachable(maze, mark, first, last);
path.clear();
}
/*
m迷宫矩阵数据
r,c行和列的大小
desr,desc目标位置
*/
void ShowAllPath(int* m, int r, int c, int desr=-1, int desc=-1)
{
Matrix maze, mark;
maze.Create(r+2, c+2);
mark.Create(r+2, c+2);
if (desr==-1 || desc==-1)
{
desr = r;
desc = c;
}
int i, j;
for (i=0;i<r+2;i++)
{
for (j=0;j<c+2;j++)
{
if (j==0 || j==c+1 || i==0 || i==r+1)
{
mark(i, j) = maze(i, j) = 1;
}else{
mark(i, j) = 0;
maze(i, j) = m[((i-1)*c+j-1)];
}
}
}
count = 0;
FindAllPath(maze, mark, desr, desc);
maze.Release();
mark.Release();
}
#endif
//main.cpp
#include <iostream>
#include "Migong.h"
using namespace std;
int mg[]={
0,0,1,0,0,0,1,0,//1
0,0,1,0,0,0,1,0,//2
0,0,0,0,1,1,0,1,//3
0,1,1,1,0,0,1,0,//4
0,0,0,1,0,0,0,0,//5
0,1,0,0,0,0,0,1,//6
0,1,1,1,1,0,0,1,//7
1,1,0,0,0,1,0,1,//8
1,1,0,0,0,0,0,
7. Sony Ericsson W830 w850
there are several Sony Ericsson models starting with w that are less than 1000, but most of them are 07 and 06 models
there are several Sony Ericsson models starting with w that are less than 1000, but most of them are 07 and 06 models
8. Hello
don't engage in feudal superstition all day long. If something doesn't exist, others won't tell you. If you can see through it, it's equivalent to knowing the future. Why should others tell you? If you don't get rich, do you still need to help others? It's really useful. Why hasn't your family been rich for generations
feudal superstition, a four character Chinese word, refers to people's imaginary beliefs and ideas, such as belief in gods and ghosts, or blind belief and worship, which tend to some people or heresy
If superstition is not broken, society will not develop healthily. In society or among the people, some people use "fortune telling" as a pretext to launch computer fortune telling, special function prediction, animal fortune telling, and use modern sound, light, electricity and other equipment to create a variety of mysterious effects to deceive and fool the masses. All these are e to the increasing influence of the rapid development of science and technology on human society, and those who engage in superstition and pseudoscience then pull up the banner of "science" to sell their traitors. Swindle money by all means. There are also some places to develop tourism, folk culture, and build all kinds of ghost houses, temples and ancestral halls. Due to their low cultural level and lack of correct understanding of religion, many peasants burn incense in temples and worship gods and Buddhas. In some rural areas, feudal superstition is becoming more and more serious, which is seriously affecting people's thinking and behavior
I hope I can help you, thank you, hope to adopt.
don't engage in feudal superstition all day long. If something doesn't exist, others won't tell you. If you can see through it, it's equivalent to knowing the future. Why should others tell you? If you don't get rich, do you still need to help others? It's really useful. Why hasn't your family been rich for generations
feudal superstition, a four character Chinese word, refers to people's imaginary beliefs and ideas, such as belief in gods and ghosts, or blind belief and worship, which tend to some people or heresy
If superstition is not broken, society will not develop healthily. In society or among the people, some people use "fortune telling" as a pretext to launch computer fortune telling, special function prediction, animal fortune telling, and use modern sound, light, electricity and other equipment to create a variety of mysterious effects to deceive and fool the masses. All these are e to the increasing influence of the rapid development of science and technology on human society, and those who engage in superstition and pseudoscience then pull up the banner of "science" to sell their traitors. Swindle money by all means. There are also some places to develop tourism, folk culture, and build all kinds of ghost houses, temples and ancestral halls. Due to their low cultural level and lack of correct understanding of religion, many peasants burn incense in temples and worship gods and Buddhas. In some rural areas, feudal superstition is becoming more and more serious, which is seriously affecting people's thinking and behavior
I hope I can help you, thank you, hope to adopt.
9. 1、 Echo command turns echo on or off, or displays messages. If there are no parameters, the echo command displays the current echo settings. Syntax echo [{onoff}] [message] sample: @ echo off / echo Hello world in practical application, we will use this command and redirection symbol (also known as pipeline symbol, generally & gt& gt;& gt; ^ This will be shown in the later examples. 2. The @ command means that the command following @ will not be displayed. In the process of intrusion (such as using batch processing to format the enemy's hard disk), the other party will not be able to see the command you are using. Sample: @ echo off @ echo now initializing the program, please wait a minite... @ format X: / Q / U / AUTOSET 3. Goto command specifies to jump to the tag. After finding the tag, the program will process the command starting from the next line. Syntax: goto label (label is a parameter that specifies the row in the batch program to be steered to.) Sample: if {% 1} = = {} goto noparms if {% 2} = = {} goto noparms@ REM check parameters if NULL show usage: noparms echo usage: monitor.bat ServerIP PortNumber goto end the name of the tag is optional, but it's better to add a meaningful letter before the letter to indicate that the letter is a tag. The goto command is based on this: to find the next step to jump there. It's better to have some explanation so that you and others can seem to understand your intention. 4. REM command annotation command, in C language, is equivalent to / * - - * /, it will not be executed, it just plays a role of annotation, which is convenient for others to read and you to modify in the future. REM message sample: @ REM here is the description. 5. Pause command when running pause command, the following message will be displayed: press any key to continue; Back echo please put a new disk into driver a use goto begin; Back. When you are prompted to put another disk into drive a, the pause command will suspend the program so that you can replace the disk, and then press any key to continue processing
6. The call command calls from one batch program to another without terminating the parent batch program. The call command accepts the label used as the target of the call. If you use call outside of a script or batch file, it will not work on the command line. Syntax call [[drive: [path] file name [batchparameters]] [: label [arguments]] parameter [drive:} [path] file name specifies the location and name of the batch program to be called. The filename parameter must have a. Bat or. CMD extension. 7. Start command calls external programs, and all DOS commands and command line programs can be called by start command. Common intrusion parameters: Min start window minimize isolate start 16 bit windows program in separate space high start application in high priority class realtime start application in realtime priority class wait start application and wait for it to end parameters these applications executed for parameters transmitted to command / program are 32-bit GUI applications When using the program, cmd.exe returns the command prompt without waiting for the application to terminate. If executed within a command script, the new behavior does not occur. 8. Choice command choice using this command, users can enter a character to run different commands. When using, the / C: parameter should be added, and the characters that can be prompted for input should be written after C, with no space between them. Its return code is 1234... For example: choice / C: DMI, defrag, MEM, end will display defrag, MEM, end [D, m, e]? The content of sample: sample.bat is as follows: @ echo off choice / C: DME defrag, MEM, end if errorlevel 3 goto defrag (the error code with the highest value should be judged first) if errorlevel 2 goto MEM if errotlevel 1 goto end: defrag C: 92; dos\ Defrag go to end: MEM MEM go to end: end echo good byafter running this file, the defrag, MEM, end [D, m, e]? The user can select d m e, and then the if statement will make a judgment. D means to execute the program segment labeled as defrag, m means to execute the program segment labeled as MEM, and e means to execute the program segment labeled as end. At the end of each program segment, the program will jump to the end label with goto end, and then the program will display good by, and the file ends. 9. If command if means to judge whether the specified conditions are met, so as to decide to execute different commands. There are three formats: 1. If & quot; Parameter & quot; = =& quot; String & quot; If the parameter of the command to be executed is equal to the specified string, the condition is established and the command is run. Otherwise, the next sentence is run Note that there are two equal signs, such as if & quot;% 1"==& quot; a" Format a: if {% 1} = = {} goto noparms, if {% 2} = = {} goto noparms 2, if exist, if there is a specified file, the condition is true, run the command, otherwise run the next sentence. For example, if exist config.sys edit config.sys 3, if errorlevel / if not errorlevel, if the return code is equal to the specified number, then the condition is true, run the command, otherwise run the next sentence. For example, if errorlevel 2 goto x2 DOS program will return a number to DOS when running, which is called error code errorlevel or return code. The common return codes are 0 and 1
10. For command for command is a complex command, which is mainly used to execute the command circularly within the specified range of parameters. When you use the for command in a batch file, specify a variable. Use%% variable for {% variable%% variable} in (set) do command [commandlineoptions]% variable to specify a single letter replaceable parameter Set) specifies a file or set of files. You can use wildcards. Command specifies the command to execute for each file. Command parameters specifies parameters or command line switches for a specific command. When using the for command in a batch file, specify a variable, use%% variable instead of% variable. Variable names are case sensitive, so% I is different from% I. if the command extension is enabled, the following additional for command format will be supported: for / d% variable in (set) do command [command parameters] if the set contains wildcards, specify to match the directory name, not the file name. For / R [[drive:] path]% variable in (set) do command [command - check the directory tree with [drive:] path as the root and point to the for statement in each directory. If no directory is specified after / R, the current directory is used. If the set is only a single dot (.) character, enumerate the tree. For / L% variable in (start, step, end) do command [command para] this set represents a sequence of numbers from beginning to end in incremental form. Therefore, (1,1,5) will proce sequence 1,2,3,4,5, (5, - 1,1) will proce sequence (5,4,3,1). FOR /F [" options"] % variable IN (file-set) DO command FOR /F [" options"] % variable IN (" string") DO command FOR /F [" options"] % Variable in (command) do command or, if there is a usebackq option: for / F [& quot; options"] % variable IN (file-set) DO command FOR /F [" options"] % variable IN (" string") DO command FOR /F [" options"] % Variable in (command) do command filenameset is one or more filenames. Each file is opened, read, and processed before proceeding to the next file in the filenameset. Processing involves reading the file, dividing it into lines of text, and then parsing each line into zero or more symbols. The for loop is then called with the value of the symbolic string variable that has been found. By default, / F passes through the first space separated in each line of each file. Skip blank lines. You can specify the optional & quot; options" Parameter to override the default parse operation. This quoted string includes one or more keywords that specify different parsing options. These keywords are: EOL = C - refers to the end of a line comment character (just one) skip = n - refers to the number of lines ignored at the beginning of the file. Delims = XXX - the set of separators. This replaces the default set of separators for spaces and tabs. Tokens = x, y, M-N - which symbol of each line is passed to the for itself of each iteration. This causes the extra variable name to be formatted as a range. By specifying the last character asterisk in the M symbol string with the nth symbol, the extra variables will be allocated at the last symbol resolution and accept the reserved text of the line. Usebackq - specifies that the new syntax has been used in cases where a string with a back quote is executed as a command and the quote character is a text string command and double quotes are allowed to expand the file name in fi< br />sample1: FOR /F " eol=; tokens=2,3* delims=, " % I in (myfile. Txt) do command will analyze each line in myfile. TXT, ignore those lines beginning with semicolon, and pass the second and third symbols in each line to the for program body; Delimit symbols with commas and / or spaces. Note that the statement in the for body refers to% I for the second symbol, to% J for the third symbol, and to% k for all remaining symbols after the third symbol. For filenames with spaces, you need to enclose them in double quotation marks. In order to use double quotation marks in this way, you also need to use the usebackq option, otherwise, double quotation marks are understood to be used to define a string to analyze I is specified in the for statement, and% J and% k are specified through the tokens = option. You can specify up to 26 symbols in a row with tokens = as long as you don't try to specify a variable higher than the letter Z or Z. Keep in mind that for variables are single letter, case sensitive and global, and cannot have more than 52 variables in use at the same time. You can also use for / F parsing logic on adjacent strings; To do this, use single quotation marks to enclose the filenameset between the brackets. In this way, the string is treated as a single input line in a file. Finally, you can use the for / F command to analyze the output of the command. The method is to change the filenameset between the brackets into an anti bracket string. The string will be passed to a child cmd.exe as a command line, and its output will be grabbed into memory and analyzed as a file. Therefore, the following example: for / F & quot; usebackq delims==" % I in (` set ') do @ echo% I enumerates the names of environment variables in the current environment. In addition, for variable reference substitution has been enhanced. You can now use the following option syntax: ~ I - remove any quotation marks (& quote;), Expand% I% ~ fi - expand% I to a fully qualified pathname% ~ di - expand% I to a drive letter only% ~ pi - expand% I to a path only% ~ Ni - expand% I to a file name only% ~ Xi - expand% I to a file name only% ~ Si - expand the path to a short name only%
6. The call command calls from one batch program to another without terminating the parent batch program. The call command accepts the label used as the target of the call. If you use call outside of a script or batch file, it will not work on the command line. Syntax call [[drive: [path] file name [batchparameters]] [: label [arguments]] parameter [drive:} [path] file name specifies the location and name of the batch program to be called. The filename parameter must have a. Bat or. CMD extension. 7. Start command calls external programs, and all DOS commands and command line programs can be called by start command. Common intrusion parameters: Min start window minimize isolate start 16 bit windows program in separate space high start application in high priority class realtime start application in realtime priority class wait start application and wait for it to end parameters these applications executed for parameters transmitted to command / program are 32-bit GUI applications When using the program, cmd.exe returns the command prompt without waiting for the application to terminate. If executed within a command script, the new behavior does not occur. 8. Choice command choice using this command, users can enter a character to run different commands. When using, the / C: parameter should be added, and the characters that can be prompted for input should be written after C, with no space between them. Its return code is 1234... For example: choice / C: DMI, defrag, MEM, end will display defrag, MEM, end [D, m, e]? The content of sample: sample.bat is as follows: @ echo off choice / C: DME defrag, MEM, end if errorlevel 3 goto defrag (the error code with the highest value should be judged first) if errorlevel 2 goto MEM if errotlevel 1 goto end: defrag C: 92; dos\ Defrag go to end: MEM MEM go to end: end echo good byafter running this file, the defrag, MEM, end [D, m, e]? The user can select d m e, and then the if statement will make a judgment. D means to execute the program segment labeled as defrag, m means to execute the program segment labeled as MEM, and e means to execute the program segment labeled as end. At the end of each program segment, the program will jump to the end label with goto end, and then the program will display good by, and the file ends. 9. If command if means to judge whether the specified conditions are met, so as to decide to execute different commands. There are three formats: 1. If & quot; Parameter & quot; = =& quot; String & quot; If the parameter of the command to be executed is equal to the specified string, the condition is established and the command is run. Otherwise, the next sentence is run Note that there are two equal signs, such as if & quot;% 1"==& quot; a" Format a: if {% 1} = = {} goto noparms, if {% 2} = = {} goto noparms 2, if exist, if there is a specified file, the condition is true, run the command, otherwise run the next sentence. For example, if exist config.sys edit config.sys 3, if errorlevel / if not errorlevel, if the return code is equal to the specified number, then the condition is true, run the command, otherwise run the next sentence. For example, if errorlevel 2 goto x2 DOS program will return a number to DOS when running, which is called error code errorlevel or return code. The common return codes are 0 and 1
10. For command for command is a complex command, which is mainly used to execute the command circularly within the specified range of parameters. When you use the for command in a batch file, specify a variable. Use%% variable for {% variable%% variable} in (set) do command [commandlineoptions]% variable to specify a single letter replaceable parameter Set) specifies a file or set of files. You can use wildcards. Command specifies the command to execute for each file. Command parameters specifies parameters or command line switches for a specific command. When using the for command in a batch file, specify a variable, use%% variable instead of% variable. Variable names are case sensitive, so% I is different from% I. if the command extension is enabled, the following additional for command format will be supported: for / d% variable in (set) do command [command parameters] if the set contains wildcards, specify to match the directory name, not the file name. For / R [[drive:] path]% variable in (set) do command [command - check the directory tree with [drive:] path as the root and point to the for statement in each directory. If no directory is specified after / R, the current directory is used. If the set is only a single dot (.) character, enumerate the tree. For / L% variable in (start, step, end) do command [command para] this set represents a sequence of numbers from beginning to end in incremental form. Therefore, (1,1,5) will proce sequence 1,2,3,4,5, (5, - 1,1) will proce sequence (5,4,3,1). FOR /F [" options"] % variable IN (file-set) DO command FOR /F [" options"] % variable IN (" string") DO command FOR /F [" options"] % Variable in (command) do command or, if there is a usebackq option: for / F [& quot; options"] % variable IN (file-set) DO command FOR /F [" options"] % variable IN (" string") DO command FOR /F [" options"] % Variable in (command) do command filenameset is one or more filenames. Each file is opened, read, and processed before proceeding to the next file in the filenameset. Processing involves reading the file, dividing it into lines of text, and then parsing each line into zero or more symbols. The for loop is then called with the value of the symbolic string variable that has been found. By default, / F passes through the first space separated in each line of each file. Skip blank lines. You can specify the optional & quot; options" Parameter to override the default parse operation. This quoted string includes one or more keywords that specify different parsing options. These keywords are: EOL = C - refers to the end of a line comment character (just one) skip = n - refers to the number of lines ignored at the beginning of the file. Delims = XXX - the set of separators. This replaces the default set of separators for spaces and tabs. Tokens = x, y, M-N - which symbol of each line is passed to the for itself of each iteration. This causes the extra variable name to be formatted as a range. By specifying the last character asterisk in the M symbol string with the nth symbol, the extra variables will be allocated at the last symbol resolution and accept the reserved text of the line. Usebackq - specifies that the new syntax has been used in cases where a string with a back quote is executed as a command and the quote character is a text string command and double quotes are allowed to expand the file name in fi< br />sample1: FOR /F " eol=; tokens=2,3* delims=, " % I in (myfile. Txt) do command will analyze each line in myfile. TXT, ignore those lines beginning with semicolon, and pass the second and third symbols in each line to the for program body; Delimit symbols with commas and / or spaces. Note that the statement in the for body refers to% I for the second symbol, to% J for the third symbol, and to% k for all remaining symbols after the third symbol. For filenames with spaces, you need to enclose them in double quotation marks. In order to use double quotation marks in this way, you also need to use the usebackq option, otherwise, double quotation marks are understood to be used to define a string to analyze I is specified in the for statement, and% J and% k are specified through the tokens = option. You can specify up to 26 symbols in a row with tokens = as long as you don't try to specify a variable higher than the letter Z or Z. Keep in mind that for variables are single letter, case sensitive and global, and cannot have more than 52 variables in use at the same time. You can also use for / F parsing logic on adjacent strings; To do this, use single quotation marks to enclose the filenameset between the brackets. In this way, the string is treated as a single input line in a file. Finally, you can use the for / F command to analyze the output of the command. The method is to change the filenameset between the brackets into an anti bracket string. The string will be passed to a child cmd.exe as a command line, and its output will be grabbed into memory and analyzed as a file. Therefore, the following example: for / F & quot; usebackq delims==" % I in (` set ') do @ echo% I enumerates the names of environment variables in the current environment. In addition, for variable reference substitution has been enhanced. You can now use the following option syntax: ~ I - remove any quotation marks (& quote;), Expand% I% ~ fi - expand% I to a fully qualified pathname% ~ di - expand% I to a drive letter only% ~ pi - expand% I to a path only% ~ Ni - expand% I to a file name only% ~ Xi - expand% I to a file name only% ~ Si - expand the path to a short name only%
10. It's a computer programming language. How to use it is entirely up to you. Where can you use it? To what extent can it be used? What can it bring to you depends entirely on your own use. Because C # is a language used by many platforms, such as. Net ASP. Net WPF WCF Silverlight and so on
Hot content