请选择 进入手机版 | 继续访问电脑版
楼主: Nicolle
2758 20

C++ Without Fear: A Beginner's Guide That Makes You Feel Smart [推广有奖]

巨擘

0%

还不是VIP/贵宾

-

TA的文库  其他...

Python(Must-Read Books)

SAS Programming

Must-Read Books

威望
16
论坛币
12402323 个
通用积分
1620.7415
学术水平
3305 点
热心指数
3329 点
信用等级
3095 点
经验
477211 点
帖子
23879
精华
91
在线时间
9878 小时
注册时间
2005-4-23
最后登录
2022-3-6

Nicolle 学生认证  发表于 2015-10-31 08:35:56 |显示全部楼层 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

本帖被以下文库推荐

牛尾巴 发表于 2015-10-31 09:12:54 |显示全部楼层 |坛友微信交流群
请查收了。

本帖隐藏的内容

C without fear _ a beginner's guide that makes you feel smart.pdf (5.24 MB)


已有 1 人评分经验 论坛币 收起 理由
Nicolle + 100 + 100 精彩帖子

总评分: 经验 + 100  论坛币 + 100   查看全部评分

使用道具

mike68097 发表于 2015-10-31 20:39:14 |显示全部楼层 |坛友微信交流群
已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

alphalionfoxmai 学生认证  发表于 2015-10-31 22:26:09 来自手机 |显示全部楼层 |坛友微信交流群
已有 1 人评分论坛币 收起 理由
Nicolle + 20 鼓励积极发帖讨论

总评分: 论坛币 + 20   查看全部评分

使用道具

Nicolle 学生认证  发表于 2015-11-7 09:27:15 |显示全部楼层 |坛友微信交流群

Example 2.1. Odd or Even?

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Nicolle 学生认证  发表于 2015-11-7 09:28:06 |显示全部楼层 |坛友微信交流群
提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Nicolle 学生认证  发表于 2015-11-7 09:29:15 |显示全部楼层 |坛友微信交流群

Example 2.3. Testing a Person’s Age

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Nicolle 学生认证  发表于 2015-11-7 09:30:23 |显示全部楼层 |坛友微信交流群

Example 2.4. Prime-Number Test

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Nicolle 学生认证  发表于 2015-11-7 09:33:58 |显示全部楼层 |坛友微信交流群

Example 2.5. The Subtraction Game (NIM)

提示: 作者被禁止或删除 内容自动屏蔽

使用道具

Lisrelchen 发表于 2015-11-7 09:38:21 |显示全部楼层 |坛友微信交流群
  1. Example 3.1. Printing 1 to N with “for”
  2. Now we’ll apply the for statement in a complete program. This example does the same thing as Example 2.2 on page 46: It prints all the numbers from 1 to n. But this version is more compact.

  3. count2.cpp

  4. #include <iostream>
  5. using namespace std;

  6. int main() {
  7.     int  i, n;

  8.     // Get number from the keyboard and initialize i.

  9.     cout << "Enter a number and press ENTER: ";
  10.     cin >> n;

  11.     for (i = 1; i <= n; i++)   //   For i = 1 to n,
  12.         cout << i << " ";      //       Print i.

  13.     system("PAUSE");
  14.     return 0;
  15. }
复制代码

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 06:46