I forgot to uncomment the Player init. in Load Character and comment out the global player var. That's the wasy it was, I've been messing with the code a little.
Type: Posts; User: TidusBlue
I forgot to uncomment the Player init. in Load Character and comment out the global player var. That's the wasy it was, I've been messing with the code a little.
#include <iostream.h>
#include <stdio.h>
#include <conio.c>
#include <string.h>
FILE * Character_File;
typedef struct
ok, I made a typedef struct called Character_Type, I then made a variable of type Character_Type withing a function. I need to pass this variable to another function, but I'm not able to. I keep...
I'm using Dev C++ and when if you include conio.c (I think) it lets you use gotoxy.... I've used it before, but wasn't sure the type of func it was. Thanks.
I'm writing a program in c, but I'm not sure if gotoxy is a c, or c++ function... I know funcs. like setw are borland specific, so I'm not using that, but I'm not sure about gotoxy... could someone...
I got it to work by using fscanf instead of fgets....
This is the code I put in, but it's just putting garbage in the variables....
Characters_Struct Player;
char name[20],buffer[20];
Character_File =...
I'm making a program that stores peoples info in a file. Each Person's info is a New line ex:
John <info>
doug <info>
I need to be able to search for the person's name to pull the info from...
What if thier isn't 2 names? (In the surname exaple). Will it just ignore the second %s?
Thanks Brian
I thought their was a way to open a file using a string, but I can't seem to remember how. Wondering if I could get some help with the subject. I wanting to have the user input a name and open the...