原创 十進制轉二進制問題“棧”剖析

大家應該都做過這麼一個問題吧,將任意的十進制數轉換成相應的二進制或者八進制或者十六進制,這個問題不難,可以用多種方法解決,今天,筆者就三種解法剖析方法其中對棧思想的應用。先貼出代碼:1.遞歸操作 /*the function of com

原创 C語言實現的 itoa(int num, str *temp, int radix) 與 atoi(str *temp)

/* * file name : my_itoa.c * function : achieve itoa and atoi * date : 2012-5-3 * modify : 2012-5-7 * aut

原创 轉換linux文本

解決:1)在windows下轉換:    利用一些編輯器如UltraEdit或EditPlus等工具先將腳本編碼轉換,再放到Linux中執行。轉換方式如下(UltraEdit):File-->Conversions-->unix->do

原创 百度筆試題---某文本段,包含數字,空格,逗號,句號。設計統計句子量函數

/* * file name : calculate_sentence.c * function : calculate the number of sentence * date : 2012-5-4 * autho

原创 c++ c#混合編程

c++代碼: #include "stdafx.h" #include <windows.h> extern   "C" _declspec(dllexport)  void fun(); //輸出函數聲明 #ifd

原创 創建一個dll

extern   "C" _declspec(dllexport)  void fun(); void _declspec(dllexport) fun() { MessageBoxW(NULL,TEXT("hello!!!"), TE