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



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




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

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