原创 c++中如何將int轉換成string,而不是char[]

#include <iostream> #include <string> using namespace std; int main() {  int n = 65535;  char t[256];  string s;  spri

原创 信息copy

http://blog.csdn.net/arau_sh/article/details/12030951

原创 C++ 頭文件搜索方式

預處理#include時,如果#include使用"",就從當前項目目錄開始搜索頭文件;如果使用<>,就從系統include目錄開始搜索頭文件 以下說法哪些是正確的:A A. 對於#include <filename.h>,編譯器僅搜索標

原创 C++指針參數問題討論

void GetMemory(char **p, int num) { *p = new char [num]; *p ="hjhjkh"; } void GetMemory1(char *p, int num) { //

原创 關於隱藏轉換的代碼

#include "stdafx.h" #include <iostream> using namespace std; class A { public: explicit A(int a=0){c

原创 關鍵字:typeid

參考:學習 原文:http://blog.csdn.net/kimoli/article/details/6335360 轉載網址:http://www.cppblog.com/smagle/archive/2010/05/14/1152

原创 通信書籍

現代通信原理 3GPP長期演進(LTE)技術原理與系統設計 完美時序 無線通信基礎 大話處理器 大話無線通行 數字通信技術 LET-UMTS長期演進理論與實踐 http://www.3gpp2.org/ http://www.3gpp.o

原创 今天2012-12-3開始寫博客,人生的軌跡

1. 給自己留下點什麼。 2. 希望能天天記錄下自己的人生軌跡 3.走上一條技術創新之路,自勉!

原创 Unix 輸入和輸出

NIX系統shell使用文件描述符0與進程的標準輸入相關聯,文件描述符1與標準輸出相關聯,文件描述符2與標準出錯相關聯。這是各種shell以及很多應用程序使用的慣例,而與UNIX內核無關,如果不遵守這種慣例,那麼很多UNIX系統應用程序就

原创 unix dirent.h

typedef int s32; typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long

原创 bad_cast

首先學習一下bad_cast 在微軟的解釋:The bad_cast exception is thrown by thedynamic_cast operator as the result of a failed cast to a

原创 C++學習之開始

首先從閱讀別人的博客開始!先積累知識, 關鍵字開始;asm : C++的關鍵字 asm 摘自百度問題: 微軟詳述: __asm關鍵字啓動內聯彙編並且能寫在任何c/c++合法語句之處.它不能單獨出現.它必須接彙編指令、一組被大括號包含的指令

原创 dynamic_cast

Converts the operand expression to an object of type type-id. 將操作數 expression 轉換爲類型type-id對象。           dynamic_cast

原创 linux下文件一個操作代碼

主要功能是打印出文件的信息   #include <fstream> #include <vector> #include <map> #include <string> #include <algorithm> #include <io