First of all USE CODE TAGS!!!!
second of all:
Code:
struct tag my_struct; //SCARY!!!!
do this instead:
Code:
tag my_struct; //AWESOME!!!!
And allso what is this all about:
Code:
("\n%s ",
and
("%s\n",
Doesn't look right ot me.
Code:
#include <string.h> //SCARY!!!!
do this:
Code:
#include <string> //AWESOME!!!!
Code:
int main() //NO VOID GRRRR
{
cout<<"Name: ";
cin<<my_struct.fname;
cout<<"Last Name: ";
cin<<my_struct.lname;
if(!strcmpi(my_struct.fname, "Jhonson")) //notice the 'i' instead of 'y'
{
cout<<"Thats my name too!!";
}
return 0;
}
I hope that clears it a bit
-Devouring One-