/**Binary conversion binary 60 to Hex*/Class WeiExercise2{public static void Main (string[] args){int i=60;//0011 1100int b=i15;//15:0000 1111= (0000 1100=12=b)int c=b-10;int d= (c>10)? c+ ' a ': c;//d=b-10+ ' a ' = = ' C '. Get CString k1= (bi=i>>4;//i=0000 0011int b2=i15;String k2= (b2System.out.print ("Hex of 60" is "+K2+K1");}}"Song Hongkang program thought learning Diary 2" logic and implementation bin
/**Some solutions to the idea of bit operation.Swaps the values of m=12 and n=5.*/Class WeiExercise1{public static void Main (string[] args){Method One/*int temp=0;int m=12;int n=5;Temp=m;M=n;n=temp;*/Method Two/*int m=12;int n=5;M+=n;N=m-n;m=m-n;*/Method three-bit operation (M^n) ^m==n, (m^n) ^m==nint m=12;//1100int n=5;//0101m=m^n;//or 1001=mn=m^n;//or 0101=1101m=nm=m^n;//m=1001, n=1101== (m^n) ^m==nSystem.out.print ("m value is +" +m+ ", n value is +" +n);}}"
A cool program JavaScript do mid song search player [IE] (JS)
http://aspage.yeah.net/------------------------
--------------------from "rainbow drizzle"-----------------------
Design Rainbow Rain
Path= "http://card4.yinsha.com/midi/"
var stext=new Array ()
Stext[0]= ' Angels We have heard on high '
Stext[1]= ' away in a Manger '
Stext[2]= ' Beginning to look a lot like Christmas '
Stext[3]= ' Carol Bells '
Programming Implementation of the graphic editing software undo and redo (how to program using C ++ builder or Delphi ??) Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiMultimedia/html/delphi_2006120713533775.html
Dear colleagues!
Almost all graphic editing software has undo and redo operations. How does one use C ++ builder or Delphi?
Efficient programm
The function of a simple line editing program is to accept the program or data entered by the user from the terminal and deposit it into the user's data area. As the user enters on the terminal,There is no guarantee that there will be no error, so it is obviously inappropriate to "store each character in the user area" in the line
Release the ABAP program editing lock
Method 1: If you have created and modified the SE38 permission
Report zunlock. TABLES: TRDIR. "System table TRDIRPARAMETERS: program like TRDIR-NAME.PARAMETERS: lock like TRDIR-EDTX.SELECT SINGLE * from trdir where name = PROGRAM.TRDIR-EDTX = LOCK. modify trdir. IF SY-SUBRC EQ 0. WRITE:/'editor Lock update Successful ', TRD
The function of a simple row editing program is to receive the program or data input by the user from the terminal and store the data in the user's data zone. As there is no guarantee that no error will occur when a user inputs data on the terminal, it is obviously not appropriate to "store each character in the user data zone" in the
First introduce the next personal situation, the company's original code on the server, there is no version control tool (very spit), often need to copy the server code to local editing and upload.
1: How to display the VS2010 according to the source program directory, the effect is as follows:
Here's how: File-New-Create a project from existing code, then create a solution for the entire directory code,
The function of a simple line editing program is to accept the program or data entered by the user from the terminal and deposit it into the user's data area. As the user in the terminal input, there is no guarantee that error, so, in the editing program, "Each accept a char
Program | data | database | Show Introduction:] I am although halfway decent a few years of procedures, but I do not know whether they are a programmer. I recently helped friends to make a website, for the sake of cheap space, chose the asp+access server. Because I know very little about ASP, so really do a little tired, especially the background database management, there are a lot of tables need my daily maintenance. I found that for background data
DescriptionUse the stack to write a simple line editing program: Accept the user input from the terminal program or data, during the input process, allow users to input errors, and in the case of errors can be corrected in time. For example, when a user discovers that a character that you just typed is wrong, you can fill in a backspace "#" to indicate that the p
Do not know everyone in the development of county-level power grid dispatching automation system, whether it will encounter a problem is: to draw a power system wiring diagram. Everyone should know that in fact, the power system of the first wiring diagram is more complex, if you want to use the general programming method to draw, basically is not feasible. So what should we do to be more efficient and direct? Today, the small series will give you a method, that is: the use of C language
[Data structure] stack applications-row editing program (c ++) and data structure --
Header file:
# Pragma once # include
Main function:
#include "Edlin.h"int main(){SeqStack
[Foreword:] I am although halfway decent has been doing a few years of procedure, but I do not know whether I am a programmer. I recently helped friends to make a website, for the sake of cheap space, chose the asp+access server. Because I know very little about ASP, so really do a little tired, especially the background database management, there are a lot of tables need my daily maintenance. I found that for background data management, basically to the database for the operation of the check,
Ext2ed (ext2filesystemeditor) function description: ext2 file system editing program. Syntax: ext2ed supplement: ext2ed can directly process data on hard disk partitions. This command is only available in RedHatLinux. Parameter: the general command setdevice [Device Name] specifies the device to process. Disablewrite sets ext2ed to read-only. Enablewrite sets ext2ed to read/write status. H
Ext2ed (ext2 file
C language: editing and modifying an interesting endless loop program is just a difference of the "=" sign.Endless loop program: 1
# Include
2. After modification, it is only a difference of "= ".
# Include
Result: Hello, smart, you are smart
This is my line editing program.
# Include # Include # Define STACK_INIT_SIZE 100# Define MAXSIZE 50# Define INCREMENT 10# Define OVERFLOW-2# Define ERROR-1# Define OK 0
Typedef struct{Int * base;Int * top;Int StackSize;} SqStack, * PStack;
Void InitStack (PStack S );Void DestroyStack (PStack S );Void ClearStack (PStack S );Int GetTop (PStack S, int * e );Void Push (PStack S, int e );Int Pop (PStack S );
Vo
= S.Base;107 while(P! =s.top)108 {109printf"%c", * (p++)); the }111printf"\ n"); the }113 the intMain () the { theSqstack S =Initstack ();117 CharC;118printf"çëêäè룬windowsïµí³ïâçëòôctrl+z½áêøêäèë\n");119c =GetChar (); - while(c! =EOF)121 {122 if(c! =EOF)123 {124 Switch(c) the {126 Case '#': s = Pop (s); Break;127 Case '@': Clearstack (S); Break; - default: S =Push (s,c);129
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.