Empty general catch clause suppresses all errors – ReSharper – Confluence


Consider the following code snippet:

string text = “”;

try

{

  text = File.ReadAllText(“test.txt”);

} catch { }

In the snippet above, the catch clause catches absolutely all errors. Since a non-response to an exception is a fairly rare (and potentially dangerous) thing, ReSharper warns about this and offers to catch an Exception. There are, however, usages of a catch-all statement are justified.

 
 

Empty general catch clause suppresses all errors – ReSharper – Confluence


Consider the following code snippet:

string text = “”;

try

{

  text = File.ReadAllText(“test.txt”);

} catch { }

In the snippet above, the catch clause catches absolutely all errors. Since a non-response to an exception is a fairly rare (and potentially dangerous) thing, ReSharper warns about this and offers to catch an Exception. There are, however, usages of a catch-all statement are justified.

 
 

Walkthrough: Using a Custom Action to Display a Message at Installation


Walkthrough: Using a Custom Action to Display a Message at Installation

Visual Studio 2008

The following walkthrough demonstrates how to use a custom action to take user input and pass it to a message box that appears during installation. This is a simple demonstration of custom actions, which are useful for many other tasks. For example, a custom action could take as user input the location of the Setup.exe file and use it to launch the application after installing it.

This walkthrough demonstrates passing data to a dynamic property using a custom action, and how to use an installer class and the CustomActionData property.

Note:

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, click Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Note:

The following instructions demonstrate creating a deployment project using a Visual Basic project; the general principles apply to all Visual Studio language projects that support deploying Windows applications.

To create a custom action

  1. On the File menu, point to New, and then click Project.
  2. In the New Project dialog box, select Visual Basic in the Project Types pane, and then choose Class Library in the Templates pane. In the Name box, type PassData.
    The project is added to Solution Explorer.
     


     
     

To create an installer class

  1. On the Project menu, click Add Class.
    In the Add New Item dialog box, choose Installer Class. Accept the default name.


     


     

     
     

  2. When the installer class appears on the design surface, right-click the design surface and click View Code to view the file contents in the code editor.
  3. Add the following procedure to override the Install procedure of the base class:
    VB
    Public
    Overrides
    Sub Install(ByVal stateSaver As System.Collections.IDictionary)
    MyBase.Install(stateSaver)
    Dim myInput As
    String = Me.Context.Parameters.Item(“Message”)
    If myInput Is
    Nothing
    Then
    myInput = “There was no message specified”
    End
    If
    MsgBox(myInput)
    End
    Sub

Note:

If you type Public Overrides, then type space, Intellisense will provide a list of methods and properties; you can select Install from the list and get the complete declaration.


 
 

  1. In Solution Explorer, right-click Class1.vb and select Delete (because it is unnecessary).
     


     
     

     
     

To create a deployment project

  1. On the File menu, point to Add, and then click New Project.
  2. In the Add New Project dialog box, in the Project Type pane, expand the Other Project Types node and select Setup and Deployment, then choose Setup Project in theTemplates pane. In the Name box, type PassData Installer.
  3. In the Properties window, select the ProductName property and type PassData.
    Also, select the Manufacturer property and type My Company.

     
     


     
     


     
     

  4. In the File System Editor, select the Application Folder node. On the Action menu, point to Add, then click Project Output.
  5. In the Add Project Output Group dialog box, select the primary output for the PassData project.
    Primary output from PassData (Active) appears in the File System Editor.


     
     

To add a custom action

  1. Select the PassData Installer project in Solution Explorer. On the View menu, point to Editor, and then click Custom Actions.
  2. In the Custom Actions Editor, select the (top-level) Install node. On the Action menu, click Add Custom Action.

    (通过上面的两步,我们知道了客户化的action)


  3. In the Select item in Project dialog box, double-click the Application Folder.
    Select Primary output from PassData (Active). This will add the PassData custom action to the Install node.

     
     


     
     

     
     

  4. In the Properties window, select the CustomActionData property and type /Message=”[MESSAGE]”.
    Make sure the InstallerClass property is set to True (this is the default).
     


 
 

To customize the installation user interface

  1. Select the Setup project in Solution Explorer. On the View menu, point to Editor, and then click User Interface.


  2. In the User Interface Editor, select the Start node under Install. On the Action menu, click Add Dialog.
  3. In the Add Dialog dialog box, select the Textboxes (A) dialog.


  4. On the Action menu, click Move Up. Repeat until the Textboxes (A) dialog is above the Installation Folder node.


  5. In the Properties window, select the BannerText property and type:
    What is your message?

  6. Select the BodyText property and type:
    Enter your message here.

  7. Select the Edit1Label property and type:
    Message:

  8. Select the Edit1Property property and type:
    MESSAGE

  9. Select the Edit2VisibleEdit3Visible, and Edit4Visible properties and set them to False.


  10. On the Build menu, click Build Pass Data Installer.

     
     


     
     

To install on your development computer

  • Select the PassData Installer project in Solution Explorer. On the Project menu, click Install.
    This will run the installer on your development computer. In the What is your Message? installation dialog box, type Hello World!.

Note:

You must have install permissions on the computer in order to run the installer.

 
 


默认竟然是just me!!!


 
 


 
 

To deploy to another computer

  1. In Windows Explorer, navigate to your project directory and find the built installer. The default path will be \Documents and Settings\yourloginname\My Documents\Visual Studio 2005\Projects\Solution Folder Name\My Notepad Installer\project configuration\My Notepad Installer.msi. The default project configuration is either Debug or Release.

    (我的是:C:\Users\XQN637\Documents\Visual Studio 2008\Projects\WinMain\PassData Installer\Debug\PassData Installer.msi)

  2. Copy PassData Installer.msi, Setup.exe, and all other files and subdirectories in the directory to another computer.

Note:

To install on a computer that is not on a network, copy the files to traditional media such as CD-ROM.

On the target computer, double-click Setup.exe to run the installer. In the What is your Message? installation dialog box, type Hello World!.

Note:

You must have install permissions on the computer in order to run the installer.

To test the installation

  • Run the application and verify that the text box contains the text ‘Hello World!’, which you entered during installation.

To uninstall the application

  1. In Windows Control Panel, double-click Add or Remove Programs.
  2. In the Add or Remove Programs dialog box, select PassData Installer and click Remove, then click OK to close the dialog box.

Tip:

To uninstall from your development computer, on the Project menu, click Uninstall.


See Also

 
 

Reference

CustomActionData Property

Other Resources

Custom Actions Management in Deployment

Using Installation Components

 
 

源文档 <http://msdn.microsoft.com/en-us/library/9cdb5eda(v=VS.90).aspx>

工程实践: Using a Custom Action to Display a Message at Installation


Walkthrough: Deploying a Windows-based Application


This walkthrough demonstrates (证明;展示;论证) the process of creating an installer for a Windows-based application that starts Notepad. In this walkthrough, you will create the Windows-based application. You will then create an installer that sets up shortcuts and file associations, adds an entry to the registry, displays custom dialog boxes, and checks the version of Internet Explorer during installation.

When creating your own installers, some of these steps are not necessary. This walkthrough is intended to introduce you to some of the optional capabilities of deployment that you may find useful. To create a basic installer, complete the first four sets of procedures.

Note:

The dialog boxes and menu commands you see might differ from those described in Help, depending on your active settings or edition. To change your settings, click Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Note:

The following instructions demonstrate creating a deployment project using a Visual Basic project. The general principles apply to all Visual Studio language projects that support deploying Windows-based applications.


Basic Application Creation and Deployment

To create a Windows-based application

  • On the File menu, click New Project.
  • In the New Project dialog box, in the Project Types pane, select Visual Basic, and then click Windows Application in the Templates pane. In the Name box, type My Notepad.
  • Click OK to close the dialog box.
    The project is added to Solution Explorer, and the Windows Forms Designer opens.
  • Select the All Windows Forms tab in the Toolbox and drag a Button control onto the form.
  • Double-click the Button control to add an event handler for the button. In the event handler, add the following code:

  

  

Shell(“Notepad.exe”, AppWinStyle.NormalFocus)

  

This will start Notepad.exe and give it focus.

  • On the Build menu, click Build My Notepad to build the application.

     
     


     
     

To create a deployment project

  • On the File menu, point to Add, and then click New Project.
  • In the Add New Project dialog box, in the Project Types pane, open the Other Project Types node, click Setup and Deployment Projects, and then click Setup Project in the Templates pane. In the Name box, type My Notepad Installer.


  • Click OK to close the dialog box.
    The project is added to Solution Explorer, and the File System Editor opens.
  • Select the My Notepad Installer project in Solution Explorer. In the Properties window, select the ProductName property and type My Notepad.


     
     

Note:

The ProductName property specifies the name that will be displayed for the application in folder names and in the Add or Remove Programs dialog box.

To add the Windows-based application to the installer

  • Select the My Notepad Installer project in Solution Explorer. In the File System Editor, select the Application Folder node.
  • On the Project menu, point to Add, and then click Project Output.


  • In the Add Project Output Group dialog box, select My Notepad from the Project list.
  • Select the Primary Output group from the list. In the Configuration box, select (Active). Click OK to close the dialog box.


  • On the Build menu, click Build My Notepad Installer.

To deploy the application (basic installer)

  • Select the My Notepad Installer project in Solution Explorer. On the Project menu, click Install.
    This will run the installer (Setup Wizard) and install My Notepad on your development computer.

Note:

You must have install permissions on the computer in order to run the installer.

 
 


Optional Deployment Capabilities

This step demonstrates optional deployment capabilities; it creates a shortcut to your application that will be placed on the desktop of a target computer during installation.

To create shortcuts for the Windows-based application

  • Select the My Notepad Installer project in Solution Explorer.
  • In the File System Editor, select the Primary output from My Notepad node.
  • On the Action menu, click Create Shortcut to Primary Output from My Notepad.
    This will add a node called Shortcut to Primary output from My Notepad.
  • Rename the shortcut Shortcut to My Notepad.
  • Select Shortcut to My Notepad and drag it to the User’s Desktop folder in the left pane.
     


 
 

Creating a File Association

This step adds a file association for My Notepad so that double-clicking .vbn files opens the My Notepad application.

To create file associations for the Windows-based application

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and then click File Types. The File Types Editor appears.
  • In the File Types Editor, select the File Types on Target Machine node. On the Action menu, click Add File Type.
    A node named New Document Type #1 is added and opened for renaming.
  • Rename New Document Type #1 as Vbn.doc.
  • In the Properties window, set the Extensions property of the file type to vbn.
  • Select the Command property and click the ellipsis () button. In the Select Item in Project dialog box, navigate to the Application Folder, and select Primary output from My Notepad.
  • Click OK to close the dialog box.


     
     

Adding a Registry Entry

This step adds a registry key and value to the registry. You can reference this registry key from your application’s code to retrieve user-specific information at run time.

To add a registry entry for the Windows-based application

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and click Registry. The Registry Editor appears.
  • In Registry Editor, select the HKEY_CURRENT_USER node and expand it, and then expand the Software node and select the [Manufacturer] node.

Note:

The [Manufacturer] node is enclosed in brackets to indicate that it is a property. It will be replaced by the value entered for the Manufacturer property for the deployment project.

  • On the Action menu, point to New, and then click Key.
  • Rename the key UserChoice and select it.
  • On the Action menu, point to New, and then click String Value.
  • Rename the string value TextColor.
  • In the Properties window, select the Value property and enter Black.


 
 


 
 

Adding a Custom Installation Dialog Box

This step adds and configures a custom user interface dialog box that will be displayed during installation.

To add a custom installation dialog box

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and click User Interface. The User Interface Editor appears.
  • In the User Interface Editor, select the Start node (under the Install node).
  • On the Action menu, click Add Dialog.
  • In the Add Dialog dialog box, select Checkboxes (A).
  • Click OK to close the dialog box.
  • Right-click the Checkboxes (A) dialog box and select Move Up two times to position it above the Installation Folder dialog box.
  • In the Properties window, set the BannerText property to Samples.
  • Set the BodyText property to the following:
    The Install Samples check box controls whether the sample files are installed. If left unselected, the samples will not be installed.
  • Set the CheckBox1Label property to Install samples?
  • Set the properties Checkbox2Visible, Checkbox3Visible, and Checkbox4Visible to False. This will hide the additional check boxes.


Working with Samples

This step creates a Samples subfolder that will be installed beneath the Application folder.

To add a Samples folder

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and click File System. Select Application Folder if it is not already selected.
  • Right-click Application Folder, point to Add, and then click Folder.
  • Rename New Folder #1 as Samples.

This step creates two sample text files that will be installed if the user chooses the Install samples option in the custom dialog box.


 
 

To create sample files for the application

  • Using Notepad or another text editor, create a text file that contains the text This is rules.vbn. Save it as Rules.vbn.

Note:

To prevent Notepad from automatically adding a .txt extension, select All Files in the Files of type list.

  • Create another text file that contains the text This is memo.vbn. Save it as Memo.vbn.

This step adds the sample files to the Samples folder, and sets a condition that determines whether to install the files.

To add the samples to the installer

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, point to File System, and select the Samples folder.
  • From the Action menu, point to Add, and then click File. Add the Rules.vbn and Memo.vbn files to the Samples folder.
  • Select the file Rules.vbn in the File System Editor.
  • In the Properties window, set the Condition property to CHECKBOXA1=1. When the installer is run, the file Rules.vbn will be installed only if the custom check box is selected.
  • Select the file Memo.vbn in the File System Editor.
  • In the Properties window, set the Condition property to CHECKBOXA1=1. When the installer is run, the file Memo.vbn will be installed only if the custom check box is selected.

     
     


     
     

Adding Launch Conditions

This step checks to see whether Internet Explorer 5.0 or a later version of Internet Explorer is installed on a target computer, and it stops installation if the file is not installed.

To add a launch condition to check the Internet Explorer version

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and then click Launch Conditions.

Note:

This step is intended only to demonstrate the concept of launch conditions; the My Notepad application has no actual dependency on Internet Explorer.

  • In the Launch Conditions Editor, select the Requirements on Target Machine node.
  • On the Action menu, click Add File Launch Condition.
    A Search for File1 node is added beneath the Search Target Machine node, and a Condition1 node is added beneath the Launch Conditions node.
  • Rename Search for File1 to Search for Internet Explorer.
  • In the Properties window, set the FileName property to Iexplore.exe, the Folder property to [ProgramFilesFolder], the Depth property to 2, and the MinVersion property to 5.00.
  • Select the Condition1 node.
  • Set the Message property to the following:
    This program requires Microsoft Internet Explorer 5.0 or later. Please install Internet Explorer and rerun the Notepad installer.

Setting Properties for Prerequisite Components


 
 


This step sets a property to install the .NET Framework automatically if the correct version is not present on the target computer. Note that the .NET Framework 2.0 package will also install the Windows Installer 2.0 files.

When the prerequisites 预备知识,先决条件 properties are set as follows, clicking setup.exe will automatically install the .NET Framework before it runs the .msi file. (This is set by default.) For more information about specifying prerequisites, see Prerequisites Dialog Box.(怎么解决??)
 

 
 

To set optional properties for the deployment project

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, click Property Pages.
  • In the My Notepad Installer Property Pages dialog box, in Installation URL, specify the URL of a server or Web site from which the application and/or prerequisites will be installed. Click the Prerequisites button.
  • In the Prerequisites dialog box, under Choose which prerequisites to install, make sure that .NET Framework is selected. (It should be selected by default.) Under Specify the install location for prerequisites, accept the default setting.
  • On the Build menu, click Build My Notepad Installer.

     
     


     
     

     
     

Installing on Your Development Computer

This step will run the installer and install My Notepad on your development computer.

To install My Notepad on your development computer

  • Select the My Notepad Installer project in Solution Explorer. On the Project menu, click Install.

Note:

You must have install permissions on the computer in order to run the installer.

Deploying to Another Computer

This step will run the installer and install My Notepad on another computer.

To deploy My Notepad to another computer

  • In Windows Explorer, navigate to your project directory and find the built installer. The default path will be \Documents and Settings\yourloginname\My Documents\Visual Studio 9.0\Projects\Solution Folder Name\My Notepad Installer\project configuration\My Notepad Installer.msi. (The default project configuration is either Debug or Release.)
  • Copy My Notepad Installer.msi, Setup.exe, and all other files and subdirectories in the directory to another computer.

Note:

To install on a computer that is not on a network, copy the files to traditional media such as CD-ROM.

  • On the target computer, double-click Setup.exe to run the installer.

Note:

You must have install permissions on the target computer in order to run the installer.

Testing

This step will test starting the application from a desktop shortcut and will also test uninstalling it.

To test the installation

  • Verify that the shortcut is installed on the desktop and that it correctly starts the My Notepad application.
  • Uninstall the application by using Add or Remove Programs in Control Panel. In Add or Remove Programs, select My Notepad, and then click the Remove button.

Note:

To uninstall the application from your development computer, on the Project menu, click Uninstall.

  • The icon should be removed from the desktop and the installed application files and folders should be deleted from your computer.


See Also

Concepts

How to: Create or Add Deployment Projects

How to: Add Items to a Deployment Project

File Installation Management in Deployment

Registry Settings Management in Deployment

File Types Management in Deployment

User Interface Management in Deployment

Launch Condition Management in Deployment

Walkthrough: Deploying a Windows-based Application


This walkthrough demonstrates (证明;展示;论证) the process of creating an installer for a Windows-based application that starts Notepad. In this walkthrough, you will create the Windows-based application. You will then create an installer that sets up shortcuts and file associations, adds an entry to the registry, displays custom dialog boxes, and checks the version of Internet Explorer during installation.

When creating your own installers, some of these steps are not necessary. This walkthrough is intended to introduce you to some of the optional capabilities of deployment that you may find useful. To create a basic installer, complete the first four sets of procedures.

Note:

The dialog boxes and menu commands you see might differ from those described in Help, depending on your active settings or edition. To change your settings, click Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Note:

The following instructions demonstrate creating a deployment project using a Visual Basic project. The general principles apply to all Visual Studio language projects that support deploying Windows-based applications.


Basic Application Creation and Deployment

To create a Windows-based application

  • On the File menu, click New Project.
  • In the New Project dialog box, in the Project Types pane, select Visual Basic, and then click Windows Application in the Templates pane. In the Name box, type My Notepad.
  • Click OK to close the dialog box.
    The project is added to Solution Explorer, and the Windows Forms Designer opens.
  • Select the All Windows Forms tab in the Toolbox and drag a Button control onto the form.
  • Double-click the Button control to add an event handler for the button. In the event handler, add the following code:

  

  

Shell(“Notepad.exe”, AppWinStyle.NormalFocus)

  

This will start Notepad.exe and give it focus.

  • On the Build menu, click Build My Notepad to build the application.

     
     


     
     

To create a deployment project

  • On the File menu, point to Add, and then click New Project.
  • In the Add New Project dialog box, in the Project Types pane, open the Other Project Types node, click Setup and Deployment Projects, and then click Setup Project in the Templates pane. In the Name box, type My Notepad Installer.


  • Click OK to close the dialog box.
    The project is added to Solution Explorer, and the File System Editor opens.
  • Select the My Notepad Installer project in Solution Explorer. In the Properties window, select the ProductName property and type My Notepad.


     
     

Note:

The ProductName property specifies the name that will be displayed for the application in folder names and in the Add or Remove Programs dialog box.

To add the Windows-based application to the installer

  • Select the My Notepad Installer project in Solution Explorer. In the File System Editor, select the Application Folder node.
  • On the Project menu, point to Add, and then click Project Output.


  • In the Add Project Output Group dialog box, select My Notepad from the Project list.
  • Select the Primary Output group from the list. In the Configuration box, select (Active). Click OK to close the dialog box.


  • On the Build menu, click Build My Notepad Installer.

To deploy the application (basic installer)

  • Select the My Notepad Installer project in Solution Explorer. On the Project menu, click Install.
    This will run the installer (Setup Wizard) and install My Notepad on your development computer.

Note:

You must have install permissions on the computer in order to run the installer.

 
 


Optional Deployment Capabilities

This step demonstrates optional deployment capabilities; it creates a shortcut to your application that will be placed on the desktop of a target computer during installation.

To create shortcuts for the Windows-based application

  • Select the My Notepad Installer project in Solution Explorer.
  • In the File System Editor, select the Primary output from My Notepad node.
  • On the Action menu, click Create Shortcut to Primary Output from My Notepad.
    This will add a node called Shortcut to Primary output from My Notepad.
  • Rename the shortcut Shortcut to My Notepad.
  • Select Shortcut to My Notepad and drag it to the User’s Desktop folder in the left pane.
     


 
 

Creating a File Association

This step adds a file association for My Notepad so that double-clicking .vbn files opens the My Notepad application.

To create file associations for the Windows-based application

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and then click File Types. The File Types Editor appears.
  • In the File Types Editor, select the File Types on Target Machine node. On the Action menu, click Add File Type.
    A node named New Document Type #1 is added and opened for renaming.
  • Rename New Document Type #1 as Vbn.doc.
  • In the Properties window, set the Extensions property of the file type to vbn.
  • Select the Command property and click the ellipsis () button. In the Select Item in Project dialog box, navigate to the Application Folder, and select Primary output from My Notepad.
  • Click OK to close the dialog box.


     
     

Adding a Registry Entry

This step adds a registry key and value to the registry. You can reference this registry key from your application’s code to retrieve user-specific information at run time.

To add a registry entry for the Windows-based application

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and click Registry. The Registry Editor appears.
  • In Registry Editor, select the HKEY_CURRENT_USER node and expand it, and then expand the Software node and select the [Manufacturer] node.

Note:

The [Manufacturer] node is enclosed in brackets to indicate that it is a property. It will be replaced by the value entered for the Manufacturer property for the deployment project.

  • On the Action menu, point to New, and then click Key.
  • Rename the key UserChoice and select it.
  • On the Action menu, point to New, and then click String Value.
  • Rename the string value TextColor.
  • In the Properties window, select the Value property and enter Black.


 
 


 
 

Adding a Custom Installation Dialog Box

This step adds and configures a custom user interface dialog box that will be displayed during installation.

To add a custom installation dialog box

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and click User Interface. The User Interface Editor appears.
  • In the User Interface Editor, select the Start node (under the Install node).
  • On the Action menu, click Add Dialog.
  • In the Add Dialog dialog box, select Checkboxes (A).
  • Click OK to close the dialog box.
  • Right-click the Checkboxes (A) dialog box and select Move Up two times to position it above the Installation Folder dialog box.
  • In the Properties window, set the BannerText property to Samples.
  • Set the BodyText property to the following:
    The Install Samples check box controls whether the sample files are installed. If left unselected, the samples will not be installed.
  • Set the CheckBox1Label property to Install samples?
  • Set the properties Checkbox2Visible, Checkbox3Visible, and Checkbox4Visible to False. This will hide the additional check boxes.


Working with Samples

This step creates a Samples subfolder that will be installed beneath the Application folder.

To add a Samples folder

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and click File System. Select Application Folder if it is not already selected.
  • Right-click Application Folder, point to Add, and then click Folder.
  • Rename New Folder #1 as Samples.

This step creates two sample text files that will be installed if the user chooses the Install samples option in the custom dialog box.


 
 

To create sample files for the application

  • Using Notepad or another text editor, create a text file that contains the text This is rules.vbn. Save it as Rules.vbn.

Note:

To prevent Notepad from automatically adding a .txt extension, select All Files in the Files of type list.

  • Create another text file that contains the text This is memo.vbn. Save it as Memo.vbn.

This step adds the sample files to the Samples folder, and sets a condition that determines whether to install the files.

To add the samples to the installer

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, point to File System, and select the Samples folder.
  • From the Action menu, point to Add, and then click File. Add the Rules.vbn and Memo.vbn files to the Samples folder.
  • Select the file Rules.vbn in the File System Editor.
  • In the Properties window, set the Condition property to CHECKBOXA1=1. When the installer is run, the file Rules.vbn will be installed only if the custom check box is selected.
  • Select the file Memo.vbn in the File System Editor.
  • In the Properties window, set the Condition property to CHECKBOXA1=1. When the installer is run, the file Memo.vbn will be installed only if the custom check box is selected.

     
     


     
     

Adding Launch Conditions

This step checks to see whether Internet Explorer 5.0 or a later version of Internet Explorer is installed on a target computer, and it stops installation if the file is not installed.

To add a launch condition to check the Internet Explorer version

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, point to Editor, and then click Launch Conditions.

Note:

This step is intended only to demonstrate the concept of launch conditions; the My Notepad application has no actual dependency on Internet Explorer.

  • In the Launch Conditions Editor, select the Requirements on Target Machine node.
  • On the Action menu, click Add File Launch Condition.
    A Search for File1 node is added beneath the Search Target Machine node, and a Condition1 node is added beneath the Launch Conditions node.
  • Rename Search for File1 to Search for Internet Explorer.
  • In the Properties window, set the FileName property to Iexplore.exe, the Folder property to [ProgramFilesFolder], the Depth property to 2, and the MinVersion property to 5.00.
  • Select the Condition1 node.
  • Set the Message property to the following:
    This program requires Microsoft Internet Explorer 5.0 or later. Please install Internet Explorer and rerun the Notepad installer.

Setting Properties for Prerequisite Components


 
 


This step sets a property to install the .NET Framework automatically if the correct version is not present on the target computer. Note that the .NET Framework 2.0 package will also install the Windows Installer 2.0 files.

When the prerequisites 预备知识,先决条件 properties are set as follows, clicking setup.exe will automatically install the .NET Framework before it runs the .msi file. (This is set by default.) For more information about specifying prerequisites, see Prerequisites Dialog Box.(怎么解决??)
 

 
 

To set optional properties for the deployment project

  • Select the My Notepad Installer project in Solution Explorer. On the View menu, click Property Pages.
  • In the My Notepad Installer Property Pages dialog box, in Installation URL, specify the URL of a server or Web site from which the application and/or prerequisites will be installed. Click the Prerequisites button.
  • In the Prerequisites dialog box, under Choose which prerequisites to install, make sure that .NET Framework is selected. (It should be selected by default.) Under Specify the install location for prerequisites, accept the default setting.
  • On the Build menu, click Build My Notepad Installer.

     
     


     
     

     
     

Installing on Your Development Computer

This step will run the installer and install My Notepad on your development computer.

To install My Notepad on your development computer

  • Select the My Notepad Installer project in Solution Explorer. On the Project menu, click Install.

Note:

You must have install permissions on the computer in order to run the installer.

Deploying to Another Computer

This step will run the installer and install My Notepad on another computer.

To deploy My Notepad to another computer

  • In Windows Explorer, navigate to your project directory and find the built installer. The default path will be \Documents and Settings\yourloginname\My Documents\Visual Studio 9.0\Projects\Solution Folder Name\My Notepad Installer\project configuration\My Notepad Installer.msi. (The default project configuration is either Debug or Release.)
  • Copy My Notepad Installer.msi, Setup.exe, and all other files and subdirectories in the directory to another computer.

Note:

To install on a computer that is not on a network, copy the files to traditional media such as CD-ROM.

  • On the target computer, double-click Setup.exe to run the installer.

Note:

You must have install permissions on the target computer in order to run the installer.

Testing

This step will test starting the application from a desktop shortcut and will also test uninstalling it.

To test the installation

  • Verify that the shortcut is installed on the desktop and that it correctly starts the My Notepad application.
  • Uninstall the application by using Add or Remove Programs in Control Panel. In Add or Remove Programs, select My Notepad, and then click the Remove button.

Note:

To uninstall the application from your development computer, on the Project menu, click Uninstall.

  • The icon should be removed from the desktop and the installed application files and folders should be deleted from your computer.


See Also

Concepts

How to: Create or Add Deployment Projects

How to: Add Items to a Deployment Project

File Installation Management in Deployment

Registry Settings Management in Deployment

File Types Management in Deployment

User Interface Management in Deployment

Launch Condition Management in Deployment

学C应该的方向发展


1.c语言–>数据结构+算法–>编译原理–>操作系统–>数据库–>计算机网络–>操作系统(windows/linux)–>内核
2.c语言–>Mc51单片机->AVR–>ARM7–>ARM9–>arm11/DSP
3.如果第一条中玩得操作系统是linux,则又可以linux+arm走嵌入式路线

爆笑云集 ~尼玛滴!!!笑死我了!!!有木有!有木有!!!


1、妹子老爹是军人,于是妹子打小跟这妹子爹练拳,故事就发生在妹子幼儿园时期。某日,幼儿园老师打电话把妹子把妹子老爹叫到园里,说是妹子把别人孩子打哭了。妹子爹心想坏了,孩子手没轻重,别给打坏了,于是急冲冲赶到幼儿园,抓起妹子就问:你做什么打人?赶紧给我道歉!

妹子:我没打人!
妹子爹:你没打人别孩子能哭么?
妹子委屈道:我真没打。。我就。。我就弹了下。。。

妹子爹:你弹人哪了,能把人弹哭了?

这时站在一边的老师正打算上前说明情况,被打的小男孩突然哇哇大哭起来:XXX弹我鸟鸟,都肿了。。。都肿了。。。。都肿了。。。。

2、假期回家听到的:
我同村的一个小姑娘,以BH著称,没结婚住到了男朋友家里,次日早上,从男友家出来,走到半路又返回去了,刚到大门口就高喊:xxx,我裤衩是不是忘你家了?
当天,消息传篇全村。

3、 话说前天坐车回老家,坐在最后一排(因为不用让座XE)。旁边是一对情侣,女的很PP的说,那男的挨我坐着。路远,很多人都会选择睡觉,那男的也睡了。可
他睡着睡着就靠我身上了(我是一boy.)女的很歉意的看着我,哥们儿心里一荡,立马很大度的摇了摇头。这时候,那男的突然伸手放在我胸口,捏了一把。然
后幽幽的说:“怎么变小了…”
小了…
我满脸黑线的看着他的手放下。谁知道他GF直接HLL的接了句“你抓错了,我没小!”
抓错了,我没小…

错了,我没小…
我没小…
没小…
小…

4、
一天,一个还未成年的小孩,在大家聚会吃饭的时候,问了他父亲一个问题:“爸爸,你猜一个谜语,说一个人拿着五毛钱去嫖了三个女人,你说这个事件的数学符
号是什么?”大家想了好半天,有的说:“是问号”,也有的说是“感叹号”!大家都在苦想的时候,服务员突然冒出一句“绝对值”嘛……

5、老姑娘终于要嫁人了。婚礼前认真仔细的洗澡,异常兴奋。当洗到下身时边撩水边自言自语。“再喝点清水吧,从今晚开始咱就吃肉了哦。”

6、来北京出差,和3个女同事住在一个酒店。结果不知道为什么公司临时安排换了地方,可能是价格便宜吧。关键是3个女同事都出去玩了,得晚上才回来,只有我知道新酒店在什么地方,于是到了晚上我就一个个的去把他们接回来。杯具来了…当我领着第一个女同事回来的时候前台的女服务员冲我微笑…当我领着第二个女同事回来她还在微笑,不过旁边好像多了个经理模样的人当我领着第三个女同事回来的时候,那个经理HLL的冲我说:先生,拉皮条是违法行为!

7、一名七十岁的老翁娶了小老婆。邻居忧心忡忡地问:“大爷,您这一把年纪,能吃的消吗?”
老翁不屑地答道:“这简单,跟玩麻将一样!少吃,多摸,拼命碰,不放炮!”

8、 四年级的时候,我边上是一位女生,当时哥绝对纯洁,可是就有一个嗜好,每天上课摸她的屁股,而且摸着摸着就用捏的,过了很久,那女生实在是受不了了,就告
诉了老师,老师就来到了我家做“家访”,然后没说几句话就扯到了这个事情,我妈一脸暴怒转过来问我,这些烂习惯是跟谁学的,我满脸无辜地说,爸爸平时在家
就是这样的~~唉,当时我妈那脸……

9、 我住在三楼,某个深夜,听见打骂孩子的声音由远及近,似乎是个小姑娘夜不归宿被她妈从网吧拎回来了,母女俩弄出的动静叫一个惊天地泣鬼神啊,旁边宿舍好几
家的灯都亮了,估计再有几分钟就要有人出来干涉的时候,经典的出现了,那小姑娘大嚎道:“我真的只是上网啊,不信你带我去医院验处嘛,看看还在不在…”然
后所有刚才亮灯的住户都黑灯了…

10、
在妇产科见习,那天来了一美女,检查,怀上了…说“多少钱做掉”“六百”完了女的去过道打电话,隐约听到“你妈的,当初叫你戴t,你不戴…”一会来了一男的,男的不“我咋知道是不是我的”女的想了一下,又出去打电话。一共五男的,女的说“我不管,你们自己商量”其中两个问了怀孕时间,走了,剩下三男一人三百,剩下的当营养费!

21.
一个家伙在酒吧里瞄上了一个女人,总是独自一个,而且定期来酒吧。第二个星期,他开始行动了。“不,谢谢你”她说话很礼貌。“如今这听起来有些奇怪,但我想在遇到我爱的人之前,我想保持自己的纯洁。”“这应该是相当困难的,”男人说道。“噢,其实没甚,”她说。“不过,我的丈夫相当的沮丧。”

22.
一个那人进到他的儿子的房间,并祝他晚安。他的儿子做了一个恶梦-男人叫醒他的儿子,并问他的儿子怎么样了?他的儿子很害怕,因为他梦见阿姨苏茜死了。父亲向儿子保证说,苏茜阿姨很好,不会有事的,让他继续睡觉。第二天,阿姨苏茜死了。一个星期后,男人再次来到他的儿子的房间,并祝他晚安。他的儿子做了另一个梦噩梦-男子再次唤醒他的儿子。这个时候的儿子说,他梦见爷爷死了。父亲向儿子保证说,爷爷很好,不会有事的,让他继续睡觉。第二天,爷爷死了。一个星期后,该名男子再次进入他的儿子的房间,并祝他晚安。他的儿子做了另一个噩梦-男子再次唤醒他的儿子。这个时候的儿子说,他梦见爸爸死了。父亲向儿子保证说,爸爸很好,不会有事的,让他继续睡觉。男人上床睡觉,但睡不着,因为他害怕极了。第二天,男人是害怕他会死去,觉得他肯定会死。开车的时候非常小心生怕撞车。他没有吃午饭,因为他是害怕食物中毒。他避免见任何人,因为害怕被啥子。有一点声音,他就吓得跳起来,然后躲在办公桌下面。终于在一天结束的时候,他找到他的妻子。“天哪,亲爱的,”他说,“我经历了一生中最糟糕的一天!”她回答,“您以为你今天很糟糕吗,今天上午送奶工死在了我们家的门槛上。”

23.
一个女人回答市场调研。“早上好,女士,我正在做一些凡士林的研究。你在家里使用凡士林吗?”“啊,一直在用。对切伤,美容护肤和烧伤都有很好的效果。”“你还用它做别的事吗?”“什么样的事情?”“啊….嗯….额..性交的时候。”“噢,当然。是的,我涂在门把手上,免得我的丈夫闯进来!

24.
一个人走进超市购买下列物品:1支牙刷1支牙膏1卷卫生纸1份冷冻晚餐1盒爆米花女收银员说,“你是单身吧?”该名男子答复非常讽刺的口吻说:“你怎么知道,因为我什么东西都只买一份?”该女子回答:“没有,是因为你长得很丑。”

25.
小盲女孩对她的妈妈说:“妈咪,妈咪,我什么时候才能看到东西?”她妈妈回答说:“我告诉你,我会带你到一个化学家那里,把一些特殊的乳膏抹在你的眼睛上,你在明天早上就能够看到东了。”他们去了化学家那儿,得到了乳膏,回家,小女孩一直都非常非常地高兴,因为她能够再次看到东西了。他们回到家中,母亲把乳膏抹在小女孩的眼睛上,用绷带绑着她的头上,并把她带到床上。第二天早晨小女孩来到她妈妈的卧室,兴奋地高喊“快点,妈咪,解开绷带,这样我就可以看到了。”因此,母亲慢慢地绷带,小女孩越来越兴奋。绷带都解开过后,小女孩说:“但是,妈咪,我仍然无法看到东西。”母亲回答说,“愚人节快乐!”

26.
推销员来到德克萨斯州推销。经过一个农家,晚上要求食宿过夜。农场主告诉他,没有空置房。“我可以让你和我的女儿一起睡,”农场主说:“如果你答应不打扰她。”推销员同意。晚饭后,他把推销员带到房间。推销员在黑暗中脱光衣服,钻进床,并感觉到了农场主的女儿在他身边。第二天早晨,他问他得付多少钱。“给我两美元就行了”农场主说。“你女儿非常的冷,”售货员说。“是的,我知道,”农场主说道。“我今天准备把她埋了。”

27.
有一对年轻情侣在电影院。女孩说,“我得去撒尿,我可以挤过去吗?”“你为什么不蹲在地上撒呢?”男朋友说“你挤出去会打扰到这么多人,这里很黑,没有人会看到你。”“好吧。”她说。她脱下裤子,并蹲在地上。一会这小子有点性冲动了,开始去摸他女朋友的下面。他摸到了又长又硬的东西,说:“啊!你是不是变过性?”“没有”,她说“我改变了主意…决定大便。”

28.
两个男人人都被困在沙漠中,快要渴死了。他们走着走着,看到一个小屋,便冲上前去敲门。一个高大,肥胖,多毛,体臭,丑陋的女人开了门。一个男人告诉这个女人他们的情况,求她施舍点水喝。女人说,“可以,除非你搞我。”这个男人回答说,“我宁可死在这沙漠中,也不和你这肥臭屁股睡。”第二名男子同意了。第二名男子和女人进入屋里,把第一男人留在外面。女人说:“搞我!该名男子同意这样做,只要她把眼睛闭上。他环顾房屋,看到桌子上有好多玉米。他选了一个,用玉米棒搞了她,然后把玉米扔出窗外。妇女睁开眼睛要求再弄一次。该名男子重复刚才做的事。妇女终于感到满足了,并同意给该男子和他的朋友一些水。该名男子叫他的朋友进来,跟他说,这个女人会给他们一些水。朋友回答说,“去他妈的水,我想要刚才那种奶油玉米。”

29.
一名六年级的男孩放学后回家。他的母亲发现他很开心地在笑。她问道:“今天在学校有没有发生什么特别的事?”“是的,妈妈。我和我的英语老师做爱了!”母亲惊呆了。“你得和你的父亲谈谈,他就要回家了。”当父亲回家听到这个消息他很高兴。喜气洋洋的骄傲,他对他的儿子说:“儿子,我听说你和你的英语老师做爱了。”“对,爸爸。”“嗯,你今天成为一个男人了-这是值得庆贺的事情。我们出去买些一些冰淇淋,然后我给你买辆新的自行车。”“很好,爸爸,但可不可以换成足球呢?我的屁股疼得厉害。”

30.
哈里接到电话,是一个急诊室医生。医生说“你的妻子发生了严重的车祸,我有个坏消息和好消息。坏消息是她已经失去了四肢,她的余生需要别人来帮助进食和洗浴。“哈利说,“我的上帝。那有好消息?”医生说,“我开玩笑的。她死了。”

31.
一个美丽性感的女人去看妇科医生。医生告诉她脱下衣服,然后开始拍她的大腿。他问这个美女,“你知道我在干什么?”“是的,”她说,“您检查是否有擦伤或皮肤异常。”“那好吧,”医生说。然后,他开始抚摸她的乳房。“你知道我在干什么呢?”他问。“是的,”这名妇女说:“你检查是否有乳房肿块。”“那好吧,”医生答到。然后,他开始和美女性交。他问,“你知道我在干什么呢?”“是的,”她说。“您正在感染生殖器疱疹。”

32.
小强的妈妈教他撒尿的6步骤:1。解开裤子2。拉下裤子3。把包皮往后推4。撒尿5。把包皮往前推6。提裤子扣好一天她走过去厕所,听到小强说1,2,3,4,5,6,她觉得自己教得很不错。第二天她走经过厕所,听到小强很快速地喊道:3-5,3-5,3-5…

33.
一对夫妇去医院生孩子。医生说,他们研发了新机器,可以将妻子生产的痛苦转移到丈夫身上。“你愿意试试?”医生问。“是的,当然。”丈夫答道。妻子在分娩的时候,医生将10%的痛苦转移到这个男人身上,并问他有没有痛的感觉。“没事,都没感觉,”他说。医生又增加到为百分之二十。“还是没事儿,”这名男子说。医生又升到百分之五十。丈夫闭上双眼和紧紧地咬住他的牙齿,但坚持说,他还能够承受,医生便又提高到了百分之七十五。丈夫说道“给我加到分百分之百。”医生加到了100%,妻子分娩时没有任何痛苦。然后这对夫妇带着婴儿回家了。结果发现妻子的网球教练死在家门口。

34.
爷爷走进孙子的房间,看到一个避孕套摆在桌面上。’这是什么?’爷爷问。’这是一个避孕套。”孙子害羞地答道’这个有什么用?’爷爷问。孙子很惊讶,他的爷爷真的不知道什么是避孕套,便说’下雨的时候,我用它来保持香烟干燥’他的爷爷说,’这是一个很好的发明。”便外出来到一个药店。他问药剂师买避孕套。药剂师问:“你要多大尺寸的。”’噢,放的下‘骆驼’就行了。”

35.
一名男子走进一家药店,买一个避孕套,然后走出商店歇斯底里地大小。药剂师觉得很奇怪,但是,也没有法律禁止止古怪的人购买避孕套。谁知道,也许这是一件好事。第二天,又是这个人来药店,又买了一个避孕套,并再次在他离开商店时疯狂地大笑。这激起药剂师的兴趣。“买避孕套有什么好笑的呢?”于是,他告诉他的店员:“如果这个家伙再来买避孕套,你就跟综他,看看他去那儿了。”果然,第二天,这个男子又回来了,他买了避孕套,并再次放声大笑,然后离开了。药剂师告诉他的店员去跟踪这家伙。一小时后,店员回到药店了。“你跟踪他了吗?他去哪里了?”药剂师问。店员回答说:“去你家了。”

36.
医生:我有一个坏消息和一个坏消息。患者:嗯,请先告诉我坏消息。医生:你的诊断报告出来了,他们说,你还有24小时可以活。病人:24小时!太可怕的!还有什么比这更坏的?坏消息是什么吗?医生:我昨天就想告诉你了。

37.
一名男子有早泄的问题,他决定去看医生。他问医生,他做什么可以治愈他的早泄。医生说,“在你觉得快要射精的时候,想办法吓自己一下”。这个男人到商店买了一把赛跑用的发令枪。很兴奋地想试一下,就回到家去找她妻子。他的妻子是在床上,赤身裸体,等着她的丈夫。夫妻俩就开始了,用的’69’式。这个男子,一会儿就觉得快要泄了,赶快拿起发令枪,开了一枪。第二天,该男子又去见医生。医生问:“怎么样啊?”男人回答说:“不太好使啊…我开了枪,我老婆吓得把大便拉在我脸上了,三英寸的阴茎被她给咬掉了,我们的邮递员举着双手,赤身裸体地从衣柜里跑出来!”

  • 38.
    一个女人被送往医院救治,情况危殆。丈夫在等候室耐心地等待。几分钟后,医生出来,并询问她的助理要扳手,丈夫觉得可以理解。又过了一会,医生又要了一把螺丝刀。男人开始担心地兜圈子了。然后,过了一会儿,医生又来了,大声的吼着要把锤子。丈夫惊慌失措了,问道,’’医生,我妻子到底怎么了?’’“我不知道,”慌乱的医生答复到,“我那该死的工具包打不开了。”
  • 40. 两个老人,一个男人和一个女人,走进了医院。医生对老人说,“我需要一个小便样本,大便便样本,和血样本。”老人说,“什么?”医生又说一遍。老人说:“什么?”医生大声说道,“我需要一个尿样,粪便样本,血样本!”老太太对老人说,“把你的内裤给她!”
  • 41. 一个新娘去医院进行检查。她缺乏男性的生理知识,她问医生:“挂在我丈夫两腿之间的是什么东西?”医生答复:“就是我们所说的阴茎。”新新娘然后问:“那阴茎末端红色、紫色的是什么?”医生的答复:“那就是我们所说的龟头。”新娘然后问:“那距离龟头15英寸,两个圆圆的是什么东西?”医生的答复:“夫人,对于你丈夫来说我不知道,但对我来说的,那是我的两瓣屁股!”
  • 42. 法官审问一名双重谋杀案的被告,“你被控告用锤子殴打你的妻子致死。”法庭下面传来一个声音,“你这个混蛋。”这位法官又问“你还被控告用锤子殴打你的岳母致死。”法庭下面那个人又在骂,“你这个该死的混蛋。”法官停下,对法庭下面那个人说,“先生,我可以理解你的愤怒。但请你安静,否则我会判你藐视法庭。有问题吗?“这个家伙站了起来说:“15年来,我一直住在这个混蛋的隔壁,每次我去借锤子,他都说他没有。”
  • 43.
    两个同性恋来到一家动物园。他们看到大猩猩,发现大猩猩的大弟弟一直勃起。这两个同性恋如此着迷,一直盯着看。其中一人实在无法忍受了,隔着笼子里去摸。大猩猩抓住他,将他拖进了笼子,并搞了他6个小时。做完后,大猩猩把这个男人扔出了笼子。救护车来了,男人被带走医院。第二天,他的朋友去医院看他,问:“你受伤了没有?”“我受伤了没有?”他喊道,“我当然受伤害了,它没既没给我打电话,也没给我写信………..”

  • 44.
    “妈妈,我可不不可以带狗狗去散步?”小女孩问到。“不行哦。菲菲正在发情。”母亲说。“那是什么意思?”女孩问。不想和她年幼的女儿谈论尴尬的生理问题,母亲说:“噢,问你的父亲吧。我想他在车库。”
    小女孩到车库和说:“爸爸,我可以带菲菲去散步吗?我问妈妈,但她说,菲菲在发情,让我和你谈谈。”父亲也不想谈论尴尬的生理问题,说:“让菲菲过来。”他拿了抹布,浸了点汽油,擦了擦狗的后面。“好吧,现在你可以去散步,但要把菲菲的带子拉紧哦。”
    小女孩走了,几分钟后就回来了,但是带子上没有狗。“菲菲在哪里?”她的父亲问道。“她一会就回来了,”女儿说。“她走到半路上就没油了,有一只狗把她给推回来。”
  • 45. 精神病院的护士走进病房,看到一个病人在假装开车。护士问他,“查理,你在做什么?”查理回答说:“开车去芝加哥!”护士祝他旅途愉快,离开了病房。第二天,护士进入查理的房间,查理他停止了他想象中的汽车,护士问“嗯,查理,你好吗?”查理说,“我刚刚来到芝加哥。”“太棒了!”护士说。护士又离开查理的房间和穿过大厅来到鲍勃的房间,发现鲍勃坐在他的床上“玩”得很疯狂。护士很吃惊,她问道:“鲍勃,你在做什么?”鲍勃说,“趁着查理去芝加哥了,我在搞他老婆!”
  • 46.
    比尔和玛拉准备“办事”,便把他们的儿子支到阳台上去,并让他回报邻居的活动。这名男孩开始汇报了。“停车场有汽车被拖走了,”他说。“一辆救护车刚刚开过来。”几分钟过去了。“看来安德森有伴儿了,”儿子喊道。“马特骑着一辆新的自行车,库伯斯夫妇正在做爱。”父母从床上站了起来。“你怎么知道?”父亲吃惊地问道。“他们的孩子也站在阳台上”儿子回答。
  • 47. 两个男人在酒吧里聊天,其中一个男人抱怨说:“每次我回家晚了,我老婆就跟我没完没了。”另一个男人说:“我每次回家晚了,就摸到床上去,给我老婆口交,这样她就不会说什么了。”这个男人觉得不错,晚上回家后,他就到床上去给老婆口交。完事儿后,他去卫生间洗漱,发现他老婆在里面,他问:“你怎么会在这儿?”他老婆说:“我妈来了,她睡我的床,你睡沙发去。”
  • 48.
    男一女在酒吧里喝酒。他们开始交谈,很快就知道他们都是医生。一个小时后,男人说:“嘿,怎么样,今晚一起睡。”女医生同意了,一起来到她的住处,男医生
    进到卧室里。女医生进入浴室,洗了又洗就像要进进手术室一样。她认真地洗了10分钟。最后,她进入卧室和男医生做了一场。随后,那医生说“你是一名外科医生,对不对?”“是的,”女人说,“你怎么知道?”“从你之前的清洗看出来的”他说。“很有道理”女人说“那您是一位麻醉师,对不对?”“是啊,你怎么知道?”那医生说。女人回答说,“因为我什么都没感觉到。”
  • 49. 丈夫:哇,你今晚真的是很紧!妻子:把你那毛茸茸的东西从我的肚脐拿开!
  • 50.
    一名女子找到她的医生,抱怨说,她的丈夫是300%的性无能。医生说,“我明白你的意思。”她说:“嗯,第一个100%,你可以想像得到。另外,他还烧坏了他的舌头和他的手指!”

  • 51.
    个男人找到他的朋友,他对他朋友说说:“我不知道生日送什么给我老婆-她什么都有了,而且,她想要的她都买的起,所以我很困惑。”他的朋友说:“我有一个
    想法,你告诉她她可以享受60分钟完美的性生活,她肯定会很高兴。”这个男人就这么做了。第二天,他的朋友说:“嗯?你采纳我的建议没?”“是的。”男人说。“她喜欢吗?”他的朋友问。“啊!她跳起来,感谢我,吻了我的额头,跑到门口,大叫-我会一个小时后回来!”
  • 52.
    两名同性恋决定,他们要一个孩子,但他们不想领养,因为他们想要孩子是最亲的人。因此,他们一起手淫,把精液混在杯子里,让医生利用他们的精子给一个女性朋友受精。9个月之后,这两个同性恋来医院看护房看他们的孩子。除了他们的孩子所有的婴儿都哭。“哇,”其中一个同性恋说,“我们的孩子是这里最乖的。”一
    名护士正好经过,说,“现在倒是安静,待会把奶嘴从他屁眼里拿出来试试。”
  • 53. 一个人到大西洋城嫖妓。他说,“多少钱?”她说,“20美元。”他说,“好吧。”他们来到沙滩上搞,搞的时候她放了两个难以置信的响屁。完事儿后,他给了她25美元。她说:“怎么多给5元?”他说,“你帮我把蛋蛋上的沙吹掉了。”
  • 54.
    三位选手参加一个残疾人游泳比赛。第一个没有手。第二没有腿,第三个没有身体,只有头。他们站好,哨子一响,他们都跳进了游泳池。没手的家伙在最前面,后面是没有腿的家伙。当然,只有头的那个直接就沉下去了。十个来回后没腿的家伙得了第一。他仍然可以看到气泡从水底冒出,所以他决定,潜到水底救人。他拿起那个头,游到水面,把他放在负责人的一边,在那里,头开始时咳嗽。最后这个头缓过气来喊到:“我他妈的花了三年的时间学会用耳朵游泳,然后吹哨的两分钟前,一些混蛋拿了个游泳帽给我戴上!”
  • 55.
    妻子去看一个治疗师说:“我有一个很大大问题,医生。每次我丈夫高潮,他都会发出这震耳欲聋的吼叫。”“亲爱的,”医生说:“这是完全自然的。我不觉得有什么问题。”“没问题?”她抱怨说:“把我给吵醒了。”

  • 56. 一对夫妇遇到了一次可怕的事故,妻子子的脸被严重烧伤。医生告诉丈夫,没办法移植到她自己身体上的皮肤,因为她太瘦。因此,丈夫主动提出捐献自己的部分皮肤。然而,他身上上的皮肤,医生认为只有臀部的最合适。丈夫和妻子商定,他们不告诉任何人皮肤来自哪里,并要求医生也保守的秘密。毕竟,这是一个非常微妙的问题。手术后已经完成,大家都惊讶于这名妇女重新获得新的美丽。她看上去比以前更美了!有一天,她单独与她的丈夫谈话。她说:“亲爱的,我只是想感谢你为我所做的一切。我永远都没法报答你。”
    “我亲爱的,”他答道,“没什么的。每次我看到你的母亲亲吻你的脸颊的时候,我就心满意足了。
  • 57.
    两个已婚男人喝了一晚上酒,一个对另一个说,“你知道,我不知道该怎么做。每次我喝完酒回家。到家前我都把车灯关了。我关掉引擎把车推进车库。进房前把鞋子脱掉,偷偷地上楼梯,在浴室里把衣服脱好。轻轻地爬到床上,我的妻子仍然会醒过来,并骂我为什么回来这么晚!“
    他朋友说:“嗯,你很显然采取了错误的做法。我直接把车开进车库,狠狠地关上门,大摇大摆地上楼,把我的鞋扔到到壁橱,跳到床上去,揉着我老婆的屁股说:“给我吹箫怎么样?她总是装着睡着了。”
  • 58. 小强在上性知识教育课。老师拿出一张阴茎的图片。“有谁知道这是什么?”她问道。小强举起了他的手,说:“当然,我爸爸有两个!”“两个?”老师问。“是的。他有一个小的,用来撒尿,还有一个大的,他用来给妈妈刷牙!”
  • 59. 两个妓女站在街角。开始讨论“业务”,其中一个妓女说,“今晚会是一个美好的夜晚,我都闻到鸡鸡的味道了。。”另一个妓女望着她,说:“不,不过是我打嗝了。”
  • 60.在二年级教室里,一个小女孩问:“老师,我的妈妈能怀孕吗?”“你的母亲多大年纪,亲爱的?”老师。“40。”。“是啊,亲爱的,你的母亲可以怀孕。”小女孩又问:“我的大姐姐能怀孕吗?”“亲爱的,你姐姐多大了?”小女孩回答,“19。”“啊,亲爱的,你姐姐肯定可以怀孕。”小女孩又问,“我能怀孕吗?”“你多大年纪了,亲爱的?”小女孩回答,“我7岁。”“不,亲爱的,你不可能怀孕…”然后,后面的小男孩碰了碰小女孩说:“你看,我告诉你,我们没有什么可担心的。”
  • 70. 大一放假回家后,一位年轻的女孩和她妈妈谈心。
    “妈妈,我必须告诉你,”女孩坦白道。“我上周失去了贞操。”“我并不感到惊讶,”她母亲说。“这迟早会发生。我只希望这是一个浪漫而愉快的经历。”“嗯,是也不是,”美丽的女生说。“前八个家伙感觉不错,但之后几个弄得我下面酸痛地要死。”
  • 71. 16岁的女孩终于有机会去参加舞会。由于她很漂亮,她有点紧张男孩会XX她。她的母亲说:“这是非常简单!只要一个男孩开始有想法,你问他,’以后给我们的孩子取什么名字?’这会吓跑他们。”
    她去了舞会,和一个男孩一起跳舞,一点点,他开始吻她,抚摸她。她问他:“以后给我们的孩子取什么名字?”这名男孩说了一些借口,就走掉了。过了一会,同样的事情再次发生:一个男孩开始吻她的脖子,她的肩膀…她阻止他,并问给孩子取什么名字,他跑了。后来,另一名男生邀请她散步。几分钟后,他开始亲吻她,她问他,“以后给我们的孩子取什么名字?”他继续,慢慢地脱掉她的衣服了。“以后给我们的孩子取什么名字?”她又问了一次。他开始和她做爱。“以后给我们的孩子取什么名字?”她再问了一次。他取下了避孕套,打了一个结,并说,“如果他能从这里面出来…那就叫大卫科波菲尔吧!”
  • 72. 一对母女都非常的骚。她们经常开舞会,和每个人都搞。她们的洞都变得很松了。有一天,女儿遇见了一名男子,并决定和他结婚。现在,这名男子并不知道她们母女的事,还以为女儿仍是处女。于是他决定直到新婚之夜才和她做爱。女儿开始担心她的洞,问她的母亲,“妈妈,我有点担心,彼得,如果他发现我的洞怎么办?!”母亲说,“别担心,亲爱的,我会教个你方法来欺骗你的丈夫。你这样做,放一个苹果在你的洞里,它将变得很紧,他就不会发现了。“因此,女儿按她的母亲说的做了,一切都很顺利,愚蠢的丈夫甚至都没觉察到。这么过了几个月。现在,每次女儿想洗澡,她就出苹果,将它放在洗手盆,洗澡后,她将它放回她的洞。有一天,在洗澡,她忘了把苹果放了回去。丈夫走进洗手间,看到苹果,就把苹果给吃了,“亲爱的,感谢苹果。它味道太棒了!”
    女儿很害怕,不敢告诉丈夫,并去问了她的母亲,“妈妈,我现在惨了!我拿出苹果,去洗澡,忘了将它放回洞里,Peter把苹果给吃了!怎么办?他会不会中毒?我怕,妈妈。”母亲说,“别担心,亲爱的,在几年前,你的父亲吃了我放在洗手间的西瓜,他现在照样活得好好的!”
  • 73. 一名医生见一个病人。“我能为你做些什么吗?”医生问。老人回答说:“医生,你必须帮助我。每一次我和妻子做爱,我的眼睛都发黑,我的腿无力,喘不过气….医生,我不行了!”
    医生望着这个八十六岁的病人,说:“史密斯先生,这种感觉是常有的,尤其是像你这么年迈的人,但告诉我,你什么时候第一次有这些症状?”老先生回答道:“嗯…昨晚有三次,今早上又有两次!”
  • 74. 一个高大的女人在舞会上认识了一个侏儒。侏儒只有不到一米高,但他们被对方吸引了。几杯酒后,他们回到高大女人的公寓。“我不知道和侏儒做爱是什么感觉”女人说“尤其是与大小的差异。”“只要脱掉你的衣服,躺在病床上,把您的腿分开,闭上你的眼睛就行了。”侏儒说道。这名妇女按侏儒说得做了,很快,她感觉到了进入她身体最大的东西。在几分钟之内,她高潮了8倍。“如果你认为这很爽的话”侏儒傻笑着说,“现在我把两条腿都放进去!”
  • 75. 一对夫妇结婚的时候,妻子怀疑她的丈夫。“我知道你以前有过很多的女人。到底有多少人嘛?”丈夫回答说:“你看,我不想让你失望,有很多个。就让这些成为过去吧。”妻子继续恳求。最后,丈夫屈服了。“让我看看。”他说:“有一,二,三,四,五,六,你,八,九…”
  • 76. 一个女人去看她的医生,她想做手术,因为她的阴唇非常大。她要求医生保守秘密,她很尴尬,不希望任何人知道。医生同意了。手术后,她醒来,床边放着三束玫瑰。她很愤怒,立即要找到医生说,“我不是让你你不要告诉任何人吗!”“不要担心,”他说,“我没有告诉任何人。第一束玫瑰是我送的,因为你一个人经历了这一切。第二束是护士送的,她协助我动的手术。”“那第三束呢?”她问道。“哦,”医生说,“是由楼上烧伤病房的一个家伙送的。他想感谢你给他的新耳朵!”
  • 77. 阿美是个漂亮的女大学生,还没毕业就找到了工作。老板承诺说月薪有八千,还是税后。大家都为她开心!发第一个月工资后,阿美请同学吃饭。喝酒正酣时,阿美突然内牛满面:“八千,睡后……”
  • 78. 美院正在上人体课。一女生画着画着,突然把笔扔在地上!女生对男模怒斥道:“一会大一会小的,还让不让人画了!”
  • 79. 我有个友情加入的群,我从来都没说过话也不好意思退,刚才看一个S B男在里面吹牛逼说自己硬的时间是如何如何久,

    谁都知道人哪方面不行就越愿意吹嘘哪方面,
    后来看不惯他了,我突然说一句:“你硬那么久,当擀面杖用啊?”
    就退群了

  • 80. 听XXX同学讲述了他中学设计的如何杀s他老师的计划很惊异他如此奇特的智商。现将方
    法公布如下。

    首先,潜入老师家,将老师家的盛水容器里放入氢氧化钠,然后在水杯中放入X

    铵。之后,在排风扇上涂上白磷。将煤气打开,使浓度足够着火,但不够爆炸,最后,

    在老师家里的门锁弄坏,从里面打不开,再将一盆万能胶置于老师家窗户下(老师家在
    一楼)。

    翌日,在老师的饭中多放盐,老师口渴倒水,氢氧化钠与X铵反应生出氨气,屋

    子里尽是臭味,然后老师打开排风扇,白磷与空气摩擦点燃煤气。老师打不开门,只好
    跳窗户,然后落到万能胶里。

    最后,老师黏住了,出不来,饿死了。。。
    饿死了。。。
    饿。。。死。。。了。。。

  • 81. 听好朋友说的。好朋友在信用社坐台(是的,这是我的用词,坐台-__,-),不是坐柜台
    ,而是坐在大堂的,此为背景。

    今天她听到有两个人在争执,弄清楚之后才发现是两个中年大叔。A大叔给B大叔汇

    款,但是由于少了后两位数B没有收到款,两人过信用社来查,争了半天发现是A大叔的

    手机没有显示帐号的最后两位(请不要问为什么···我们也不懂···)于是两人发
    生了一下的对话:
    B:你的手机很垃圾!

    A:不可能!我的是苹果!
    B:狗屁!一定是水货!
    A:联通送的!!你的才是水货!

    B:我的是HTC!比苹果好!你的就是水的!(这时候我朋友已经很凌乱了···)
    A:才不是!就是真的!我也不知道怎么就缺了那两位数!

    B:你哪会知道勒!!!苹果自己家的图标都缺了一块找不到!!
    苹果缺了一块···
    缺了一块···
    一块···

  • 82. 想当年姐还是纯洁小萝莉一枚,
    爸爸年轻气盛脾气暴躁,妈妈巾帼不让须眉,
    家里隔几天就会硝烟滚滚,

    战后妈妈就会带着我去外婆家住几天,
    我也习惯了,据妈妈说,
    后来每次他们俩一开战,
    我就会收拾好自己的小包袱坐小板凳上,

    然后跟妈妈说:走吧,去外婆家吧!
    可怜的老爸满头黑线...

  • 83. 同学说她的初中同学…绝对真实~

    据说那天大家在班上做大扫除,班上一位胖女生俩腿之前夹个拖把(就巫婆骑扫帚一样的姿势)偷懒坐到窗台上(搞不懂她为什么想不开要用这种**…好吧…),

    结果老师突然来检查,她就俩腿扎开纵身一跃,拖把棍子的那头精准的槑槑了她的菊花…撕心裂肺的嚎叫阿…
    结果一直到被抬上担架,她就一直在捂着菊花狂笑…

    虽然这真的很好笑,可大妹子你不痛么?

  • 84. 突然发现我们小时候唱的《健康歌》真是太XE了…
    亮点:左三圈 右三圈 脖子扭扭 屁股扭扭
    省略若干歌词…

    爷爷说的容易 早上起床嘿咻 嘿咻
    省略若干歌词………
    小萱萱啊 跟着爷爷一起做 要看好喔 嘿咻! 嘿咻! 嘿咻! 嘿咻! 爷爷加油 加油

  • 85.
    某村开会讨论改革殡葬节约土地资源,村民们各抒己见:【甲说:我建议啊!都不用棺材了,省钱又省地。】【乙说:我看竖着埋可以更省地方。】【丙磕了磕烟枪,慢悠悠的说:我看啊,竖着来只埋下半截,连墓碑也省了,一看就知道谁死了!】
  • 86. 床前明月光,疑是地上霜。举头望明月,低头思故乡。

    译文:我的床前有位叫明月的姑娘已脱光,她的皮肤白嫩的就像地上的白霜。抬起头望着这位光溜溜的明月姑娘,低下头不禁地想起夫人远在故乡。鉴赏:这首诗反映了诗人作为一个正常的男人,独自在外地打工,寻花问柳时的矛盾心情。

  • 87. 酒店新住进个老外,晚上老外电话求助,说:“我的电视坏了,不能换台。”
    服务员低头看了一眼手表,很淡定的说:
    “中国的电视在晚上七点到七点半都会这样的。”
  • 88. 老师在小盆友的活动场所赫然发现一坨shi.多番讯问是谁干的,未果。怎办?雷人的来了……由于小孩子擦pp大都不干净,遂挨个掰开屁股缝对比菊花与shi的颜色,菊花太干只有少许粉末的喷口唾沫和成shi浆再对比…我勒个擦,终于把老夫揪出来了……。。。。。。。。。。。。。。。。。。。。。。。。
  • 89.【老段子】一位父亲怀疑他的三个女儿已经不纯洁了。于是他决定做个试验。他首先把十六岁的女儿叫到屋里,脱下自己的裤子,问:“你知道这是什么吗?”女儿回答:“知道,爸爸,那是你的JJ”.

    父亲很生气,对她大叫道:“你要每天读圣经,一年不准坐车!”。
    然后他把十四岁的女儿叫到屋子里问同样的问题,得到同样的回答。

    父亲很惊怒:“你两年不准坐车,不再给你零花钱!”
    最后,他把十二岁的女儿带到屋子里,女儿说:“我不知道那叫什么,爸爸。”

    “好,是爸爸的好女儿,我会多加你的零花钱。爸爸告诉你,这个叫JJ.”
    女儿大笑道:“你这也能叫JJ?”

  • 90. 话说刘备在洞房花烛夜当晚,前戏过后,淫笑着对娇妻说:“该是老二出场的时候了!”
    顿时,关羽破门而入,大喊道:“多谢大哥!”搂过嫂子说:“就让你见识见识我小弟的厉害!” 话音刚落,张飞跃窗而入,大喊道:“多谢二哥……”

91.
1 小三再美、 小四再媚,go-vern-ment承认的 始终是俄。

2等我找到男朋友,我第一时间就是抽他两巴掌,我得问问,这些年你TMD躲哪里去了。
3谁说打呵呵就一定是笑 , 只是不知道该说什么 。

4我对你的爱、一直到新闻联播大结局那天。
5如果我不理你,你是不是会主动来找我?或者我们就一直沉默, 直到你去了别人身边丶

6有些歌词深入人心 我们听的到底是歌还是自己?
7你贱或者不贱, 小三就在那里, 不孕不育、你二或者不二,二就在那里,不三不四.

8一首忐忑让多少五音不全的孩子得到了自信。
9女人是一天的公主,十个月的皇后,一辈子的操劳。

10看上了、追求了、好上了、开心了、不久、腻了、吵了、淡 了、散了。
11成长中、痛并快乐的日子叫做青春。

12我知道你身家千万,拥有豪车无数,私家豪华餐厅,现代化农 牧场。自从QQ号丢了以后,你就一无所有,神马也不是。
13不用一上线就忙着隐身
我不会纠缠你。
14我在马路边捡到10块钱,把它交到网管帅哥手里面,帅哥拿着 钱,对我把头点,我高兴的说了声,冲个会员。

15没有小三的存在,谁去鉴定你们那些扯淡的爱情。
16- 我想知道自己喝醉酒之后会喊出谁的名字。

17情人节,有个MM打电话给他:“来我家吧,没人!” 他兴奋的 狂奔而去!敲了一个多小时的门,发现真的没人
18★ 丶
一闪一闪亮晶晶,满天都是狐狸精
19为什么喜欢一个人要2个人的同意,而分手只需要1个人?
20= ,=迅 雷 、 你 下 载 得 了 幸 福 吗
?···
21( 别以为你上课发短信我不知道, 有谁会对着 裤裆傻笑 ?
22〤 有一天小三哭了, 那是出现了小四。

23学校广播。“下课了。老师,你们辛苦了”“上课了。同学 们,你们又要受苦了”。

  • 92.
    某大学,近日由于食物中毒,正盛行拉肚子。某男生一大早便提着裤带,捂着肚子奔向厕所。不巧,一老妪正清洁厕所。此男生等待良久,只见那妇人专心拖地,不见其有退出之意,终于忍无可忍。大声和道:“快拖(脱),快拖(脱),我要上。”
  • 93. 我妈接到个电话,说是xx银行信用卡欠费,你们都懂的。
    我妈说“你肯定是骗子,银行都是语音系统。”

    那边就把电话挂了。
    过了几天,又接到个电话,那边电话一接通就说“现在是语音留言,你的xx银行账户欠费……详情请按9。”

    我妈说“我电话上没有9。”
    那边说“怎么可能?”
    我妈说“你不是语音吗?”
    那边把电话挂了。

  • 94. 什么是爱情?骗呗!
    什么是温柔?贱呗!
    什么是艺术?脱呗!
    什么是仗义?傻呗!
    什么是勤俭?抠呗!

    什么是谦虚?装呗!
    什么是勇敢?二呗!
    什么是幽默?贫呗!

  • 变态楼主:气死了,今天丢了自行车!
    暴强回复:楼主知足吧,我女同学上次丢了自行车座,天黑没看清楚骑上就走…
  • 95. 遥记得小时刚学的加减,还没学乘除。

    某日放假去外婆家玩,无聊翻看表哥的作业,发现他加号写得斜了,减号上下竟然都多了个点,然后犀利的我怀着表哥会感谢我的理念,把他作业本从头到尾减号上下两点都给擦了个干净,完事还得瑟得坐等表哥的感谢。

    直到表哥后来狂暴状态把我海揍一顿后,我才知道这世上竟TMD还有乘除号!

  • 96. 年轻人带着女友回山中老家,指着一座古坟说:“我家先祖的魂魄寄寓在墓穴里,千年来一直守护着这个家族。谁敢对他的子孙不利,先祖便会化身厉鬼寻见那人复仇”。当天夜里,先祖魂魄忽生感应,在村子半空杀气腾腾地盘旋良久,然后托梦给了族长问道:“杜蕾斯是谁?”
  • 97.
    据说一老外年轻的时候,立志要当一名伟大的作家。怎么才算伟大呢?他说:我写的东西全世界都要看到!看完他们必定会歇斯底里!会火冒三丈!会痛苦万分!结果,他成功了,他在微软公司负责写系统蓝屏时的报错提示信息……
  • 98.【绝逼是转的=
    =】来个y一点的。基基把碧碧qiangjian了,碧碧把基基告上了法庭,法官问:有证人吗?碧碧说:咪咪。咪咪对法官说:老求知道,我当时被人给捏晕了……
  • 99. 在某论坛上看到一巨有才的哥们儿征女友。其贴子透着一股蛋疼劲儿,最亮的几句话是这么说的:本人处男,性功能健全,满血满蓝20分钟以上!

    于是底下跟帖的有人问,既然是处男,怎么知道是20分钟以上?
    LZ回复:手测!
    跟帖众人绝倒一片……

  • 100.
    小学操场,我和小伙伴们玩鞭炮.放的是天地两响炮.为炫耀勇敢,我用手拿着点.也许是拿歪了,本该向天的炮飞到了厕所:一声闷响过后.....我们敬爱的校长裤子都没提,满身屎花跑出来了.......
  • 101. 刚刚在澡堂洗澡发生的事情,在澡堂洗澡,旁边是一个小正太和他爸爸在洗,小正太突然指着他爸爸的那个部位问:“爸爸,为什么你的小鸟那里那么多毛毛呢?”

    他爸爸一边给他洗澡一边随口答道:“因为爸爸是大人。”
    小正太哦了一声继续问道:“为什么妈妈也是大人,却有很多毛但没有小鸟啊?”

    他爸爸淡定的答道:“因为你妈妈的小鸟给你了。。。”
    澡堂里所有的人听了全都憋到内伤。。。

  • 102. 今天去师姐家玩,正好看到她家可爱的小正太(三岁多)在床上玩。 小家伙骑着一个大枕头,两手揪着枕头的两角,兴高采烈地大喊着:”驾!驾驾!”

    偶故意逗他:”帅哥,今天骑的是什么马呀?”
    小正太白了偶一眼,大声说:”白痴,我骑的是枕头!”
    是枕头… 枕头… 头…

  • 103. 悟空:你这不知死活的女妖精!
    可知道老孙的如意金箍棒?这棒轻重如意,大小随心。

    平时带在身上,不过牙签大小,握一握便如碗口粗细。
    施展开来,从未遇见敌手!
    女妖:我见的和尚多了,没见过你这样一张嘴就这么流氓的。

    悟空:。。。。。。

  • 104. 深夜……母亲:你这死丫头,才15岁就搞对象,整天不回家,连你母亲30岁生日你也不来!!!
  • 105.
    今天听同事说起一件搞笑的事情:他以前的公司,有领导去他们机房参观。进门的时候有人给了领导一副塑料鞋套,结果领导不知道是啥,套在了头上。于是后面所有人都不敢出声,全都把鞋套套在头上……
  • 106. 某老外苦学汉语十年,到中国参加汉语考试,试题如下:
    请解释下文中每个“意思”的意思

    阿呆给领导送红包时,两人的对话颇有意思。
    领导:“你这是什么意思?”
    阿呆:“没什么意思,意思意思。”

    领导:“你这就不够意思了。”
    阿呆:“小意思,小意思。”
    领导:“你这人真有意思。”
    阿呆:“其实也没有别的意思。”

    领导:“那我就不好意思了。”
    阿呆:“是我不好意思。”
    老外泪流满面,交白卷回国了

  • 107.
    一司机拉客,问乘客去哪,客答:生命的尽头。司机不解又问。客说:操,火葬场都不知道。司机不悦骂道:多亏去生命尽头,要是去生命源头还得往你妈B里开啊!
  • 108.【来个重口味的】
  • 有一家的媳妇很很勤快,家里有一个生肺病的公公,
    所以每天早上需要人帮他把肺里的痰给抽掉,

    她是一个全职太太,每天除开照顾公公就是把家收拾的干干净净的,
    每天,她老公出去上班前,她都会准备好早饭在客厅,

    有一天,她老公上班前,看到老婆在厨房里忙活着,
    客厅的饭桌上放着一杯类似于绿豆粥的东西,
    于是他很自然的拿起来喝掉,

    对着厨房里的老婆说:“今天的绿豆粥有点稠,味道有点怪,而且不甜啊”
    他老婆从厨房里端着豆浆和早饭出来,

    看了看四周说:“咦~我早上给爸爸抽的那杯浓痰去哪里了?”

  • 109. 【必须是转的】本人女,为迎接春节的各种拜年、饭局
    今天特意赶在年前去美容院做了一个全套的脸部护理+全身按摩。

    其中有一个项目是用一台震动频率很大的按摩机在身上各部分按摩的,
    说是可以减肥消脂、松驰肌肉紧张什么的。

    当机器按摩到我小腹时位置有点太下了,我居然GC了!

  • 110. 本人航空公司的,讲个同事L的趣事,L男人一个,航班延误了,
    一男旅客问,为什么还不走,L回答航空管制@(&%*....

    一顿解释,结果旅客打断了他的话,别在这唧唧歪歪的,
    说些没用的,就说什么时候能走,
    L看看他,来了句,不好意思先生,

    机长还没给起飞时间,再有我的鸡鸡不歪。。。。
    我们全体黑线

  • 111. 我:妈,过年买点鞭炮吧。
    妈:不买。
    我:哎呀,买点吧 。
    妈:不买,没用。

    我:买吧,给我买点魔术弹和摔炮就行。
    妈:不买,你自己放几个屁吧。
    我:。。。。。。

  • 112. 我家门口有个小店,每天广播的广告就是
    “老板娘跑了,老板娘跑了,老板无心经营,清场大处理。”

    持续一个月以后就换为:
    “老板娘回来了,老板娘回来了,老板庆祝,打折大酬宾。”
    下一个月是:“老板娘又跑了,老板娘又跑了……”

  • 113. “中国的情况是,很多家长不允许学生谈恋爱,
    甚至在读大学了还有很多家长反对恋爱,

    但等到大学一毕业,所有家长都希望
    马上从天上掉下来一个各方面都很优秀而且最好有一套房子的人和自己儿女恋爱,

    而且要结婚。想的很美啊。”——韩寒

  • 114.
    上学那会儿同学去车站接人,大家知道,汽车站有很多黑车老板来拉生意的。我们站在那等人,结果老有黑车老板来问坐不坐车,问问问问得我烦透了。就在我火大的时候,又一老板凑上来问,坐车么?我及其暴躁的来了句,不坐,我们来接客的。。。接…客…的…。。。或者接人,或者接客人,为什么是接客????至今想起来仍然去屎的心都有
  • 115. 不记得是高二还是高三了
    有天宿舍里一姑娘要出门,就说给我带好吃的回来

    那天下课后她站在后门门口大声滴问我:XX,我要出去了,你等下要吃什么?我买回来给你!
    我鸡冻了。想吃某家冷饮店的特色炸鸡腿

    于是。。。。我本来想说我要一个大大的鸡腿的
    结果,到了嘴里变成了:我要一个大大的鸡鸡。。。。。(声音还特大)

    话刚说完,教室里的同学全都向我投来惊讶的目光
    我意识到自己说错话了,囧死了!赶紧钻桌子底下躲起来= =
    然后耳边是大家的狂笑和啧啧声

  • 116. 一女的做微笑状问一男:“我这样好看吗?”男回答说:“像蒙娜丽莎她妹。”女特兴奋问:“蒙娜丽莎她妹?谁吖,谁吖”
    男说:“珍塌玛莎!”。暴打ing。。。
  • 117. 前天看到外甥和侄子窝在一起玩麻将,这俩一个7岁一个6岁……
    具体是这么玩的……

    外甥往沙发上丢出一个我姐的胸罩,大叫一声:“二饼!”
    然后侄子丢出两个我嫂子的胸罩,大叫一声:“我碰!”
    继而俩小子在地上笑得打滚……

    不知道谁TMD教的这两个小崽子

  • 118. 今早跟老爸说,老孙师傅,我对象今年要来娶我了,你嫉不嫉妒啊。

    我意思是我以后就跟别的男人去很远的地方了就被个坏小子带走了他会不会舍不得我。
    老爸悠悠地看了我一眼,“我嫉妒你干什么,我又不是没搞过对象”

  • 119. 我一哥们,有天脑残,
    闲的无聊跟其女友开玩笑说:有个男的给我信息说你他是你老公。

    其女友瞬间脱口而出:怎么可能,他不知道你号码的。。。
    然后就是死一般的寂静,再然后就没有然后了

  • 120. 今天我的小表弟在下课时间……跟同学在教室追逐嬉戏……
    后来玩着玩着……忽然同学恶作剧偷偷摸了他的小鸟……
    他感到非常生气……又觉得被摸的感觉很羞辱……
    於是哭着去找级任老师(女的)…… "老师 XXX 摸我的小鸟"表弟这时又气又想哭…… "而且摸的很大力"

    这时班导找来XXX 想要当面训诫一番……
    "XXX 老师有没有教过不可以随便乱摸人家的东西……"老师很严厉口吻说…… "下次不可以再这样子
    知不知道" "在摸之前要先经过人家同意"
    原本我的小表弟还很暗自庆幸…… 没想到这位级任老师竟然转过头来 口气也不是说很好 "还有你"
    "难道老师之前所说的 你都没放在心上" "老师不是说过 不可以带动物或是宠物来学校的吗" "谁叫你带小鸟来学校""把小鸟交出来 放学后老师再还你"

  • 121. 我们物理老师上课讲受力分析,他以“手”为例,举起一只手说:假如这是一只手…………我经常练习“无影手”,快到可以抓住

    蝴蝶、蚊子、学生考试丢的纸条,
    但在练习过程中,也出现了如下误差:
    1、中学时,和其他男女同学刚转到另一个班级。

    当时课间做眼保健操,快完的时候我提前跑到第一排,
    试图用无影手抓女同学手中的玩具,
    结果抓住了她的mimi。

    正好此时眼保健操完毕,
    大家张开眼睛正好看到这一幕。
    2、后来试图抓女同事手中的东西,
    结果食、中两指插到了她的鼻孔里,

    满座皆惊。

  • 122. 唐僧:悟空,你变成套套吧,今天为师要亲自收拾这个女妖精。。。

    悟空,你变成伟哥吧,今天为师要亲自收拾这个女妖精,直到她求饶!
    今天好无聊。。。悟空,你变成女妖精吧。。

    悟空,为师已经厌倦这种生活了…你把我变成女妖精吧。。。
    悟空,你今天变成为师吧。。。
    悟空,你今天不用变了…

  • 123.【这个楼主前几天体验过了。。。步子太大扯到蛋了,结果静坐一小时,无论经理说什么我都没走动】

    步子迈大了,容易扯着蛋。
    步子迈小了,容易挤着蛋。
    不迈步子了,又容易蛋疼。
    哇,做男人真辛苦

  • 124. 1.三条狗关在宠物医院的铁笼子里。甲狗伤心地说:"主人的女儿喜欢踢我,我咬了她的腿,主人就把我送来人道毁灭,呜呜呜。"乙狗也很伤心地说:"主人的儿子老是对着我撒尿,我咬伤了他那小JJ,主人就将我送到来人道毁灭,呜呜呜。"丙狗接着说起了自己的故事:"我的主人是个单身女人。昨天她洗完澡光着身子走出浴室,突然弯腰去拣什么东西,我忍不住扑上去趴在她背上....""那你肯定是被她送来人道毁灭的。""不对。""那是要把你阉了?""也不是。主人只是让这里的医生帮我修修指甲而已。"
  • 125.
    3.有三个小孩在一起聊天说什么东西最毒:小孩甲"蚊子最毒,我哥哥的手被蚊子叮了一下,又红又痒。"小孩乙"黄蜂才最毒,我哥哥被黄蜂蛰了一下脸,现在还是又肿又痛。"小孩丙想了半天说"我姐夫最毒,那天我看到他用毒针扎我姐姐,后来她肚子肿的又圆又大。"
  • 126.
    有一个花花公子,因为玩的太凶了,结果那个就生病了,连续看了好几个西医医生,都告诉他那个不行了,一定得切掉,那花花公子怎舍得呢?就跑去看中医,医生看了看,说:"虽然太晚了,嗯,不过没关系!"

    "真的吗?可是我看了好多西医都说一定要切掉。"

    医生道:"唉!西医就是这样,动不动就要切东西,这瓶药你拿去,每天涂三次,要不了多久,它就会自己掉下来的!"

  • 127.有一天一个妇女去医院咨询,她问医生:"我丈夫这几天要得特别的多我都快吃不消了,请问他是不是有什么病呀?"

    医生说:"他有什么异常吗?"
    妇女回忆说:"他晚都要关灯做,而且每次完了之后都出去上一次厕所"

    医生说:"这我也不太清楚,这样吧,你回去晚上再要得多的时候,你就用手电筒照照他的眼睛,看看他有什么反映再来告诉我!"妇女便回去了。

    到了晚上,向往常一样,丈夫已经是第十几次了,妇女有些受不了了。于是,她按照医生说的,用手电照丈夫的脸,却惊奇的发现上面那个男人竟不是她的丈夫,她非常的恐慌,于是挣扎着问:"我丈夫呢?!"

    那个男人正在兴头上马上就要到gao潮,于是不耐烦的说:"他在外面收门票呢!"

  • 128.偷偷带男朋友回家!
    在一夜狂欢之后,女孩偷偷带着自己的新男友回家来。
    过了一会儿,男孩突然想去厕所。

    女孩紧张的说:“你不能去!厕所就挨着我爸妈的卧室,你就先用厨房的水池凑合一下吧!”

    男孩急急忙忙地跑去了厨房,过了几分钟,男孩探出头来说:“你有手纸吗?或者我就用擦碗布凑合一下?”
    评论:厨房水池和擦碗布很有内容了……

    2、我没有虐待她!爆笑!
    妻子对丈夫吼道:“为什么每次我唱歌的时候,你总要躲到阳台上去?”

    丈夫叹了口气,答道:“咳,我只是想让大家都知道,我并没有虐妻。”
    评论:为了妻子的爱好,做丈夫的真是用心良苦啊!
    3、郁闷的新婚之夜!

    一男子刚刚过完新婚之夜,第二天上班就一个劲的叹气。
    他的同事过来关心的问:“你怎么了?”

    男子无奈的回答:“我今早一起来就习惯性的顺手给我妻子了100元钱。”
    他的同事说:“天呐,那可坏了!”

    男子又说:“更坏的是,我妻子也习惯性的找了我20元钱。”
    评论:通过新婚之夜,更了解对方的苏州史。
    4、早就想跟你离婚了!

    漂亮的长颈鹿嫁给了英俊的猴子。
    一年后,长颈鹿突然提出离婚:“我再也不要过这种上蹿下跳的日子了!”

    猴子大怒:“离就离!我他妈早就跟你过够了!亲个嘴还得爬树!”
    评论:有了爱,身高是问题么?
    5、大开眼界的妻子!爆笑!

    一女夜行回家,路遇一壮汉,遭凌辱!
    回家后,该女执意要和丈夫离婚!
    丈夫不解,问:“为啥?”

    妻子怨恨的答道:“今天我算开眼界了!你这男人还算个男人?”
    评论:有句话说得好:被**的时候,还是闭上眼睛静静享受吧!

    6、不是咱亲生的!爆笑!
    悬崖上,小老鼠挥舞着短短的前爪,一次又一次跳下去,努力的学习飞翔!

    旁边的母蝙蝠看着它摔的头破血流,忧心的说:“它爹,要不告诉它它不是咱亲生的!”
    评论:别臭美,给你一双翅膀还是老鼠!

    7、路边亲热的下场!
    一男人和女人驾车出游,停在路边亲密,却被巡警遇见!
    巡警问:“这是你的车吗?”
    男人答:“单位的。”

    巡警又问:“她是你老婆吗?”
    男人答:“也是单位的。”
    巡警惊叹:“奶奶的!什么单位,福利咋就这么好?”

    评论:长见识了,单位还有女人供亲热……
    8、尴尬的男女约会!
    爆笑!一对青年男女在公园约会时,女孩突然想放屁。

    女孩想了个办法,对男孩说道:“你听过布谷鸟叫声吗?”
    男:“没听过。”
    女:“我给你学,布(放屁声)-谷(口中发出的声音)。”

    女:“听清了吗?”
    男:“放屁声太大,没听清。”
    评论:明察秋毫!女的会闹分手么?
    9、哪怕头上有点绿!

    一个男子的妻子经常红杏出墙,男子为此十分痛苦!
    其同事送来一付对联:
    上联:只要日子过的去,
    下联:哪怕头上有点绿!

    横批:忍者神龟。
    评论:严重怀疑这个同事是翻墙者之一!
    10、这帮人简直都是疯子!

    精神病院爆满,院长准备让一些病情较轻的病人出院。

    为此,他想到了一个办法:“在一间密封的房子里,放着一辆10列的玩具火车,然后让10个病人进去,并对他们说坐这火车他们就可以回家了。”

    在试验中,有九个病人开心的坐上了火车,并高兴的说:“呵呵呵,可以回家了!”
    院长感到很失望,但是他发现有一个人正用不屑的眼光看着他们。

    院长眼前一亮,对他说:“你为什么不上车呢?”
    这个病人骂道:“这帮人简直都是疯子!”

    院长想这人看来还有的救啊!于是开心的问他:“你怎么觉得他们是疯子呢?”

    这个病人吼道:“妈的!我这车长还没有上车他们就开车了,你说他们还不是疯了!?”

  • 129.
  • 1、第一晚,几个人围坐打牌.其中一个女生(准美女),年纪比我们小,却偏偏卖老,开口闭口“**“,偶对家一次说了一句什么话,惹了她,只听她发狠道:“...我把你**的皮拨了!“满座皆寒!

    2、第二晚,亦在打牌中,一帅哥说话中提到他哥哥,边上一女生(美女)甚惊讶,问道:“你上面还有哥哥啊?“
    帅哥答:“是啊...“女生又问:“那你下面有没有弟弟?“全场厥倒!

    3、有一次和mm在电话里胡扯,谈到日这个字,我挺不好意思的说日是**的意思,mm很大嗓门的说:日不是**,是操!操和**是不一样地!!!我ft!

    4、有次和朋友的mm坐在一起聊天,她问我多大了,我说不告诉你,她说“不告诉我?嘿嘿,把你jj切开看‘年轮’”…………jj都有“年轮”?

    5、mm边打牌边吃零食,嚼牛肉干可能嚼到筋了,半天嚼不烂,煸?“你买的什么牛肉干啊,嚼起来跟嚼牛鞭一样……”

    6、高中时偶班俩mm对骂,其中一人怒曰“我操!另一人曰:你他妈操什么操!你他妈是属于被操的!

    7、某日于一网吧cs,人不多,对面坐一mm估计在语聊,声音很大。不一会儿可能mm和对方发生争执开始对骂,刚开始也无非就是国骂之类的,偶没有太注意,继续cs。。。2分钟后,mm高呼一句:“你丫再横,我一b夹死你!”。。。。网吧众人绝倒。。。

    8、高中,一朋友和女生吵架,那女生一字一句的说:“我……操……你……妈!”哥们忍不住说:“你拿什么操??” 那女生说:“我用你的!”

    9、初中时,有两个mm吵架,其实是斗嘴玩,一个说:“我***!”偶们当时都暴寒,谁知旁另一个女生说了一句话足以寒死全世界,她说:“应该是‘我 ***
    爸’!”,众人晕倒~~~
    10、偶mm的室友经常恐吓她们的一句话就是:“再说再说,把你下面那个洞给堵了。”

    11、高中毕业前的一个月的一天下午,我们班的向来很文静的校花一反常态的站在讲台上面向我们大声对我们说: 爱 不是想出来的! 爱 是做出来的!~`
    全班先是全倒,然后是掌声雷动......这一幕我一辈子都忘不了!`
    12、当初有个mm的绝骂:你老爸当初怎么没把你射到墙上啊!!!

  • 130.
  • 1.最近有同学结婚了,是裸婚,夫妻俩一致赞成不买房。其实这哥们的经济条件还可以,咬咬牙还是能背得起房贷的,但是人家说了这么一句话:“一辈子为了一个洞太不值了!”好友们也好好想想吧~~

    -----------

    2.A:这是上天的警告吗?在苏州,现在外面下大雨,刚刚一道闪电在离我不远的地方击中地面(在阳台抽烟时),是不是老天在对我警告呀,因为我正在下几部日本电影。求解!!?

    B:他在提示你,用迅雷
    -----------

    3.今天,为了让我家的老公对熨衣服感兴趣,我买了一块熨衣板。这块熨衣板不一般,上面印着个穿着泳衣的美女,板一遇热,泳衣就会消失。结果他把这块板子贴在了暖气片上。
    4.
    四个女生打麻将:她们说不玩钱,我说那有什么就拿什么出来吧,结果我赢了三包卫生巾、两包纸巾、一包湿巾、两包kfc番茄包。第一次觉得麻将可以这样赢,比赢钱还爽。

    -----------

    5.上大学那会,学校通报批评了一个夜不归宿去网吧整夜上人人的童鞋(通报是贴在木质展板上的)。第二天展板上空空如野,学校也没直接证据就是该同学撕的。无奈,只好再帖,第二天又没有了,如此反复。学校有点毛了,用特大字又写了一边,下边还标注:再撕者开除学籍!第二天——展板没了?

    -----------

    6.今天下决心开始减肥,对老公说:”我从明天开始晚饭只吃香蕉和菠萝!!”结果老公淡淡的回了一句:”大象也是吃这些长大的…”我泪…

    -----------

    7.高中时流行玩CS,那会网吧大多没有网,人们去了就是游戏。为了区分开人,也是出于恶搞心理,大家把游戏里的名字都起成了校长(郭建华)、副校长(张四平)、教导主任什么的名字,每天打得热火朝天。一天校长查网吧,

    进去,一学生看见了,忙说:“郭建华来了,在门口”。我以为是说游戏里,接口:“张四平,快扔雷炸死那个姓郭的王八蛋,他又来偷袭了。”事后,下场及其凄惨。

    -----------

    8.老婆看大小姐上介绍了一种漂亮的衣柜,我觉得没用,不让老婆换,我们大吵了一架。我很想打些什么东西来发泄怒气,就一拳轰向了衣柜门,结果破了一个大洞。杯具啊~这一架我白吵了。

    -----------

    9.早上洗头,手机放旁边搁板上。洗完一抬头,发现手机沾了点泡沫,非常自然地拿到水龙头下面冲了20秒。冲完很干净,很满意,顺手又用毛巾把手机表面擦干。看着焕然一新的手机觉得今天实在是太美好了。2分钟后傻了,关机、开后盖、卸电池,看着水珠从手机内部淌出来…

    -----------
    10.晚8点多,哈工大操场旁。
    一基督徒拦住某工大男:打扰一下同学,我是一名基督徒,请问您对***感兴趣吗?

    答:没有。
    又问:为什么呢,您有其他的信仰吗?
    答:最近信春哥。(碰到这个算他倒霉!哈哈)
    -----------

    11.老婆的一个同事注册结婚了,大家去贺喜,这位仁兄姓“卞”,于是大家一起说“恭喜你,小便**你终于结婚了”,接着有人就对着她夫人说“恭喜您,荣升为BT”,另一位则说“将来,小便**将来要有了秘书,我们都要称之为便秘”,最后一位幽幽地说“这将来有了孩子,可是要称为变种了”。

    -----------
    12.前几天在饭馆吃饭.突然走进来3个和尚.我也好奇.和尚下馆子少见啊.

    就听他们在点菜.:红烧豆腐,闷茄子.还有个豆角抄辣椒.我感叹:不错啊..下山还记得戒律

    他们吃完了.我和哥几个还在拼啤酒.那和尚和老板结帐.和尚感叹说厨师手艺不错.问怎么炒的. 老板一句:都是今早的新鲜猪油……

    13.偶男朋友,某天他用面纸卷成一个小棍棒,在我等公交的时候对着我肚皮猛戳一下,我愣住了,他自言自语“白刀子进,白刀子出,你的脂肪还真厚”,我无语,5分钟后,他又对着我胸口猛戳,我为了配合他,“啊~~”了一声,还往后退了几步,他又自言自语“你的MM还真小,这么短的刀也能戳死你”,随即看到路人甲乙丙丁的窃笑眼神,头顶一片黑线。

    -----------

    14.在超市买东西,排队结帐时前面有一漂亮MM,长得跟奶茶MM一样。当快到轮她时,内MM转过身来,递给我一盒巧克力:这送给你。我心里那个甜啊,把巧克力放购物车后,留下手机号给MM,内MM笑而不语地结帐走了。我一直沉醉在喜悦之中,只是一直觉得哪里不对劲。。。

    -----------

    15.大学期间,一天下晚自习,小猫我闲的蛋疼,就在校园乱逛,恰好看到一对恋人在吵架,女的不断的骂那个男生,男的一直在忍,最后估计把那个男的骂急,那个男的回了一句非常雷人的话,至今都不敢忘记,男的狠狠的说:再吵,再吵我就把你白带吸出来。女的瞬间无语。

    -----------
    16.我们单位是搞工程的,长年在外。
    有个同事谈了N个女朋友,都没有成。

    问他想要什么样的,他说一定要漂亮。
    另一同事说了一句话“干我们这行的,娶个漂亮老婆,自己玩的时间还没有别人多”
    -----------

    17.上火流鼻血,洗净后用纸堵上,点烟连纸一起着了。
    -----------

    18.有一品学兼优的初三男生,长的非常清秀,他是内种连a*片都没看过的乖宝宝,老师同学都非常喜欢他,家境也很不错..因为他的优秀,有三个与他同年级的女生都跟他告白,他都拒绝了..于是,杯具来了
    内仨女的怀恨在心,把他约到宾馆里用药给轮*奸了….据说此男打击太大连学都退了..这能入选人人年度杯具人物么~
    -----------

    19.跟大家说个巨雷人的,听我朋友说的,暂不能证实真假!他有个朋友每次上大号都要找个树枝的小叉叉。我朋友觉得非常奇怪,终于有次伙同他人一起去探索未知。因为是在山区建筑工地做事,条件也不太好,很多人上大号基本都是野外解决。他们就躲在那里看,结果看到那哥们用脚把草踩平然后把弄来的小树叉立在地面,脱裤子蹲下后,掏出
    JJ搭在树叉上。偷看的几个爷们全体暴寒,继而爆发。事后那哥们解释如果没树叉就拖倒地上了。
    -----------

    20.话说初中小猫的班上有个男生A手指受伤,大喊一声“我挂彩啦!”另一男生B马上慈祥的说“都告诉你了不要和狗抢食吃。”A愤然回曰“卧C,我他妈哪知道你爸下嘴那么狠呐”

  • 130. 1、给你讲一个凄惨而又血腥的故事:裸睡。大姨妈。我的故事讲完了。呜呜呜~

    2、本人女,平时形象乖巧。中午的时候看到高中同学在人人上发状态:“前列,前线,前列线。跪求下联!”我一瞬间就回了他:“大姨,大妈,大姨妈!”

    3、一同事说:昨天我在女朋友家准备亲吻我女朋友,她说不行,她大姨妈来了!
    我奇怪:亲吻和大姨妈有什么关系?

    同事说:“我也这么认为的,于是强吻女朋友,结果有一个妇人闯进来,见我就一顿爆K,说我为什么欺负她的外甥女...”
    4、每个女生都曾是上帝身边的天使,因为痴恋凡尘才堕入人间,上帝想念她们却又不能身到凡间,所以他每个月都会派遣大姨妈去探望这些女孩,而女孩们这时就会在身上贴上一对洁白的小翅膀象征她们曾经是个天使。。。

    5、工资就像大姨妈:一个月一次,一周左右就没了。2、工资就像大姨妈:一怀孕就没了。3、工资就像大姨妈:到了退休年龄,立马没了!4、工资就像大姨妈:到时间不来,心就慌了!5、工资就像大姨妈:经常不准时到账!6、工资就像大姨妈:存着觉得涨、流出来的时候又痛。

    6、女士们。。。女士们。。。 大姨妈来了要找小姨妈啊!!!!
    7、老婆:肚子痛,老公!
    老公:大姨妈又来造访了?
    老婆:恩!

    老公:老婆,我肚子也痛呢!
    老婆:难道这次大姨妈是带着大姨爹双双造访俺们?
    老公:啊!?

    8、某天,寝室里一姐姐大姨妈来了。。要我顺便帮她买WSJ。。。
    这姐姐交待偶:要买苏菲那个最长的啊,2米9的那个。。。

    我:啊??姐姐。。。
    这姐姐继续:哦,不不不。。。是290厘米的那个。。。

    姐姐啊,290厘米和2米9有区别么。。。你丫买一WSJ比姚明还高。。。。

  • 131. 方便面涨价了,鸡蛋涨价了,面粉涨价了,汽油涨价了!
    除了工资,身边的一切几乎都涨价了!!

    但是我们依然需要坚强的活下去!
    因为墓地现在也涨价了!
    【兰州小雪强烈要求涨工资,MP也要涨起来】

  • 132. 无比混乱的一场恋情!爆笑!
    “方丈,你到底什么时候娶我?”
    “师太,你我都是出家之人,岂能……”

    “如果你不娶我,我立马宰了这个牛鼻子老道!”
    “**GB,老贼尼!你敢动他,我跟你拼了!”

  • 133. 一男子因创业失败,在家呆了几年没出过门。
    某日,男子却突然被派出所抓走了!

    男子母亲去探监,问儿子:“难道你在家弄那些油墨和纸也犯法吗?”
    男子答道:“我也不知道,但是他们说我印的钱比真钱还像!”

  • 134. 唐僧师徒来到一家餐馆化缘。
    掌柜问道:“请问长老要点什么?”
    唐僧谦逊地说:“别人吃剩下的即可!”

    悟空:“给我来碗剩饭吧。”沙僧:“给我来碗剩汤。”
    八戒:“给我来个剩女吧。”

  • 135. 男子带着番茄、西瓜和草莓去逛街。
    在一个路口番茄被压瘪了,男子大笑:“哈哈,番茄酱!”

    又到了一个路口,西瓜被压瘪了,男子大笑:“哈哈,西瓜汁!”
    到了第三个路口,男子被压瘪了!
    草莓大笑:“哈哈,你这个人渣!!”

  • 136. 儿子放学回家后,神气地对妈妈说:“我是我们班力气最大的学生!”
    妈妈问:“你为什么这样自信呢?”

    儿子解释道:“我们班主任说,我一个人拖了整个班的后腿!”

  • 137. 儿子问妈妈:“为什么称李先生为先人?”
    妈妈说:“因为先人是对死去的人的称呼。”

    儿子疑惑的问:“那对去世的奶奶是不是要叫鲜奶?”

  • 138. 男子给楼上的朋友打电话,打了半天没人接。
    男子把脑袋从窗口伸出去向楼上嚷道:“喂,楼上有人吗?”

    朋友把脑袋从窗口伸出来问:“什么事?”
    男子大怒道:“靠,接电话啊!!”

  • 139. 几台电脑聚在一起斗地主,饮水机也闹着要玩。
    但是每次饮水机都输得很惨,却仍然坚持每天都参加。

    沙发感到很不理解,问椅子:“饮水机天天输,为啥还要玩?”
    椅子不屑的说:“问这种问题,你脑袋也进水了么?”

  • 140. 妻子让他的程序员丈夫去商店买东西。
    妻子吩咐:“去附近商店买些面包,如果有鸡蛋,就买6个回来。”

    半个小时后,丈夫买了6个面包回来。
    妻子大吃一惊:“你为什么买了6个面包?!”
    程序员丈夫回答:“因为他们有鸡蛋啊。”

  • 141. 一个蜗牛过马路,被一只乌龟从身上碾过!
    经过抢救后,蜗牛恢复了知觉。
    记者问蜗牛:“当时事故是怎样发生的?”

    蜗牛回忆道:“我记不起来了,当时一切发生的太快了!”

  • 142. 妻子大骂丈夫:“你真懦弱!那歹徒抢你钱包,你怎么不呼救?”

    丈夫反驳:“你个蠢女人,我敢张嘴吗?你忘了我嘴里还有颗大金牙吗?”

  • 143. 小伙子开着轿车带着美女兜风!
    小伙一只手握着方向盘,另一只手搂着美女。

    半路上,被交警发现了,交警大喊道:“喂!用双手!”
    小伙子回头说:“你当我傻捏是吧?!那样车都翻了!”
    【你们都懂得】

  • 144. 直播ing~~~木有人么,LZ喝醉了都照样直播难道这样都木有人呐
  • 145. 【糗百】小时候,三年级,乡下小学门前有条河,中午天气炎热。
    ========(割一下)

    中午休息时不知道谁鼓动了一下,去河里洗澡,大家一拍即合。但因下午要上课,若是穿着内裤下去,湿了没得换。于是CLL地就跳进河里了。洗了没多久,就看到班主任怒发冲冠地站在岸上…………

    班主任抱着我们的衣服,我们用手捂着小jj跟着他来到了教室。就这样,几个男生一字型站在黑板下面供全班人观赏……惯例这不是GC,女生在下面反正都是用手捂着双眼的,反正有的人指缝漏得稍微大了点就是了……GC是,BH的老师让我们立正,双手要自然地垂在腿上。于是有一个童鞋被老师狠狠地K了一顿。原因就是,老师看到他后,很生气,真的很生气,边打还边说,你还翘起来?翘起来,有木有!!!如有这场景你也遇见过,那你肯定是我失散多年的童鞋。

如何用GCC编译出动态库文件(*.so)


使用下面的makefile

view plaincopy to clipboardprint?
01.CC=gcc  
02.CFLAGS=-Wall   -ggdb   -fPIC  
03. 
04.all:   libfunc  
05. 
06.libfunc:func.o   func1.o  
07.                $(CC)   -shared   -Wl,-soname,libfunc.so.1   -o   libfunc.so.1.1   $ <  
08.                ln   -sf   libfunc.so.1.1   libfunc.so.1  
09.                ln   -sf   libfunc.so.1   libfunc.so  
10. 
11.%.o:%.c  
12.                $(CC)   -c   $(CFLAGS)   -o   $@   $ <  
13. 
14.clean:  
15.                rm   -fr   *.o  
16.                rm   -fr   *.so*  

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/asiainfolf/archive/2011/04/29/6372700.aspx

变长参数的函数写法


//*****************************************************************************************
//                Template No. SWF0012   Template Version No. 04.04.00
//
//*****************************************************************************************
//   FUNCTION NAME    : PrintLog()
//
//————————————————– PURPOSE —————————————–
//
//     Print a text in log file
//—————————————- $$ REQUIREMENTS $$ —————————————-
//
//  Format: $${TAG} R[#][Prod. ID]:Specification Path
//
//               $$:    ISGcq00622453
//                TAG:    [APP_GEN]
//              R #:    R[29]
//            Prod.ID: 
//        Spec. Path:   /vob/
//
//
//
//——————– PSEUDO CODE / DETAILED FUNCTION DESCRIPTION ——————-
//
//            Creates a log file with the phone info
//
//———————————————— REVISIONS ——————————————
// Date       Name                 Tracking #     Description
// ———  ——————-  ————-  ——————————
// 26ARP2011  Feng Liu             ISGcq00622453  Initial Creation
//*****************************************************************************************************
//
//—————————————– FUNCTION DEFINITION —————————————
void FeatureDisableDlg::PrintLog(CString& message)
{
    if(APPLICATION_VERSION[0] != ‘R’)
    {
        try
        {
            //verify if it is already opened
            if (m_logFile.m_hFile == CFile::hFileNull)
            {
                if(m_logFile.Open(LOG_FILE_NAME,
                        CFile::modeCreate | CFile::modeNoTruncate | CFile::modeWrite))
                {
                    m_logFile.SeekToEnd();
                    CString log;
                    log.Format("=====================================================\n",log);
                    time_t rawtime;
                    time ( &rawtime );
                    char timeStr[0x100];

                    if(!ctime_s(timeStr, 0x100, &rawtime)) {
                        log.Format("Execution date: %s", timeStr);
                    } else {
                        log.Format("Execution date: %s", "Can not read the time.");
                    }

                    m_logFile.Write(log, log.GetLength());
                }
            }
            m_logFile.Write(message, message.GetLength());
        }
        catch (…)
        {
        }
    }
}void FeatureDisableDlg::PrintLog(const char* message, …)
{
//  if(APPLICATION_VERSION[0] != ‘R’)
  if(1)
  {
      va_list list;
      va_start(list, message);
      char szBuffer[MAX_OUTPUT_TEXT_SIZE];
      _vsnprintf_s(szBuffer, sizeof(szBuffer), message, list);

      CString log(szBuffer);
      PrintLog(log);

      va_end(list);
  }
}

发表于 @ 2011年04月26日 10:13:00 | 评论( 0 ) | 编辑| 举报| 收藏

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/asiainfolf/archive/2011/04/26/6363397.aspx