编写的C++程序老是运行不了,求教各位大神....

[复制链接]
查看11 | 回复3 | 2013-7-30 10:21:17 | 显示全部楼层 |阅读模式
1 先给个能满足你需求的代码void main(){
int s = -1;
while(1)
{
cin>>s;
i
f(s= -1 && c #include using namespace std;int main(){ double tax=0; float a=0; float b=0; float c=0; int inc; int inc1; cout<<"Please enter you income...
回复

使用道具 举报

千问 | 2013-7-30 10:21:17 | 显示全部楼层
!isdigit(inc)外面再加一层括号...
回复

使用道具 举报

千问 | 2013-7-30 10:21:17 | 显示全部楼层
if(!isdigit(inc) || inc<0){ }...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行