3 féle eljárással lehet egy változónak értéket adni. Az egyik a cin. De mi is az a cin?
Forráskód:
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
int a=4;
int b = a*a;
int c;
cout <<"?";
cin>>c;
cout << c*c;
return 0;
}
Videó: