1. Create a stored procedure
Create procedure pr_login
@ Userid char (50 ),@ Passwd char (50 ),@ Out char (1) Output
AsBeginSelect @ out = usertype from logintb where username = @ userid and userpass = @ passwdEndGo
2. Call the system line
1: Name masking
Name masking means that the name of the function declared in the subclass is the same as the name of the function declared in the parent class (the return value, parameter type and number are different, and it does not matter if
Basic knowledge:
C function return value: Char, bool returned from Al; short int returned from ax; int, pointer returned from eax; float double Long Double returned from floating point stack.
C parameter transfer: the parameters are pressed from
Visual assist (highly recommended)URL: http://www.wholetomato.com/Function: from 5.0 to the current vax, VA has become more and more powerful. In addition to the various keywords, system functions, member variables, and input prompts in previous
Using C/C ++ and inline assembly, you can easily extract executable code. The following example shows how to use this method.
Routine:
First, inline assembly is used to design a function msgbox for displaying the dialog box. Then, the physical
C code reading tool (2) --- ctags
(09:26:17) -- Chen Hua
The calltree tool was introduced in the last week. It helps you understand the code as a whole without having to get started with the source code. For example, starting from the main function,
Events and proxies are hard to understand. I have learned some examples from them. Delegate in C # And function pointers in C ++ are basically the same thing, C # implements the function pointer in the form of delegate. The difference is that
Event proxy often makes programmers feel a headache. After reading this example, you may be panic.
Using system;Using system. Collections. Generic;Using system. text;
Namespace eventdelegateapp{// The deletegate function with parameters is: the old
Use the Standard C ++ type conversion characters static_cast, dynamic_cast, reinterpret_cast, and const_cast.
3.1 static_castUsage: static_cast (expression)This operator converts expression to the Type-ID type, but does not check the runtime type
One I made earlier. net (C #) project, some of the Crystal Reports, encountered some problems during packaging, go to the wind network to solve the problem, see many 2003 packaging, introduced vs2005 packaging is very small, 2005 is so simple, and
1. Drag a gridview to the form, select the data source, and configure the attribute colums as follows:
2. Write the following code for the event:
Protected void gridview1_rowcommand (Object sender, gridviewcommandeventargs e)
The use of pre-processing commands and macro definitions in VC
People who are new to MFC programming are often intimidated by various macro definitions and preprocessing commands generated by the MFC wizard. However, preprocessing and macro
In the concept of object-oriented, we know that all objects are depicted through classes, but this is not the case. Not all classes are used to depict objects. If a class does not contain enough information to depict a specific object, such
Chapter 2: C # basic object-oriented features
1. Basic object-oriented concepts1) objects and classes:2) Inheritance3) Encapsulation: enables software errors and modifications to be localized.4) polymorphism: dynamic binding (late binding), where
In C ++, memory is divided into five areas: heap, stack, free storage, global/static storage, and constant storage.
Stack is the storage area for variables that are automatically allocated by the compiler when necessary and clear when not needed.
C # generics and C ++ templates are both language features that provide support for parameterized types. however, there are using differences between the two. at the syntax level, C # generics are a simpler approach to parameterized types without
The keyword auto comes from the C ++ 98 standard. In C ++ 98, it does not play any role. In C ++ 0x, "borrow" it as an automatic type deduction (automatic type deduction ). When auto appears in the declaration, it indicates "Please use initializing
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