Time of Update: 2018-12-05
silverlight之案例小遊戲剪刀石頭布,一個簡單的小遊戲。用一個簡單的小遊戲,說明wp7中開發的綜合應用。先貼個遊戲演算法using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WpCutGame{ public static class GameHelper { public static string GetImagePath()
Time of Update: 2018-12-05
#include <iostream>#include<cmath>using namespace std;class Rectangle{public: Rectangle(double x1=0,double y1=0,double x2=0,double y2=0); void input(); double area(); Rectangle operator+(Rectangle &); friend ostream
Time of Update: 2018-12-05
/* Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:text.cpp * 作 者: 胡穎 *完成日期:2013年5月26日 * 版 本 號:v1.0 * * 輸入描述:無 * 問題描述:略 * 程式輸出: *
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 作者:邱學偉 * 完成日期:2012 年11月15日 * 版本號碼:v1.0 * * 輸入描述:無 * 問題描述:輸出三角形形狀的星號圖* 程式輸出:輸出三角形形狀的星號圖*/ #include <iostream>using namespace std;void printstars(int m){ //定義一個能輸出一行m個星號的函數for(int j=
Time of Update: 2018-12-05
/* Copyright (c) 2012, 煙台大學電腦學院* All rights reserved.* 檔案名稱:text.cpp* 作 者: 胡穎*完成日期:2013年6月4日* 版 本 號:v1.0** 輸入描述:無* 問題描述:設計一個抽象類別CSolid,含有兩個求表面積及體積的純虛函數。設計個衍生類別CCube、CBall、CCylinder,分別表示正方體、球體及圓柱體。在main()函數中,定義基類的指標p(CSolid
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 作者:邱學偉 * 完成日期:2012 年11月16日 * 版本號碼:v1.0 * * 輸入描述:無 * 問題描述:輸出三角形形狀的$號圖 * 程式輸出:輸出三角形形狀的$號圖 */ #include <iostream>using namespace std;int main(){void printchs(char c,int m);
Time of Update: 2018-12-05
/* Copyright (c) 2012, 煙台大學電腦學院* All rights reserved.* 檔案名稱:text.cpp* 作 者: 胡穎*完成日期:2013年6月4日* 版 本
Time of Update: 2018-12-05
/* Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:text.cpp * 作 者: 胡穎 *完成日期:2013年6月4日 * 版 本 號:v1.0 * * 輸入描述:無 * 問題描述:略 * 程式輸出:輸出定義的幾個幾何體的面積和.*
Time of Update: 2018-12-05
/* * 程式的著作權和版本聲明部分 * Copyright (c)2012, 煙台大學電腦學院學生 * All rightsreserved. * 檔案名稱: fun.cpp * 作者:邱學偉 * 完成日期:2012 年11月17日 * 版本號碼: v1.0 * 對任務及求解方法的描述部分 * 輸入描述:函數自變數x * 問題描述:求函數的值:當x<0.3 時,f(x)=0; 當0.3≤x≤0.8 時,f(x)=(x-0.3)/(0.8-0.3);當x>0.8 時,f(x)=1;
Time of Update: 2018-12-05
一球從M米高度自由下落,每次落地後返回原高度的一半,再落下。它在第N次落地時反彈多高?共經過多少米?保留兩位小數#include <iostream>#include<iomanip>using namespace std;void distance(double,int);int main(){ double M; int N; cin>>M>>N; distance(M,N); return 0;}void
Time of Update: 2018-12-05
求三角形面積// xxxxDlg.cpp : implementation file//#include "stdafx.h"#include "xxxx.h"#include "xxxxDlg.h"#include "Cmath"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif///////////////////////////////////////////
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:test.cpp * 作者:邱學偉 * 完成日期:2012 年12月12日 * 版本號碼:v1.0 *
Time of Update: 2018-12-05
#include <iostream>using namespace std;int main(){ int num1,num2,temp,a; cout<<"請輸入兩個正整數:"<<endl; cin>>num1>>num2; if(num1<num2) { temp=num1; num1=num2; num2=temp; }
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:test.cpp * 作者:邱學偉 * 完成日期:2012 年12月12日 * 版本號碼:v1.0
Time of Update: 2018-12-05
上機目的:體驗窮舉法上機內容:利用for語句和if語句解決實際問題程式:/** Copyright (c) 2012, 煙台大學電腦學院* All rights reserved.* 作者:邱學偉* 完成日期:2012 年11月8日* 版本號碼:v1.0** 輸入描述:無* 問題描述:體驗窮舉法、利用其解決實際問題。* 程式輸出:百錢買百雞的種類*/#include <iostream>using namespace std;int main(){int x,y,z; /
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:test.cpp * 作者:邱學偉 * 完成日期:2012 年12月12日 * 版本號碼:v1.0 *
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:二維數組.cpp * 作 者: 邱學偉 * 完成日期:2012 年 12 月 7 日 * 版 本 號:v1.0 * * 輸入描述:無 * 問題描述:定義二維數組,維數組賦初值、輸入值、更改值,按各種方法輸出 * 程式輸出:略 * 問題分析:略 * 演算法設計:略 */ #include <iostream>using
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:test.cpp * 作者:邱學偉 * 完成日期:2012 年12月12日 * 版本號碼:v1.0 *
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:帶姓名的成績單.cpp * 作 者: 邱學偉 * 完成日期:2012 年 12 月 8 日 * 版 本 號:v1.0 * * 輸入描述:無 * 問題描述:排序,字串數組的應用 * 程式輸出:略 * 問題分析:略 * 演算法設計:略 */ #include <iostream>#include
Time of Update: 2018-12-05
/* * Copyright (c) 2012, 煙台大學電腦學院 * All rights reserved. * 檔案名稱:test.cpp * 作者:邱學偉 * 完成日期:2012 年12月12日 * 版本號碼:v1.0 *