自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

rocvfx的博客

Goals determine what you're going to be.

  • 博客(21)
  • 收藏
  • 关注

原创 cpp 7.14

7.14#include#includeusing namespace std;const int SIZE = 5;void display(const string sa[], int n);int main(){ string list[SIZE]; cout << "Enter your " << SIZE << " favorite astronomical sigh

2016-11-30 12:55:34 247

原创 cpp 7.11

7.11#includestruct travel_time{ int hours; int mins;};const int Mins_per_hr = 60;travel_time sum(travel_time t1, travel_time t2);void show_time(travel_time);int main(){ using namespace

2016-11-28 09:40:09 232

原创 cpp 7.9

7.9#includeunsigned int c_in_str(const char*str, char ch);int main(){ using namespace std; char mmm[15] = "minimum"; char*wail = "ululate"; unsigned int ms = c_in_str(mmm, 'm'); unsigned in

2016-11-25 10:48:36 436

转载 数学系专业课参考书

仅以此文纪念我在西北大学数学系的岁月及在博士数学论坛上的时光。     本文是这个文章的第三个版本,也是最后一个版本,由于时间精力,我不会再重新写这篇文章,最多是在原文上修改部分内容。文章会注明修改日期,如有转载请注明这个时间。并且请尽量不要腰斩我的文章,防止读者断章取义。      向指导我大学数学学习的王云峰(数学分析,复变函数),袁进(高等代数),邢志栋(数值代数),温作基(实变函数

2016-11-24 09:19:07 10821

原创 cpp 7.7

7.7#includeconst int ArSize = 8;int sum_arr(const int*begin, const int*end);int main(){ using namespace std; int cookies[ArSize] = { 1,2,4,8,16,32,64,128 }; int sum = sum_arr(cookies, cookie

2016-11-23 10:54:08 313

原创 cpp7.6

7.6#includeconst int ArSize = 8;int sum_arr(int arr[], int n);int main(){ int cookies[ArSize] = { 1,2,4,8,16,32,64,128 }; std::cout << cookies << " = array address, "; std::cout << sizeof c

2016-11-22 10:33:20 309

原创 cpp7.3

7.3#includeusing namespace std;void n_chars(char, int);int main(){ int times; char ch; cout << "Enter a character: "; cin >> ch; while (ch != 'q') { cout << "Enter an integer: "; cin

2016-11-21 11:26:32 281

原创 cpp 7.1

7.1#includevoid simple();int main(){ using namespace std; cout << "main() will call the simple() function:\n"; simple(); cout << "main() is finished with the simple() function.\n"; system(

2016-11-18 12:13:39 249

原创 cpp6.12

6.12#includeconst int ArSize = 80;int main(){ using namespace std; char line[ArSize]; int spaces = 0; cout << "Enter a line of text:\n"; cin.get(line, ArSize); cout << "Complete line:\n" <

2016-11-17 09:33:51 373

原创 cpp6.8

6.8#include#includeint main(){ using namespace std; cout << "Enter text for analysis, and type @" " to terminate input.\n"; char ch; int whitespace = 0; int digits = 0; int chars = 0; i

2016-11-16 11:44:41 358

原创 cpp6.4

6.4#includeint main(){ using namespace std; cout << "This program may reformat your hard disk\n" "and destroy all your data.\n" "Do you wish to continue?"; char ch; cin >> ch; if (ch == '

2016-11-15 10:02:41 326

原创 cpp6.1

6.1#includeint main(){ using std::cin; using std::cout; char ch; int spaces = 0; int total = 0; cin.get(ch); while (ch != '.') { if (ch == ' ') ++spaces; ++total; cin.get(ch); }

2016-11-14 09:26:11 324

原创 cpp5.17

5.17#includeint main(){ using namespace std; char ch; int count = 0; cout << "Enter characters; enter # to quit:\n"; cin.get(ch); while (ch != '#') { cout << ch; ++count; cin.get(c

2016-11-11 09:42:21 551

原创 cpp 5.13

5.13#includeconst int ArSize = 20;int main(){ using namespace std; char name[ArSize]; cout << "Your first name, please: "; cin >> name; cout << "Here is your name, verticalized and ASCIIized

2016-11-10 10:27:54 274

原创 cpp 5.7

5.7#includeint main(){ using namespace std; int a = 20; int b = 20; cout << "a = " << a << ": b = " << b << "\n"; cout << "a++ = " << a++ << ": ++b = " << ++b << "\n"; cout << "a = " << a <<

2016-11-09 08:39:11 310

原创 cpp5.1

5.1#includeint main(){ using namespace std; int i; for (i = 0; i < 5; i++) cout << "C++ knows loops.\n"; cout << "C++ knows when to stop.\n"; system("pause"); return 0;}

2016-11-08 09:22:46 419

原创 cpp 4.22

4.22#define _CRT_SECURE_NO_WARNINGS#include#includeusing namespace std;char * getname(void);int main(){ char * name; name = getname(); cout << name << " at " << (int *)name << "\n"; delete

2016-11-07 09:33:51 297

原创 cpp 4.19

4.19#includeint main(){ using namespace std; double wages[3] = {10000.0, 20000.0, 30000.0}; short stacks[3] = {3, 2, 1}; double*pw = wages; short*ps = &stacks[0]; cout << "pw = " << pw <<

2016-11-04 09:56:59 307

原创 cpp 4.17

4.17#includeint main(){ using namespace std; int nights = 1001; int*pt = new int; *pt = 1001; cout << "nights value = "; cout << nights << ": location " << &nights << endl; cout << "int ";

2016-11-03 09:35:05 667

原创 cpp 4.14

4.14#includeint main(){ using namespace std; int donuts = 6; double cups = 4.5; cout << "donuts value = " << donuts; cout << " and donuts address = " << &donuts << endl; cout << "cups value

2016-11-02 09:50:14 493

原创 cpp 4.12

4.12#includestruct inflatable{ char name[20]; float volume; double price;};int main(){ using namespace std; inflatable bouquet = { "sunflowers", 0.20, 12.49 }; inflatable choi

2016-11-01 10:43:37 225

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除