void init1()
{
static int yrs = 1;
cout << "The value of yrs is " << yrs << endl;
yrs = yrs + 2;
return;
}
void init2()
{
static int yrs;
yrs = 1;
cout << "The value of yrs is " << yrs << endl;
yrs = yrs + 2;
return;
}
daniela.valkanova 0 Newbie Poster
Hiroshe 499 Posting Whiz in Training
daniela.valkanova 0 Newbie Poster
Hiroshe 499 Posting Whiz in Training
daniela.valkanova 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.