Debian on VirtualBox下共用win7檔案夾設定

借用:http://www.dbasoul.com/2010/695.html1. 安裝增強功能包(Guest Additions)參考文檔:Debian下安裝VirtualBox增強功能2. 設定共用資料夾重啟完成後點擊”裝置(Devices)” -> 共用資料夾(Shared Folders)菜單,添加一個共用資料夾,選項固定和臨時是指該檔案夾是否是持久的。共用名稱可以任取一個自己喜歡的,比如”share”,盡量使用英文名稱。 3.

makefile檔案的兩種常用書寫格式(搜尋路徑式+遞迴式)

  首先,寫一個測試代碼,很簡單的加減程式://path: cacu/main.c//path: cacu/main.c#include <stdio.h>#include "add.h"#include "sub.h"int main(){ int a=10,b=12; float x=1.23456,y=9.87654; printf("int a+b IS:%d\n",add_int(a,b)); printf("int a-b

使用遞迴方法求階乘

[互動百科]:遞迴演算法 - 概述遞迴做為一種演算法在程式設計語言中廣泛應用.是指函數/過程/子程式在運行過程式中直接或間接調用自身而產生的重入現像.程式調用自身的編程技巧稱為遞迴(

追趕法解方程

//追趕法解方程組Pursue.cpp#include <iostream>#include <vector>#include <algorithm>using namespace std;class SolutionEquations{private: vector<double> a; vector<double> b; vector<double> c; vector<double>

產生隨機的排列

產生隨機的排列:  permute()函數的功能是:打亂數組的順序  Random()函數的功能是:產生一個0 —> n-1的隨機數  swap()函數的功能是:交換數組裡第i個和第j個元素的值//功能:產生隨機的排列#include <stdio.h>#include<stdlib.h>//聲明函數void permute(int array[], int n);int Random(int n);void swap(int A[], int i, int j);

套介面和I/O通訊

  幾個I/O相關的函數:#include <unistd.h>ssize_t read(int fd, void *buf, size_t count);ssize_t write(int fd, const void *buf, size_t count);int close(int fd);  為了實現通訊,fd可以是套介面(見linux的套介面和管道)的描述符。使用樣本如下: #include <stdio.h>#include <stdlib.h>#

gdb常用命令的用法

  今天花了幾分鐘來學習使用gdb偵錯工具,有過以前使用IDE偵錯工具的基礎,僅僅只需要花幾分鐘就能夠很快的學會使用gdb命令來偵錯工具了。這裡結合執行個體來說明怎麼使用gdb命令。首先寫一個簡單的程式,然後載對程式進行調試。    用於調試的樣本程式:範例程式碼 1 #include <stdio.h> 2 3 int sum(int a, int b) 4 { 5 int result; 6 result = a + b; 7 return

【轉載】git/github初級運用自如

轉載自:http://www.cnblogs.com/fnng/archive/2012/01/07/2315685.html一 . 

【轉載】解決git Push時請求username和password,而不是ssh-key驗證

轉載自:https://blog.lowstz.org/posts/2011/11/23/why-git-push-require-username-password-github/之前開始用github時是在ubuntu下按著官方的新手指南搞定的。但最近一直在用fedora,所以也想在fedora下用github,配置的時候很順利,就是在git push的每次都需要輸入username和password,而我是配置好公開金鑰登陸的。用ssh -T git@github.com

求三角形外接圓周長

#define PAI 3.1415926#include <stdio.h>#include <math.h>//求三角形外接圓周長//三角形三邊a,b,c,半周長p(p=(a+b+c)/2) //面積:S= √[p(p - a)(p - b)(p - c)]//外接圓半徑 R=abc/4S //外接圓半徑 R=abc/4√[p(p - a)(p - b)(p - c)] //外接圓周長C=2*PAI*Rfloat S(float x1,float y1,float

JLabel顯示圖片,及其它使用方法。。。實現九九乘法表

//JLabel的使用,顯示九九乘法表,並使用JLabel載入背景圖片,視窗大小固定public MyFrame extends JFrame{public MyFrame() { String str=""; JLabel jL; setLayout(null); jL = new JLabel(); jL.setText("九九乘法表"); add(jL); jL.setBounds(20

根據公式計算e

//根據公式計算e////e = sum(i!); i= 0->n;//#include <stdio.h>int Factorial(int n){if (n <= 1) {return 1; }return n*Factorial(n-1);}double Calculate_e(int n){double sum = 0;for (int i = 0; i <= n; i++) { sum +=

win7使用jar打包代碼,並實現雙擊開啟jar檔案

1.使用jar打包代碼    jar -cvfm my.jar myframe.config myframe解釋: my.jar是在目前的目錄下將要產生的jar檔案,名字可以自取,但是尾碼必須是jar。         myframe.config是在目前的目錄下建立的設定檔(需在使用該命令前建立該檔案),檔案可以使txt檔案格式                               內容如下:                                           

類比公交報站

#include <stdlib.h>#include <iostream>using namespace std;int GetAddressMessage();//擷取公交地址訊息 void SetAddress();//設定公交地址 void Output();//輸出公交地點 void SetMessage(int busmessge);int NumBusAddress;//公交地點編號:1/2/3/4/5/6/7/8/9 char *

ACM/ICPC題目輸入情形及其處理方法

情形(1)輸入資料檔案中,第一行資料標明了測試資料的數目;處理方法://kase表示測試資料數目int i, kase;scanf("%d", &kase);for (i = 1; i <= kase; i++){//處理低 i 個輸入}...情形(2)輸入資料檔案中,有標明輸入結束的資料;處理方法://假定每組測試資料包含兩個資料:m,n;//0 0表示結束int m, n;while (1){ scanf("%d %d", &m, &n);if (m ==

列印菱形的笨方法

演算法:1.x=3,y=1;2.列印第一行,x個空格,y個星;3.x=x-1;y=y+2;4.while 未到第五行 goto 2;否則goto 5;5.x=x+1;y=y-2;6.列印到最後;代碼:#include <iostream>using namespace std;int main(){int n=7;int x=3, y=1;int i,j,k;for (i=1; i<4; i++) {for (j=1; j<=x; j++) {

沒有找到MSVCR80D.dll的解決方案【轉載】

【轉載】:http://hi.baidu.com/silyt/blog/item/9f8479add4a2f50c4b36d6a7.html在VS 2005中建立Win32工程時(以VS 2005中文版為例),你可能會遇到這樣的運行錯誤:“沒有找到MSVCP80D.dll,因此這個應用程式未能啟動。重新安裝應用程式可能會修複此問題。”(還可能是其它幾個類似的檔案:MSVCR80D.dll、MSVCM80D.dll)。對於VS2005新手,可能遇到的第一個問題便是此問題。

假票問題(Fake Ticket)

View Code #include <stdio.h>#include <string.h>int main(){int m, n;int k = 0;int ticket[10001];while (scanf("%d %d", &m, &n)) {int i = 1;if (!m && !n) {break; } memset(ticket, 0,

數字階梯(Number Steps)

Number StepsTime Limit: 1 Second      Memory Limit: 32768 KB Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the figure. For example, 1, 2, and 3 has been written at points (1,1), (2,0), and (3,

還在為cximage編譯問題而發愁嗎?

聲明:本部落格的文章可以隨意轉載,但請註明出處:http://www.cnblogs.com/hanxi/,謝謝   從網上找了好多資料,都是差不多,編譯->串連->運行......網上的資料好像都沒說清楚,搞得我弄了一上午才弄出了。下面我就分享下我的步驟吧,希望能讓各位網友理解:   1.下載原始碼:http://www.codeproject.com/bitmap/CXImage.asp  2.使用vc6.0開啟工程檔案:CxImgLib.dsw , 選擇功能表列上的"組建"-&

總頁數: 61357 1 .... 5719 5720 5721 5722 5723 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.