有关于C++程序设计的问题,请高人指正下面一段程序的错误,不胜感谢
来源:百度知道 编辑:UC知道 时间:2024/06/08 01:18:04
#include <iostream>
using namespace std;
int main ( )
{
int a,b;
cout<<"Enter number to encrypt:";
cin>>a;
b=a*7+5;
cout<<"Encrypted number:"<<b;
return 0;
}
using namespace std;
int main ( )
{
int a,b;
cout<<"Enter number to encrypt:";
cin>>a;
b=a*7+5;
cout<<"Encrypted number:"<<b;
return 0;
}