ok here is the deal i made this to test my ability at structs and ended up with another problem but i cant figure it out if some one could help me id appreciate it
Here is the code:
#include "stdafx.h"
#include <stdlib.h>
#include <iostream.h>
#include "Dagger.h"
int main(int argc, char* argv[])
{
cout << "ok here we go attemting to store the data into the structure ";
cout << endl;
weapon kris;
strcpy(kris.type. "slashing");
cout << "hopefully if this worked there should be the right value in here";
cout << endl;
cout << kris.type;
cout << endl;
return 0;
}
and here is the header:
#ifndef _Dagger_H
#define _Dagger_H
struct weapon{
char type[30];
char name[30];
int tohitmod;
int damage;
int damagemod;
};
#endif
and yesss I am using MSVC++ before anyone starts grumping and groaning
Thank You!!