Question : C++

I AM A BEGINNER IN c++. CAN ANYONE TELL ME WHAT ARE THE ERRORS IN THE FOLLOWING PROGRAM AND REPLACEMENT CODE FOR THOSE INCORRECT CODES.
Attachments:
 
PART 1
PART 1
 
 
PART 2
PART 2
 

Answer : C++

Other possibilities:
1) You have two files and the main() function is referring to functions defined in the other file. So, you should define a header file for the other file that shows the profile of the functions. And in the file having the main function, you would include a header like this:

#include "somefilename.h"

In somefilename.h you should have something like the following:

#ifndef SOMEFILENAME_H
#define SOMEFILENAME_H

// provide the declarations of all the functions defined in your somefilename.cpp file
// for example:
int checkPass( char * Pbuffer);
. . .
#endif

2) Potential Build Issues:
If Linux environment, you need to compile both files and use both names when creating the executable. This can be done in one step:  g++ file1.cpp file2.cpp   and your result will be an executable (e.g., a.exe).

If Visual Studio (or other Windows IDE), make sure that both files are in the project; I would put both files in the same folder, and include your own header file in the same folder as well.
Random Solutions  
 
programming4us programming4us