input port.
The parallel port has 25 pins, including 8-bit data lines, 5-bit status lines, and 4-bit control lines.
Data port (378 h): D0 ~ D7 is used for data output.
Status ports (379 h): * S7 (busy), S6 (NACK), S5 (PE), S4 (select), and S3 (nerror ).
Control port (37ah): * C3 (nselin), S2 (ninit), * C (anutofeed), and * C0 (nstrobe ).
() (The port address is the default LPT1 setting; * indicates that this pin has a reverser)
Table 1 defines parall
converts the basic type to a byte with a low storage level.For example, the short type has 16 bits, the first byte stores 8 bits, and the second byte stores 8 bits.
The following method comes from the network and does not fully verify its correctness. Note: Some of the methods for converting bytes are to save the low position in the low position.
// Convert the long type to a byte array
Public static byte [] longtobyte (long number ){Long temp = number;Byte [] B = new byte [8];For (INT I = 0; I
constant pool that is not mutableStrings3="Hello";directly from the string constant pool.System.out.println (S2==S3);True//Determine if string equality cannot be used = =string s4=new string ("abc");string s5=new string ("abc");System.out.println (S4==S5); //false//The following program will create three string objects "AAA" "BBB" "AAABBB" in the string constant pool after execution endsString s6="AAA";String s7="BBB";String s8=s6+
What data type? int 1, 2, 3 is used to operate the FLOAT 1.2 STR is used to store certain information "" ' List =[1,2, 3 "yes", is] used to store a large amount of information Touple (1, 2, 3,) is used to store immutable lists, read-only DiC ={"I": "Jin Yuanyuan" "You": "Beijing" is used to store data relationships for easy search Set = {1, 2, 3, 4} to find the set of differences, set, intersection#字符串的大写#字符串的操作# s = ' Alexwusir '# # S1 = s.capitalize ()# # print (S
) = Curnode.nextView Code
Insertion and deletion of linked list nodes
Insert:
P.next = Curnode.next
Curnode.next = P
Delete:
p = Curnode.next
Curnode.next = CurNode.next.next
Del P
Create a linked list
Head Interpolation method:
1 def Createlinklistf (LI): 2 L = node ()3for in li:4 s = node (num) 5 S.next = l.next6 l.next = s7
Top 13 star S7 Edge
The most powerful camera should belong to Samsung Note7, but Samsung Note7 has now become a laughingstock, but also the success of the Samsung S7 edge,s7 Edge Camera pixel of 12 million, single pixel size to reach 1.4μm, aperture value is amazing f/ 1.7, under any conditions can take the most outstanding photos.
On the hardware side, Samsu
(), the following example:
String s3 = new String ("Hello Java");
System.out.println (S3.length ()); 10
3, get the index of the specified string
Gets the index of the specified string using Str.indexof (substr), Str.lastindexof (SUBSTR), as follows:
String S4 = new String ("How are You");
System.out.println (S4.indexof ("O")); 1 Find
System.out.println from scratch (s4.lastindexof ("O"));//9 start at the end
4. Get the characters for the specifi
temporary table is the first summary + sorting process (the first processing does not deal with subtotals, totals, etc.)
CREATE table #t (project name varchar (10), Project year varchar (10), varchar (10), Applicant Unit varchar (10), support amount int)
Insert #t Select ' Name 1 ', ' 2004 ', ' Provincial ', ' 1 company ', 400
UNION ALL SELECT ' Name 2 ', ' 2004 ', ' Provincial ', ' 2 company ', 300
UNION ALL SELECT ' Name 3 ', ' 2004 ', ' Shijiazhuang ', ' 3 company ', 200
UNION ALL SELECT '
mine1;//OK, S1 is a type
S2 mine2;//ok,s2 is a type
S3 mine3;//Ok,s3 is not a type
S1.data = 5;//ERRORS1 is a type
S2.data = 5;//ERRORS2 is a type
S3.data = 5;//OKS3 is a variable
}
In addition, there are several ways of writing variables that define the structure itself in the structure.
struct S6 {
s6* ptr;
};
This type of writing can only be used in C + +
typedef struct {
s7* ptr;
} S7;
This is a defini
has a significant performance boost over the Vaio duo 11 core i5-3317u. In particular, the difference between the two in the video card test is more obvious: in the 3dmark06 test, Duo 13 scored 6047, whereas his predecessor was only 4807. The former results also beat the Ivy Bridge platform for the best results-the Acer Aspire S7 scored 4918 points.
And for overall performance, like the PCMark7 test, we're not seeing that much improvement-in fact, t
= S.class }) 3.distinct Remove the duplicate 1 Query teachers All units are not duplicates of the depart column.2 SELECT distinct depart from teacher3 Linq:4 from T in Teachers.distinct ()5 Select T.depart6 Lambda:7 4. Connection query between and 1 query all records in the score table with scores from 60 to 80.2 Select * from score where degree between and 803 Linq:4 from s in Scores5 where S.degree >= S.degree 6 Select S7
savedinstancestate) {View view = Inflater.inflate (R.layout.fragment2, container, false);TextView TV = (TextView) View.findviewbyid (R.id.text);String text=getarguments (). Get ("name") + "" "[S2];Tv.settext (text);return view;3. Write Myactivity.java, and inherit activity① control initialization and other operations omitted② to increase the Click event of a buttonSend.setonclicklistener (New Onclicklistener () {public void OnClick (View v) {String text = Editext.gettext (). toString ();MYFRAGM
=viewlist;}[S6]@Override Public int GetCount () {Returns the number of page cardsreturn viewlist.size ();}@Override Public boolean isviewfromobject (View arg0, Object arg1) {Whether the view is from an objectreturn arg0==arg1;}@Override Public Object Instantiateitem (ViewGroup container, int position) {[S7]Instantiate a single page cardContainer.addview (Viewlist.get (position));return viewlist.get (position);}@Override Public void Destroyitem (ViewGr
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.