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 |
WHEN A COPY CONSTER IS CALL ?
write a c++ program to find maximum of two numbers using inline functions.
What do you mean by pure virtual functions?
What is a template?
When is an object created and what is its lifetime?
Write a program in c++ to read two floating point numbers and find their sum and average.
what is object slicing?
can we make game by using c
I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.
Can you inherit a private class?
What is coupling in oop?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?