vs2010在开头打了using namespace std可是还是显示cin,cout未声明
代码如下:#include<iostream>usingnamespacestd;#include"stdafx.h"voidsimon(int);int_tmain(i...
代码如下:
#include <iostream>
using namespace std;
#include "stdafx.h"
void simon(int);
int _tmain(int argc, _TCHAR* argv[])
{
simon(3);
cout<<"Pick an interger:";
int count;
cin>>count;
simon(count);
cout<<"Done"<<endl;
return 0;
}
void simon(int n)
{
cout<<"Simon says touch your toes "<< n <<"times."<<endl;
} 展开
#include <iostream>
using namespace std;
#include "stdafx.h"
void simon(int);
int _tmain(int argc, _TCHAR* argv[])
{
simon(3);
cout<<"Pick an interger:";
int count;
cin>>count;
simon(count);
cout<<"Done"<<endl;
return 0;
}
void simon(int n)
{
cout<<"Simon says touch your toes "<< n <<"times."<<endl;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询