Program to open a file with First argument
void main(int nArgCount, char *szArgVector[])
{
if(nArgCount != 2)
{
printf("\nWorng number of argument\nSynatx: %s
<filename>",szArgVector[0]);
return;
}
FILE *fp = foepn(szArgVector[1],"r+");
//Process the file here
fclose(fp);
}
Is This Answer Correct ? | 0 Yes | 0 No |
why we are declare the function in the abstract class even though we are declaring it in Derived class?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
what's the basic's in dot net
Explain virtual inheritance?
//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }
what is polymorphism?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
How to create a comment page in C #??
what is a class
how to swap the variables without using temp and operators
write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation
1 Answers College School Exams Tests, HCL, IBM, TCS,
What is overloading in oop?