Time of Update: 2018-12-05
使用Microsoft Visual C++ 6.0 編譯 OpenSSL 1.0 的時候。提示找不到 ML.exe經查詢 ML.exe乃是彙編編譯器。於是下載 MASM32 V10 複製其ML.exe到 VC98/BIN目錄,居然編譯不能通過。。。 莫非組合語言版本太低?於是本機剛好安裝有Microsoft Visual Studio 2010 複製其 bin/ml.exe 到vc6目錄下,編譯順利通過。當然 如果您直接使用 VC10 或者 VC9 則無需移花接木了。 附編譯方法:perl
Time of Update: 2018-12-05
好久沒有更新部落格了,今天就將我之前寫的一些代碼陸續發上來。json.h#include<iostream>#include <string>using namespace std;class CJson{public:enum TYPE{STRING,LONG,ARRAY,OBJECT,BOOL,NAMEDOBG,STRINGA,LONGA,ARRAYA,OBJECTA,BOOLA,NAMEDOBGA};typedef struct
Time of Update: 2018-12-05
一:C標準庫中的 assert()
Time of Update: 2018-12-05
文章目錄 好久沒有更新文章了,不知不覺發覺自己已經工作,感慨萬千啊,不過,廢話少說,還是發一篇自己的最近寫的一個雜湊表吧,寫的不好,好多問題沒有得到妥善解決,還望大家多多指教 本文有不足之處,還望大家多多指正。
Time of Update: 2018-12-05
typedef struct CvPoint{ int x, int y}CvPoint; //點是否在多邊形裡面bool PtInPolygon(CvPoint p,CvPoint* ptpolygon,int nCount){ int nCross=0; for (int i=0;i < nCount;i++) { CvPoint p1=ptpolygon[i]; CvPoint p2=ptpolygon[(i + 1) %
Time of Update: 2018-12-05
使用案例圖就是由主角、用例以及它們之間的關係構成的圖。該圖說明了用例模型中的關係。使用案例圖展示了用例之間以及同用例參與者之間是怎樣相互聯絡的。使用案例圖用於對系統、子系統或類的行為進行可視化,使使用者能夠理解如何使用這些元素,並使開發人員能夠實現這些元素。詳細情況請點擊我類圖(Class diagram)是顯示了模型的靜態結構,特別是模型中存在的類、類的內部結構以及它們與其他類的關係等。類圖不顯示暫時性資訊。詳細情況請點擊我包圖詳情請點擊我為何要建立包圖請點擊我活動圖表(activity
Time of Update: 2018-12-05
using System;using System.Runtime.InteropServices;using System.Management;namespace Hardware{ /// <summary> /// Hardware_Mac 的摘要說明。 /// </summary> public class HardwareInfo { //取機器名 public string GetHostName() { return
Time of Update: 2018-12-05
枚舉和結構體枚舉格式: enum 枚舉類型 { 符號1,符號2....} 預設情況下編號從0開始,他代表第一個元素,以後每個元素編號遞增1,可以重寫這個賦值的過程enum 枚舉類型{符號1=1,符號2=2,。。。。}聲明一個枚舉類型時,枚舉直接量將獲得intleixign的值即基礎類型預設的時int,但是亦可以使枚舉類型基於一種不同的基礎資料類型(byte,sbyte,int,uint,long,ulong)eg: enum
Time of Update: 2018-12-05
一、console.write()與console.writeline()的區別 前者輸出不換行。二、console.read()與console.readline()的區別1’Console.Read() Console.ReadLine()方法都是從鍵盤讀入資訊,唯一不同的就是Console.Read() 方法用於獲得使用者輸入的任何值(可以是任何的字母數字值)的ASCII值.Console.ReadLine()呢?用於將獲得的資料儲存在字串變數之中.2’ Console.Read(
Time of Update: 2018-12-05
using System;using System.Management;namespace Soyee.Comm{/// <summary>/// Computer Information/// </summary>public class Computer{ public string CpuID; public string MacAddress; public string DiskID; public string IpAddress;
Time of Update: 2018-12-05
使用(C++庫)fstream讀寫檔案原創+收藏//awzzz@2002//入門計劃->使用(C++庫)fstream讀寫檔案//APO->using fstream.//accidence project of using fstream.(c++ iostream library)/* Reference: http://www.cplusplus.com/ref/iostream/fstream/ Description fstream class provides a
Time of Update: 2018-12-05
C#中的delegate其實就相當於delphi中的方法類,是C#中事件處理的基礎,如下例:using System;// Declare delegate -- defines required signature:delegate void SampleDelegate(string message);class MainClass{ // Regular method that matches signature: static void
Time of Update: 2018-12-05
const是用於保護程式的健壯性,減少程式隱患。const的用法比較複雜,總結起來又分為以下兩種:1:在定義變數時使用: a: const int a=100; 最簡單的用法,說明變數a是一個常變數; b: int const b=100; 與a功能相同; c: const int *a=&b; 指向常數的指標,即指標本身的值是可以 改變的,但指向的內容是不能改變的; d: int const *a=&b; 與c功能相同; e: int *
Time of Update: 2018-12-05
C、傳統 C++#include <assert.h> //設定插入點#include <ctype.h> //字元處理#include <errno.h> //定義錯誤碼#include <float.h> //浮點數處理#include <fstream.h> //檔案輸入/輸出#include <iomanip.h> //參數化輸入/輸出#include
Time of Update: 2018-12-05
StreamWriter writer = new StreamWriter("D:\a.doc”, false, Encoding.GetEncoding("gb2312")); StringBuilder builder = new StringBuilder(); builder.Append("<table><tr>"); builder.Append("<td
Time of Update: 2018-12-05
protected void Button1_Click(object sender, EventArgs e) { string[] qian = new string[52]{"Ahe", "2he", "3he", "4he", "5he", "6he", "7he", "8he", "9he", "10he", "Jhe", "Qhe", "Khe", "Ah","2h","3h","4h","5h","6h","7h","8h","9h","1
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace 映像格式轉換工具{ public partial class Form1 : Form { public Form1() {
Time of Update: 2018-12-05
public void sendMail(string input) { strHost = "smtp.163.com"; //SMTP伺服器位址 strAccount = "itjy1127"; //SMTP服務帳號 strPwd = "yujie1127"; //SMTP服務密碼 strFrom = "itjy1127@163.com"; //發送方郵件地址
Time of Update: 2018-12-05
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using
Time of Update: 2018-12-05
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace SureKAM.SPM.Portal.WebSite{ public partial class AccessDenied : System.Web.UI.Page { private