easy program... but x_1 and x_2 strings dont change after return from function
I expect 50 and 70 but still keeps declaration value.
#include <cstdlib>
#include <iostream>
using namespace std;
void absurd (string a, string b)
{
a="50";
b="70";
}
int main(int argc, char *argv[])
{
string x_1="burcin";
string x_2="erek";
absurd(x_1,x_2);
cout <<"\n"<<x_1<<" "<<x_2<<"\n";
system("PAUSE");
return EXIT_SUCCESS;
}