How to call systematic picture?
Ask tall finger bit, how to call systematic picture? Make button ah think picture of the system that increase a point
tag : [标签:tag]
If why generate Label in Form window trends, accuse to hold these Label
I am Hello level, ask much help,
The program needs to generate Label in Form window trends, 20, ask to be put since vertical stroke, and be in the program need to indicate different and random value to these Label with the basis。DimmLabaslabel
DimmPointaspoint
DimSizeAsNewSize(80, 16)
DimX, yasinteger
Foriasinteger=0to20
Ifi=0Then
X=10
Y=15
Else
If(iMod6)=0Then
X=10
Y =34
Else
X =80
EndIf
EndIf
Point.X=X
Point.Y=Y
MLab=newlabel
MLab.Size=Size
MLab.Location=Point
MLab.TextAlign=ContentAlignment.BottomCenter
MLab.Text=i.tostring
MLab.BackColor=Color.Transparent
Me.Controls.Add(mLab)
Next。Http://www.cnblogs.com/scottckt/archive/2007/08/09/849923.html
The program needs to generate Label in Form window trends, 20, ask to be put since vertical stroke, and be in the program need to indicate different and random value to these Label with the basis。DimmLabaslabel
DimmPointaspoint
DimSizeAsNewSize(80, 16)
DimX, yasinteger
Foriasinteger=0to20
Ifi=0Then
X=10
Y=15
Else
If(iMod6)=0Then
X=10
Y =34
Else
X =80
EndIf
EndIf
Point.X=X
Point.Y=Y
MLab=newlabel
MLab.Size=Size
MLab.Location=Point
MLab.TextAlign=ContentAlignment.BottomCenter
MLab.Text=i.tostring
MLab.BackColor=Color.Transparent
Me.Controls.Add(mLab)
Next。Http://www.cnblogs.com/scottckt/archive/2007/08/09/849923.html
tag : [标签:tag]
How to change the perch of a byte. . For instance if be the word of 1 so change 0. .
How to change the perch of a byte. . For instance if be the word of 1 so change 0. .
I also was divided without how much. . Can give 10 minutes only. . .
。First Temp=convert.toint(former byte, 16); changeover
Again String=convert.tostring(temp, 2)l;
Again String.replace();
Again Convert changeover goes back。Was not being understood is what meaning. . . The detailed point that can you say? 。Byteb;
B=(b4) | (Bb4);
? 。With 11110000 positional different or。Byteb;
B=b15;。Byte1^240。Antoniusguo(anton) , your answer is incorrect
Low 4 with, can take only low 4, perch is gotten 0, but the original poster asks perch is changed, if be 0, 1。The 1st reply did not look carefully, made a mistake
If be,Lz says only 1 change 0, that should assure to be only 0 go。/ / if be,Lz says only 1 change 0, that should assure to be only 0 go
The original poster says " for instance if be the word of 1 so change 0. . " , have in front do for instance two words see? 。Want how to change without clear specification
If be the word of 1,change 0
-------------------
If be the word of 0 changes 1 if be the word of 0,perhaps maintain for 0。Citing:
Inta;
Intb=2147483648;
A=(a b b)%(b b)-b;
But the integral form such as Longintshortbyteuintulong of be confined to。The exalted change of a byte should be not taken on behalf of all perch instead
The original poster just says 1 should take instead, did not say at all 0 how should take
Since be my fault for certain so, then you are assume sth as a matter of course for certain。Proposal Antoniusguo(anton) goes playing controversy game, must admire ~。Guess the intent of others casually, still be maintained and what oneself think is same, this ability lets a person admire。/ / this byte that was before, altogether has 8
Byteb=0x0;
/ / now among them one is changed, should change the 3rd for instance for 1
Intc=32;//32 is 00100000
B=(byte)(((int)b) | Logic or operation are used here | , will change a value for 1
/ / change the 3rd now time 0
C=223;//223 is 11011111
Logic and operation are used here, will change a value for 0。Positional take. 。Feel embarrassed. . If be the word instead 1 of 0,I may be the means that I did not say to understand me conversely if be 1 so instead 0。Original poster means is taken instead. To some take the word that turn over, write a method to do
ByteBitReverse(byteb, ushortposition)
{
Intc=128;
For(inti=1;iposition;i )
{
C=c/2;
}
/ / first digit instead 1, if numerical value changes, explain take succeed instead, if numerical value does not have change, criterion instead 0
Bytetemp=(byte)(((int)b) | C);
If(temp.Equals(b) )
{
C=255-c;
Temp=(byte)(((int)b)c);
}
Returntemp;
}。If just ask before 4 are taken,turn over
ByteReverseHigh(byteb)
{
Intd=(int)b;// changes integer
Inth=~(d4);// perch is taken instead
B=(byte)((d15) (h4));//d15 is will exalted whole place 0, change H exalted next, add up
Returnb;
}。Ah, the original poster talked
Jackcong()() credit: 1002007-08-1314:58:17
Feel embarrassed. . If be the word instead 1 of 0,I may be the means that I did not say to understand me conversely if be 1 so instead 0
The original poster replies before me yours is the requirement that satisfies you
Byte1^240
Take 4 high to Byte1 namely instead, among them 240 binary systems are 11110000
。" blue sky of Ezhuyin(blue sea) " really strong person. . Still ask you later great give advice or comments. . . Where are you at present tall ah. .
Also thank " Viena() Vienna (Windows7) " your meaning is very true. . Thank. . . 。My answer is the simplest。Positional different or do not understand? 。Write again a few simpler
ByteReverseHigh(byteb)
{
Inti=(int)b;
/ / direct perch is taken instead, 240 namely 11110000, here conference will be small a whole place 0, get perch
/ / the binary system of 15 is 00001111, d15 is will exalted whole place 0, take low
B=(byte)((~i240) (i15));
Returnb;
}。I am dizzy, blue sky of Ezhuyin(blue sea) know not to know to kind of operation cries different or? 。Hum, it is OK to use ^ , too long did not use, know to use surprise or do not know operation accord with (sweat | | | )。Ah. . . Two are ace. . Admire. . Admire. . .
I also was divided without how much. . Can give 10 minutes only. . .
。First Temp=convert.toint(former byte, 16); changeover
Again String=convert.tostring(temp, 2)l;
Again String.replace();
Again Convert changeover goes back。Was not being understood is what meaning. . . The detailed point that can you say? 。Byteb;
B=(b4) | (Bb4);
? 。With 11110000 positional different or。Byteb;
B=b15;。Byte1^240。Antoniusguo(anton) , your answer is incorrect
Low 4 with, can take only low 4, perch is gotten 0, but the original poster asks perch is changed, if be 0, 1。The 1st reply did not look carefully, made a mistake
If be,Lz says only 1 change 0, that should assure to be only 0 go。/ / if be,Lz says only 1 change 0, that should assure to be only 0 go
The original poster says " for instance if be the word of 1 so change 0. . " , have in front do for instance two words see? 。Want how to change without clear specification
If be the word of 1,change 0
-------------------
If be the word of 0 changes 1 if be the word of 0,perhaps maintain for 0。Citing:
Inta;
Intb=2147483648;
A=(a b b)%(b b)-b;
But the integral form such as Longintshortbyteuintulong of be confined to。The exalted change of a byte should be not taken on behalf of all perch instead
The original poster just says 1 should take instead, did not say at all 0 how should take
Since be my fault for certain so, then you are assume sth as a matter of course for certain。Proposal Antoniusguo(anton) goes playing controversy game, must admire ~。Guess the intent of others casually, still be maintained and what oneself think is same, this ability lets a person admire。/ / this byte that was before, altogether has 8
Byteb=0x0;
/ / now among them one is changed, should change the 3rd for instance for 1
Intc=32;//32 is 00100000
B=(byte)(((int)b) | Logic or operation are used here | , will change a value for 1
/ / change the 3rd now time 0
C=223;//223 is 11011111
Logic and operation are used here, will change a value for 0。Positional take. 。Feel embarrassed. . If be the word instead 1 of 0,I may be the means that I did not say to understand me conversely if be 1 so instead 0。Original poster means is taken instead. To some take the word that turn over, write a method to do
ByteBitReverse(byteb, ushortposition)
{
Intc=128;
For(inti=1;iposition;i )
{
C=c/2;
}
/ / first digit instead 1, if numerical value changes, explain take succeed instead, if numerical value does not have change, criterion instead 0
Bytetemp=(byte)(((int)b) | C);
If(temp.Equals(b) )
{
C=255-c;
Temp=(byte)(((int)b)c);
}
Returntemp;
}。If just ask before 4 are taken,turn over
ByteReverseHigh(byteb)
{
Intd=(int)b;// changes integer
Inth=~(d4);// perch is taken instead
B=(byte)((d15) (h4));//d15 is will exalted whole place 0, change H exalted next, add up
Returnb;
}。Ah, the original poster talked
Jackcong()() credit: 1002007-08-1314:58:17
Feel embarrassed. . If be the word instead 1 of 0,I may be the means that I did not say to understand me conversely if be 1 so instead 0
The original poster replies before me yours is the requirement that satisfies you
Byte1^240
Take 4 high to Byte1 namely instead, among them 240 binary systems are 11110000
。" blue sky of Ezhuyin(blue sea) " really strong person. . Still ask you later great give advice or comments. . . Where are you at present tall ah. .
Also thank " Viena() Vienna (Windows7) " your meaning is very true. . Thank. . . 。My answer is the simplest。Positional different or do not understand? 。Write again a few simpler
ByteReverseHigh(byteb)
{
Inti=(int)b;
/ / direct perch is taken instead, 240 namely 11110000, here conference will be small a whole place 0, get perch
/ / the binary system of 15 is 00001111, d15 is will exalted whole place 0, take low
B=(byte)((~i240) (i15));
Returnb;
}。I am dizzy, blue sky of Ezhuyin(blue sea) know not to know to kind of operation cries different or? 。Hum, it is OK to use ^ , too long did not use, know to use surprise or do not know operation accord with (sweat | | | )。Ah. . . Two are ace. . Admire. . Admire. . .
tag : [标签:tag]
The ListView of C# uses an issue: Whether capture Insert or Delete (row) incident? ?
The ListView of C# uses an issue: Whether capture Insert or Delete (row) incident? ? 。Should OK. 。If going to the lavatory, give out please case, I give minute of knot to stick immediately, thank! 。Oneself are written when Insert or Delete entrust, 。Oneself are written when Insert or Delete entrust, 。Oneself are written when Insert or Delete entrust,
tag : [标签:tag]
A small issue bothers everybody to come in look
It is a when I write small system should become end for instance 0 settings for instance gathering amount is 105.312 for convenient efface other as long as how 100 moneys should write the method that has had I am grant instruction of dish bird thank。I am dizzy, that if you are 120.5, you even doesn't the number at the back of take out want, still want only 100, you this " efface is other " how much be to want take out。Can use take whole method or the method of round. 。Oh forget telling is to want efface to be less than 10。
Doubled=105.312;
Inti=(int)d/10*10;。DoublefValue=105.812;
/ / method 1: 4 捨 of 對 float 點 5 into
/ / Doublei=Math.Round(fValue, 0);;
/ / method 2: 4 捨 of 對 float 點 5 into, 並 設 decides 4 捨 5 into 類 model
/ / Doublei=Math.Round(fValue, 0, midpointRounding.AwayFromZero);
/ / 說 of 稱 of the name that become 員 bright
/ / 剛 of word of 數 of AwayFromZero 當 some 個 is good at additional of the 間 of word of 兩 個 數 in 點 時, front 遠 離 its 捨 enters the directional 將 of 0 to be apart from the 數 word with the closest 離.
/ / 剛 of word of 數 of ToEven 當 some 個 is good at additional of the 間 of word of 兩 個 數 in 點 時, 將 its 捨 enters 為 to be apart from 離 recent occasionally 數 .
/ / method 3 take whole 數 directly
/ / 數 of 對 float 點 takes 為 of whole 數 method: 數 of 對 float 點 is taken whole multiply again rectify 數 with 這 個 again 轉 換 is become whole model
Inti=(int)fValue/1*1;
Doubled=105.312;
Inti=(int)d/10*10;。DoublefValue=105.812;
/ / method 1: 4 捨 of 對 float 點 5 into
/ / Doublei=Math.Round(fValue, 0);;
/ / method 2: 4 捨 of 對 float 點 5 into, 並 設 decides 4 捨 5 into 類 model
/ / Doublei=Math.Round(fValue, 0, midpointRounding.AwayFromZero);
/ / 說 of 稱 of the name that become 員 bright
/ / 剛 of word of 數 of AwayFromZero 當 some 個 is good at additional of the 間 of word of 兩 個 數 in 點 時, front 遠 離 its 捨 enters the directional 將 of 0 to be apart from the 數 word with the closest 離.
/ / 剛 of word of 數 of ToEven 當 some 個 is good at additional of the 間 of word of 兩 個 數 in 點 時, 將 its 捨 enters 為 to be apart from 離 recent occasionally 數 .
/ / method 3 take whole 數 directly
/ / 數 of 對 float 點 takes 為 of whole 數 method: 數 of 對 float 點 is taken whole multiply again rectify 數 with 這 個 again 轉 換 is become whole model
Inti=(int)fValue/1*1;
tag : [标签:tag]




