#ifndef IOSTREAM
#define IOSTREAM
#include
#endif
#ifndef STDLIB_H
#define STDLIB_H
#include
#endif
#ifndef FSTREAM_H
#define FSTREAM_H
#include
#endif
#ifndef IOMANIP_H
#define IOMANIP_H
#include
#endif
#ifndef CTYPE_H
#define CTYPE_H
#include
#endif
#ifndef MEITZCAP_H
#define MEITZCAP_H
int getWD(char [], char []);
int outDef(char *, char *);
char *pword, *pdef;
char word[10];
char def[10];
char spacer;
int number;
//FUNCTION 1 - GETSAVE words
int getWD(char word[10], char def[10])
{
cout << "This function will get the word and definition and save them to a file" << endl;;
cout << "Please enter a vocabulary word: ";
cin >> word;
cout << "Please enter it's corresponding definition: ";
cin >> def;
return 0;
}//end printData
//FUNCTION 2 - OUTDEF, ACCURACY CHECK
int outDef(char *pword, char *pdef)
{
char word1[20];
cout << "This function allows you to help fix the definition in your mind.";
cout << "The definition is " << pdef << "." << endl;
cout << "The word is (please enter): ";
cin >> word1;
if (strcmp(pword, word1) != 0)
{
cout << "I'm sorry, that's incorrect.\n" << endl;
}
else if(strcmp(pword, word1) == 0)
{
cout << "Yatta! Good job. ^__^\n" << endl;
}
//do a string compare
return 2;
}
#endif