C++ 语法基础

#include
int main()
{
	using  namespace std; //命名空间
	//类似于printf 
	cout<<"come up and c++ me some time.";
	cout<
#include
int main()
{
	using namespace std;
	int carrots;
	cout<<"how many carrots do you have?"<>carrots;            //C++ input;
	cout<<"here are two more.";
	carrots=carrots+2;
	cout<<"now you have "<
#include
int stonetolb(int);
int main()
{
	using namespace std;
	int stone;
	cout<<"enter the weight in stone: ";
	cin>>stone;
	int pounds=stonetolb(stone);
	cout<

你可能感兴趣的:(C++,语法基础)