自定义博客皮肤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.

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

原创 cpp4.10

4.10#include#include#includeint main(){ using namespace std; char charr[20]; string str; cout << "Length of string in charr before input: " << strlen(charr) << endl; cout << "Length

2016-10-31 09:53:46 167

原创 cpp 4.7

4.7#include#includeint main(){ using namespace std; char charr1[20]; char charr2[20] = "jaguar"; string str1; string str2 = "panther"; cout << "Enter a kind of feline: "; cin >> charr1;

2016-10-28 14:01:07 240

原创 cpp 4.4

4.4#include#includeint main(){ using namespace std; const int ArSize = 20; char name[ArSize]; char dessert[ArSize]; cout << "Enter your name:\n"; cin.getline(name, ArSize); cout << "Enter

2016-10-25 12:01:55 254

原创 cpp 4.1

4.1#includeint main(){ using namespace std; int yams[3]; yams[0] = 7; yams[1] = 8; yams[2] = 6; int yamcosts[3] = { 20, 30, 5 }; cout << "Total yams = "; cout << yams[0] + yams[1] + yams

2016-10-24 09:50:01 223

原创 cpp 3.13

3.13#include int main(){ using namespace std; cout.setf(ios_base::fixed, ios_base::floatfield); float tree = 3; int guess(3.9832); int debt = 7.2E12; cout << "tree = " << tree << endl; cout

2016-10-21 13:17:20 386

原创 cpp 3.10

3.10#include int main(){ using namespace std; float hats, heads; cout.setf(ios_base::fixed, ios_base::floatfield); cout << "Enter a number: "; cin >> hats; cout << "Enter another number: ";

2016-10-20 09:50:19 247

原创 cpp 3.8

3.8#include int main(){ using namespace std; cout.setf(ios_base::fixed, ios_base::floatfield); float tub = 10.0 / 3.0; double mint = 10.0 / 3.0; const float million = 1.0e6; cout << "tub =

2016-10-19 16:32:43 249

原创 cpp 3.5

#include int main(){ using namespace std; char ch; cout << "Enter a character: " << endl; cin >> ch; cout << "Hola! "; cout << "Thank you for the " << ch << " character." << endl; system("pa

2016-10-18 10:52:11 263

原创 c++ prime plus 3.2

3.2#include#define ZERO 0#includeint main(){ using namespace std; short sam = SHRT_MAX; unsigned short sue = sam; cout << "Sam has " << sam << "dollars and Sue has " << sue; cout << " doll

2016-10-14 09:42:47 458

原创 c++ prime plus 3.1

3.1#include#includeint main(){ using namespace std; int n_int = INT_MAX; short n_short = SHRT_MAX; long n_long = LONG_MAX; long long n_llong = LLONG_MAX; cout << "int is " << sizeof (int)

2016-10-13 14:51:49 377

转载 数学方面的能力该怎么培养

数学方面的能力该怎么培养数学系博士怒答!我想大家都有这样的体会:小学的时候你根本不知道初中数学是什么样,高中的时候你也根本想不到大学数学是什么样。而大学生,如果你不专注于数学,恐怕也不知道现代数学是什么模样。下面将分别从学数学的动机、数学不同学科的分类以及如何切实可行培养数学能力等几个方面阐述如何学习数学。(另外,欢迎大家收看在数学系读书的感受如何?体会一下数学的乐趣,数学系人的特点以

2016-10-13 14:22:21 560

原创 c++ prime plus2.5

2.5#include void simon(int);int main(){ using namespace std; simon(3); cout << "Pick an integer: "; int count; cin >> count; simon(count); cout << "Done!" << endl; cin.get(); cin.get();

2016-10-11 11:45:48 431

原创 c++ prime plus 2.2

2.2#include int main(){ using namespace std; int carrots; carrots = 25; cout << "I have "; cout << carrots; cout << " carrots."; cout << endl; carrots = carrots - 1; cout << "Crunch, crun

2016-10-10 15:41:53 365

原创 my first C++ program

//myfirst.cpp --

2016-10-09 16:48:17 1013

空空如也

空空如也

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

TA关注的人

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