fixed
Type: Posts; User: laxkrzy
but it is a string, or so i think, i have it set as char id [2]
sorry about all the post but at least on my computer it is looking really weird, third times a charm
after sending a string to my main struct it wont allow me to print what is in the struct...
after sending a string to my main struct it wont allow me to print what is in the struct outside of the function in which i assigned it.
int buildRooms(char filename[], struct Room list[])
{...
after sending a string to my main struct it wont allow me to print what is in the struct outside of the function in which i assigned it.
int buildRooms(char filename[], struct Room list[])
{...
that part was given to us by our instructor so were not allowed to change it is there another way?
i am trying to copy a string that i got from a file using fscanf into my struct
struct Room {
char south, north, east, west;
char id;
char description[MAX_SIZE_DESC];
char...
i am trying to copy a string that i got from a file using fscanf into my struct
struct Room {
char south, north, east, west;
char id;
char description[MAX_SIZE_DESC];
char...
sounds a little complicated but not aweful, is there no simpler way?
im not using scanf, we were told not to i am reading them in as arguments
I am creating a simple calculator to do simple math in dec hex and octal froms , i am having trouble reading in an argument as a octal value, my hex is working fine when I enter 0x before the number...
i am creating a basic calculator program for a class and and stuck on the multiplication. when the third argument is * it goes all funky and give a segmentation fault. my only guess is that this is...
I am trying to find a way to essentially say if argv[4] is nothing, in other words if there was not argv [4] given, then do so and so. this is what i have so far
...