- 博客(4)
- 收藏
- 关注
原创 C++ Primer Plus
Listing 4.20#include #include #include #include int main(){ string h; using namespace std; char animal[20] = "bear"; // animal holds bear const char * bird = "wren"; // bird hol
2015-05-13 10:55:17
739
原创 Accelerated C++ 笔记
Exercise 1-2Are the following definitionsvalid? Why or why not?const std::string exclam = "!";const std::string message = "Hello" + ", world" + exclam;SolutionThe first line is valid because
2015-05-09 22:43:03
239
原创 02-线性结构1. 一元多项式求导 (25)
设计函数求一元多项式的导数。(注:xn(n为整数)的一阶导数为n*xn-1。)输入格式:以指数递降方式输入多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空格分隔。输出格式:以与输入相同的格式输出导数多项式非零项的系数和指数。数字间以空格分隔,但结尾不能有多余空格。注意“零多项式”的指数和系数都是0,但是表示为“0 0”。输入样例:3 4 -5 2 6 1
2015-04-28 22:41:10
424
原创 01-复杂度1. 最大子列和问题(20)
#include#include#includeint main(){ int i, size, *array; int temp = 0; int tempMax = 0, Max = 0; scanf("%d", &size, 2); if (size>0){ array = (int *)malloc(size*sizeof(int)); for (i = 0;
2015-04-28 14:52:20
253
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人