TheBeast32 54 Posting Whiz in Training

You can just see if AWUTD is y or n and display what you want.

cout<<"Patients Name:"<<Pname<<endl;
cout<<"Patients Age:"<<age<<endl;

cout<<"Patients Current Employer:"<<CEmployer<<endl;

if(AWUTD=='y'||AWUTD=='Y')
{
	cout<<"Work up to date:Yes"<<endl;
}
else if(AWUTD=='n'||AWUTD=='N')
{
	cout<<"Work up to date:No"<<endl;
	cout<<"Specification:"<<AWUTDspecification<<endl;
}

I added the specification if it was no, too.

TheBeast32 54 Posting Whiz in Training

Change

if(AWUTD=='y'||'Y')
	{
		cout<<"Please Specify:"<<endl;
		getline (cin, AWUTDspecification);
	}
	else if (AWUTD=='n'||'N')
	{
		cout<<endl;
	}

to

if(AWUTD=='y'||AWUTD=='Y')
	{
		cout<<"Please Specify:"<<endl;
		getline (cin, AWUTDspecification);
	}
	else if (AWUTD=='n'||AWUTD=='N')
	{
		cout<<endl;
	}

I'm pretty sure that adding ||'Y' to your if means that if the ASCII code for 'Y' is nonzero, then it's true. So it will be true for the first if every time.

TheBeast32 54 Posting Whiz in Training

You need to add the bin directory of MinGW to your PATH environment variable.

TheBeast32 54 Posting Whiz in Training

oops sry =(

TheBeast32 54 Posting Whiz in Training

if you are getting multiple definition errors, change your headers to look like this:

#ifndef HEADERNAME_H
#define HEADERNAME_H

// Your code here

#endif

That way if you include a header more than once, it'll only be included if it hasn't been.

TheBeast32 54 Posting Whiz in Training

Try passing C:\Dev-cpp\ or whatever the root directory for Dev-C++ is.

TheBeast32 54 Posting Whiz in Training

I'll look into it

TheBeast32 54 Posting Whiz in Training

I think it's giving an error because dev-c++ 4.9.9.2 uses code completion. it makes a cache, and it may be looking for that. =|

TheBeast32 54 Posting Whiz in Training

No, I have the beta version (4.9.9.2). It's weird. I can't find a config directory. I'll look around for it.

TheBeast32 54 Posting Whiz in Training

DOES the directory exist?~! If it doesn't, then get a new installer or something.

TheBeast32 54 Posting Whiz in Training

To pass a parameter to the program, do it from the command line. If it's devcpp.exe. Do dev-cpp.exe -c "C:\config"

TheBeast32 54 Posting Whiz in Training

A good book that I have recently bought is Programming Windows Fifth Edition by Charles Petzold. It talks about using the Win32 API. It also has code examples and an accompanying CD. It's like $60, but I got mine used for $30 on www.amazon.com.

TheBeast32 54 Posting Whiz in Training

If the file is in the same directory couldn't you just do this?

#include <conio.h>
#include <fstream>
#include <iostream>
#include <string>
using namespace std;

int main(int argc, char* argv[])
{
string FileName;
cout << "Enter the file name: ";
cin >> FileName;

cout << endl << endl;

ifstream in(FileName.c_str());
while (!in.eof())
{
char ch;
in.get(ch);
cout << ch;
}
getch();
return 0;
}

Example:
Enter the file name: Stuff.txt

Stuff.