摘要:
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.Input and OutputThe input begins with a single positive integer on a line by itself ... 阅读全文
posted @ 2010-10-25 22:25
hailong
阅读(555)
评论(0)
推荐(0)
摘要:
合抱之木,生於毫末;九層之臺,起於累土;千里之行,始於足下。加總數字:無論電腦再怎麼強,還是得一個一個數字累加。複製字串無論電腦再怎麼強,還是得逐字複製。選擇排序法( Selection Sort )把第一小的數值找出來,放在第一個位置;再把第二小的數值找出來,放在第二個位置。一次找一個數字,如此下去就可把所有數值按照順序排好了印出直角三角形 阅读全文
posted @ 2010-10-25 20:26
hailong
阅读(95)
评论(0)
推荐(0)
摘要:
#include<iostream>#include<string>#include<vector>#include<math.h>using namespace std;string sum(string a,string b){int n1=a.length(),n2=b.length();int n=n1>=n2?(n1+1):(n2+1... 阅读全文
posted @ 2010-10-25 15:37
hailong
阅读(183)
评论(0)
推荐(0)

浙公网安备 33010602011771号