Hi,
The online programming contest of ITRIX, the national level technical
symposium of the Department of Information Sciences and Technology, College
of Engineering Guindy is up and running. Prizes worth 15k to be won.
Contest page: www.spoj.pl/ITRIX12/
Participate and enjoy the contest.
Hi,
I invite you to take part in *CODE MODULE*http://www.spoj.pl/ABACUS12/,
the *Online Programming Contest of *Abacus'12 http://www.abacus.org.in/,
organised by the Department of Computer Science and Engineering, College of
Engineering Guindy, Anna University, Chennai. Details about the
I think the best way is to read the tutorials written by a guy working in
Facebook :P
http://www.topcoder.com/tc?module=Staticd1=tutorialsd2=primalityTesting
--
Kashyap.K,
III year, B.E. CSE,
College of Engineering Guindy,
Anna University,
Chennai.
--
If you've never failed, you've never lived!
You can also do
void f(a ** b)
{
(*b) = new a();
(*b)-set(5);
}
int main()
{
a *a1;
f(a1);
coutx = a1-get();
return 0;
}
The logic behind this is the basic difference between call by value and call
by reference :-) In your original code, the changes in b will not