1>c:\users\vok\documents\visual studio 2012\projects\merge program\merge program\source.cpp(19): error C2660: 'merge' : function does not take 3 arguments
Now is time for a good lesson why not to have usingnamespace std;
From the link above, you can see std::merge is something else entirely.
Also C++ is case sensitive, so merge and MERGE are two different functions. Not really a good idea IMO to do that.
What does the merge function do?
As the title indicates, I have a debugging problem. Any help is much appreciated! Here is the result of debugging:
This is compiling: debugging is when one steps through code, that does compile, one line at a time while keeping an eye on the value of variables to see where the problem is.
Thanks so much for your help both of you. I really appreciate it.
I updated the code...
Almost done with compiling! (thank you TheIdeasMan for setting me straight on terminology)
I'm actually down to one error!
I think line 19 contains incorrect syntax. What do you guys think?
It is the line that is highlighted when I click on the error msg in Visual Studio...
//Line 5:
int merge(ifstream &, ifstream &, ofstream);
Your function should be:
1 2
//Line 39
int merge(ifstream &file1, ifstream &file2, ofstream &file3)
Your previous error was due to Merge != merge; I copied/pasted and also produced that error in my previous post - it was intended that both the function and its prototype have identical names.
Naming convention is case sensitive; upper and lower cases.