Search:

Type: Posts; User: cnewbee

Search: Search took 0.00 seconds.

  1. Thread: feof stuff...

    by cnewbee
    Replies
    1
    Views
    1,587

    feof stuff...

    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
  2. Replies
    1
    Views
    1,311

    structures and arrays

    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];
  3. Replies
    2
    Views
    938

    i figured it out

    I figured it its ok
    "c" had to be an array
  4. Replies
    2
    Views
    938

    strcat problem..

    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???
  5. Thread: 2d arrays

    by cnewbee
    Replies
    11
    Views
    1,734

    2d arrays

    how do i delcare a 2 dimensional string array????
  6. Replies
    4
    Views
    1,410

    thanx i will probably post again later with...

    thanx

    i will probably post again later with code this time cuz i always screw up somewhere.
  7. Replies
    4
    Views
    1,410

    ok ok i dont know how to read it in. The "HOW...

    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...
  8. Replies
    4
    Views
    1,410

    reading .txt file

    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?
Results 1 to 8 of 8