Time of Update: 2015-04-11
標籤: #include <stdio.h> #include <pthread.h> #include <unistd.h> #include <stdlib.h> static int value = 0; pthread_mutex_t mutex; void* func(void* args) { while(1)
Time of Update: 2015-04-11
標籤:c語言 字串 指標 strchr 尋找字元 #include<stdio.h>#include<string.h>const char *my_strchr(char const *str,int ch){ int i=0; for(;str[i]!='\0';i++)
Time of Update: 2015-04-11
標籤:c語言 字串 尋找字元 指標 strrchr #include<stdio.h>#include<string.h>const char *my_strrchr(char const *str,int ch){ int i=0,len=0; len=strlen(str);
Time of Update: 2015-04-11
標籤:c語言 my_strchr my_strrchr 字元尋找 while語句 my_strchr()函數在字串str中尋找字元ch第一次出現的位置,原型如下char *strchr( char const *str,int ch);my_strrchr()函數在字串str中尋找字元最後一次出現的位置,原型如下char
Time of Update: 2015-04-11
標籤:發一波福利,作業系統的實驗內容,大家可以借鑒一下,不過My Code可能也存在一定的問題。因為在一開始老師是一節一節課教的,當時並不知道後面還會用輸入輸出重新導向,管道等一系列問題,我的興趣也不在這個方面也沒有預習,所以一來代碼寫的比較醜,二來沒有對於代碼進行一個合理的規劃,寫的也比較亂。代碼暫時實現到輸入輸出重新導向,之後可能會加上管道處理等方面的程式。如果讓我重新寫這段代碼應該會規劃的更好一點吧/*author:Samsons date:2015.4.10*/#include
Time of Update: 2015-04-11
標籤:模板 c#委託 c++11 vector 這篇文章本來是前天發的,但是不知道為什麼CSDN上沒有顯示,可能是我沒發,記錯了。又由於沒有留底稿,還是重寫一下吧,也為知己不留底稿的惡習做個標記。
Time of Update: 2015-04-11
標籤:http://blog.csdn.net/haoelC++ 虛函數表解析 - 陳皓專欄 【空穀幽蘭,心如皓月】 - 部落格頻道 - CSDN.NEThttp://blog.csdn.net/haoel/article/details/1948051/ #include<iostream>using namespace std;//基類class Base {public:virtual void f() { cout << "Base::f"
Time of Update: 2015-04-11
標籤:同http://www.cnblogs.com/MichaelLee2015/p/4403005.html int main(){ int h;//表示菱形的高的一半,也就是使用者輸入的數 printf("請輸入xxx我也不知道這裡怎麼說\n");//提示使用者輸入一個數 scanf("%d",&h);//把使用者的輸入讀取進來並存到h中 //上半部分 //思路:我們想輸出菱形,要考慮每一行的星號前面有幾個空格,每一行有幾個星號
Time of Update: 2015-04-11
標籤:同http://www.cnblogs.com/MichaelLee2015/p/4402993.html #include <stdio.h>int main(){ int num;//表示輸入的數 printf("請輸入一個正整數,這個程式將判斷此數是否為完全數\n");//提示使用者輸入 scanf("%d",&num);//擷取輸入的數 int sum = 0;//表示最後所有因子的和
Time of Update: 2015-04-11
標籤:1. 預設成員函數Class Empty{ public: Empty(); // 預設建構函式 Empty( const Empty& ); // 拷貝建構函式 ~Empty(); // 解構函式 Empty& operator=( const Empty& ); // 賦值運算子 Empty* operator&(); // 取址運算子 const Empty*
Time of Update: 2015-04-11
標籤:背景知識在開始之前先說一下符號表,這個編譯器中的東西。下面看一下百度百科中的描述:符號表是一種用於語言翻譯器中的資料結構。在符號表中,程式原始碼中的每個標識符都和它的聲明或使用資訊綁定在一起,比如其資料類型、範圍以及記憶體位址。符號表在編譯器工作的過程中不斷收集、記錄和使用來源程式中一些文法符號的類型和特徵等相關資訊。這些資訊一般以表格形式儲存於系統中。如常數表、變數名表、數組名表、過程名表、標號表等等,統稱為符號表。對於符號表組織、構造和管理方法的好壞會直接影響編譯系統的運行效率。還有一
Time of Update: 2015-04-11
標籤:Background背景C++ is the main development language used by many of Google‘s open-source projects. As every C++ programmer knows, the language has many powerful features, but this power brings with it complexity, which in turn can make code more bug-
Time of Update: 2015-04-11
標籤:首先開啟visual c++6.0,運行c++選擇File>New功能表命令,在彈出的視窗選定Files從Files中選擇c++source File,在右側輸入來源程式名Hello,World 選擇檔案儲存的位置,點擊確認在編輯視窗輸入代碼#include <iostream.h>void main(){ cout<<"Hello,World!"<<endl;}
Time of Update: 2015-04-11
標籤:interface IMyList<T>{ // O(1) // Add an item at the beginning of the list. void AddFirst(T item); // O(1) // Add an item at the end of the list. void AddLast(T itme); // O(1) // Remove the item from the list. If
Time of Update: 2015-04-11
標籤: 第1章 C#簡介1.1 .net framework的含義1.1.1 .net framework的內容 1.1.2 使用.net framework編寫應用程式 1.2 C#的含義 7 1.2.1 用C#能編寫什麼樣的應用程式第2章 編寫C#程式 2.1 開發環境 2.1.1 visual studio 2010 目前,推薦使用 Visual Studio Community 2013 社區版進行學習,該版本免費。 2.1.2 visual
Time of Update: 2015-04-11
標籤:客服端: 在A項目下面 建立一個 JsonpClient.aspx頁面,代碼如下: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JsonpClient.aspx.cs" Inherits="WebFrom.JsonpClient" %><!DOCTYPE html><html xmlns="http://www.w3.
Time of Update: 2015-04-11
標籤:前言: 寫了這麼久程式,今天才知道的一個基礎知識點,就是程式入口 static void Main(string[] args) 裡的args參數是什麼意思 ?慚愧...需求: 點擊一個button,啟動一個exe程式,並對其傳遞參數。 代碼如下: private void btnStart_Click(object sender, RoutedEventArgs e) { var rootPath =
Time of Update: 2015-04-11
標籤: 由於項目中需要使用到序列化相關的技術,從而想到是否可以使用C#中的特性,特此花了近兩小時學習了一下。 對於特性的學習,主要參考了兩篇博文,特此感謝。以下附連結: http://www.cnblogs.com/luckdv/articles/1682488.html http://www.cnblogs.com/liuxinxin/articles/2265672.html 在學習的過程中,一直以為特性對於元素可以起到什麼實質性的影響,例如系統內建的特性,Obsole
Time of Update: 2015-04-11
標籤:.net framework random 遍曆 asp.net c# 從n個數中隨機選取m(m<=n)個不重複的數並且對選取的m個數進行排序
Time of Update: 2015-04-11
標籤:目錄:資訊採集入門系列目錄 下面記錄的是我自己整理的C#請求頁面核心類,主要有如下幾個方法1.HttpWebRequest Get請求獲得頁面html2.HttpWebRequest Post請求獲得頁面html3.類比登入獲得cookie內容4.類比登入獲得cookie字串5.代理的設定6.利用webbrowser 擷取js產生的頁面7.為webbrowser設定cookie,類比登入8.每個方法的使用demo+demo下載 HttpWebRequest