if i want to read from a file until the end of a file.. i would do this..
struct line
{
int p1;
int p2;
}
typedef line Line;
Line Lines [5];
FILE *fptr
Type: Posts; User: cnewbee
if i want to read from a file until the end of a file.. i would do this..
struct line
{
int p1;
int p2;
}
typedef line Line;
Line Lines [5];
FILE *fptr
Ok this is my problem...
#include <stdio.h>
#define MAX [10]
struct employee // structure of employees (first and last name)
{
char firstname [20];
char lastname [20];
I figured it its ok
"c" had to be an array
here it is...
char words[100][50];
char c;
c = getchar();
strcat (words[0],c);
the error says "c" is incompatable, how do i fix this???
how do i delcare a 2 dimensional string array????
thanx
i will probably post again later with code this time cuz i always screw up somewhere.
ok ok
i dont know how to read it in.
The "HOW TO C PROGRAM" lies i dont know what they are talking about
hmm..
i know how to read in set integers and stuff but i dont know how to go about it...
the file is input.txt with a paragraph in it
and i need to store each word into an array
how would i go about doing this.
plus i need to check if they are integers
can anyone help?