How do you define a function in vc++?



How do you define a function in vc++?..

Answer / dinesh

to add a function in a class in vc++ environment
we can select the class view properties then right click at
the class and then click on add method or function.

or we can simply add the declaration in .h file
and definition in cXX file

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More VC++ AllOther Interview Questions

A file a.cpp & B.cpp are complied & linked together in VC++ file a is something like int a =100;, File B is something like extern a; main() { printf("%d",a); }what will be the output.a)100,b)linker error,c)complier error etc etc.

3 Answers   Honeywell,


What is the file extension used for C++ class implementation files?

3 Answers  


hi i have 1180 in gre and 109 in toefl i have one more backlog to clear now. My classes got over in 2007 july. can i put a course completion certificate for my f1 visa interview. plz help

2 Answers  


How can we allow no selection of radio button in grouped radio buttons?

2 Answers  


Explain pointer to the constant and constant pointer?

0 Answers  






What is microsoft visual c++ 2008 redistributable?

0 Answers  


What is a copy constructor? What is the need for it?

0 Answers  


What is the difference between the = and == operators?

1 Answers  


What is microsoft visual c++ 2010 x86 redistributable?

0 Answers  


What is cwinthread class? Explain its advantages.

0 Answers  


What is persistence?

3 Answers  


What is visual c++ used for?

0 Answers  


Categories