Yea, i know it's a bit silly, but the thing is that we aren't allowed to use global variables in our assignment. Don't know why.
Type: Posts; User: urban1990
Yea, i know it's a bit silly, but the thing is that we aren't allowed to use global variables in our assignment. Don't know why.
Never mind, i just found out how to fix it :)
This works for me:
void CreatePwList(FILE *in, FILE *out)
{
char templine[100], fornavn[100];
Thanks for the help. What about this one, is this also a constant (or variable?), and how do i eliminate it?
#define MAXCHARS 100
void CreatePwList(FILE *in, FILE *out)
{
char...
Well i want to eliminate them. Any idea how i can do that without ruining the code?
Hi,
I need some help to convert global variables into local variables. How the hell do i do that when im operating with .txt files.
The following is a part of my program.
Thanks
void main ()
{
char c;
FILE * prt, *prt1;
prt = fopen("Inputfil.txt","r");
prt1 = fopen ("Outputfil.txt", "w");
while((fscanf(prt, "%c", &c))==1)
{
Hi,
I need to write down a program which contains an input file, the program needs to write an output file which contains the content from the input file in a specific order.
The input file...