文号
t21384
阅读
5780
回复
12
收藏
7
C++基本中的基本
2009/12/16
IP:香港
#include <stdio.h>
void main() {
     int x, y;
     printf("input your age: ");
     scanf("%i",&x);
     printf("input your brother's age: ");
     scanf("%i",&y);
     if (x<y)
     {
        printf("your age is %i, your brother's age is %i\n",x,y);
        printf("Your brother is older than you!\n");
     }
     else if (x>y)
     {
        printf("You are older than your brother!\n");
     }
     else
     {
        printf("Both guys have the same age!\n");
     }
     printf("goodbye!\n");
     system("pause");
}
t-600作者
17年1个月前IP:未同步
171148
1楼
下載了一個比Microsoft Visual C++ 2008 Express 易用我程序編輯器........."
引用
评论
t-600作者
17年1个月前IP:未同步
171197
3楼
................"
這是物件導向的基本........"
不是大小的問題..........."
引用
评论
t-600作者
17年1个月前IP:未同步
171338
5楼
#include =宣告
<stdio.h>=標頭檔
引用
评论
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的