-1
我想将一个变量从一个函数传递给另一个函数。我试过这种方法,但它不适合我:从其他函数中获取函数的变量C++
int c(){
int x1,x2,y2,y1;
system("cls");
cout<<"Insert Value"<<endl
cin>>x1;
return x1;
}
int cd()
{
int a;
a=c();
cout<<"X1: "<<a;
}
任何帮助表示赞赏。谢谢!
压痕,它很重要。 – Borgleader
请向我们展示正在使用此类的类或代码。在这一点上,我只看到两种方法,并没有什么叫它们。 – Nate
冲洗很重要。 –