1,请用最少空间和最省时间的两种方法对数组Data[N]排序。
   void sort1(int Data[N],int num)
   void sort2(int Data[N],int num)
2,怎样使一个Windows中的Button变成灰色,不能选中?
3,在Windows中如何打开串口设备,并且对其读写数据?
4,请解释PortIO与MemoryIO,它们有何区别?
5,什么是中断?中断处理程序一般有什么要求?本人快毕业了,连计算机基础都没搞清楚,心中惭愧!!准备放弃计算机做销售去~~~~大家给个意见!

解决方案 »

  1.   

    HANDLE CreateFile(
      LPCTSTR lpFileName,          // pointer to name of the file
      DWORD dwDesiredAccess,       // access (read-write) mode
      DWORD dwShareMode,           // share mode
      LPSECURITY_ATTRIBUTES lpSecurityAttributes,
                                   // pointer to security attributes
      DWORD dwCreationDisposition,  // how to create
      DWORD dwFlagsAndAttributes,  // file attributes
      HANDLE hTemplateFile         // handle to file with attributes to 
                                   // copy
    );
    打开串口
      

  2.   

    2:GetDlgItem(BUTTONID)->EnableWindow(FALSE);
      

  3.   

    PortIO是寄存器,MemoryIO是内存?我猜的。