标题:求助为什么这个编程不能运行?
只看楼主
wtt88
Rank: 2
等 级:论坛游民
帖 子:5
专家分:14
注 册:2011-1-17
结帖率:0
已结贴  问题点数:0 回复次数:3 
求助为什么这个编程不能运行?
#include<iostream.h>

int main()
{
    using namespace std

    int carrots;   //declare an integer variable

    carrots=25;    //assing a value to the variable
    cout<<"I have";
    cout<<carrots;  //display the value of the variable
    cout<<"carrots.";
    cout<<endl;
    carrots=carrots-1; //modify the   
    cout<<"Crunch,crunch.Now I have"<<carrots<<"carrots."<<endl;
    getch();
    return 0;
}
2011-01-24 11:02
beyondziming
Rank: 1
等 级:新手上路
帖 子:1
专家分:1
注 册:2010-12-31
得分:1 
getch没加头文件吧 conio.h
2011-01-29 09:06
祖少华
Rank: 2
等 级:论坛游民
帖 子:3
专家分:21
注 册:2011-1-28
得分:1 
真晕,一点不懂……
2011-01-30 14:57
华文
Rank: 1
等 级:新手上路
帖 子:4
专家分:1
注 册:2011-9-9
得分:0 
回复 楼主 wtt88
我想把自己调试的结果给你,但是貌似我不能把截图给你。。呵呵.........我是新手,还请指教。
2011-09-09 17:49



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331491-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.890406 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved