Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 314 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;
... |
Forum: C++ Apr 9th, 2009 |
| Replies: 6 Views: 314 Change
if(AWUTD=='y'||'Y')
{
cout<<"Please Specify:"<<endl;
getline (cin, AWUTDspecification);
}
else if (AWUTD=='n'||'N')
{
cout<<endl; |
Forum: C++ Oct 4th, 2008 |
| Replies: 7 Views: 2,234 You need to add the bin directory of MinGW to your PATH environment variable. |
Forum: C++ Sep 29th, 2008 |
| Replies: 11 Views: 962 |
Forum: C++ Sep 28th, 2008 |
| Replies: 11 Views: 962 if you are getting multiple definition errors, change your headers to look like this:
#ifndef HEADERNAME_H
#define HEADERNAME_H
// Your code here
#endif |
Forum: C++ Sep 21st, 2008 |
| Replies: 14 Views: 1,607 Try passing C:\Dev-cpp\ or whatever the root directory for Dev-C++ is. |
Forum: C++ Sep 21st, 2008 |
| Replies: 14 Views: 1,607 |
Forum: C++ Sep 19th, 2008 |
| Replies: 14 Views: 1,607 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. =| |
Forum: C++ Sep 16th, 2008 |
| Replies: 14 Views: 1,607 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. |
Forum: C++ Sep 15th, 2008 |
| Replies: 14 Views: 1,607 DOES the directory exist?~! If it doesn't, then get a new installer or something. |
Forum: C++ Sep 14th, 2008 |
| Replies: 14 Views: 1,607 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" |
Forum: C++ Jul 16th, 2008 |
| Replies: 13 Views: 1,294 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,... |
Forum: C++ Apr 23rd, 2008 |
| Replies: 6 Views: 780 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*... |