Search:

Type: Posts; User: RStein6516

Search: Search took 0.01 seconds.

  1. Thread: Classes

    by RStein6516
    Replies
    2
    Views
    1,162

    main function for class

    Here is most of my main function. Thanks in advance
    //read a record
    fscanf(StuIn,"%5d,%25[a-z A-Z],"
    "%3[a-z],%2[abcdf+-],%2[abcdf+-],%2[abcdf+-],%2[abcdf+-],%2[abcdf+-],%2[abcdf+-],"...
  2. Thread: Classes

    by RStein6516
    Replies
    2
    Views
    1,162

    Classes

    I have a class called final it inherits attributes from a class called average. I am using constructor for the class. I am not to familiar with constructors but I know it initializes data members...
  3. Thread: fscanf

    by RStein6516
    Replies
    11
    Views
    1,562

    Thanx All

    Thanks for all the help I really appreciate. Finally got it working. Just have to create a couple of classes and I am good to go.
    :D
  4. Thread: fscanf

    by RStein6516
    Replies
    11
    Views
    1,562

    When I Read get alot of junk

    I get alot of junk along with the data I am not getting this please help.

    #include<iostream>
    #include<stdio.h>
    using namespace std;


    int main()
    {
    char line[200];
  5. Thread: fscanf

    by RStein6516
    Replies
    3
    Views
    1,704

    sorry

    Sorry about the cross post!
  6. Thread: fscanf

    by RStein6516
    Replies
    11
    Views
    1,562

    Thanx - about using a structure

    Thanx all especially garfield this helps alot. C_coder. I thought about using a structure but wasn't sure how to read it in. Would I just read the whole line in as a string.

    ie:
    fscanf(Filein,...
  7. Thread: fscanf

    by RStein6516
    Replies
    11
    Views
    1,562

    fscanf

    can someone please tell me how to read in a record that has variable length fields. The fields are delimited by commas.

    The fields to be read are:
    · Student Number (5 digits)
    · Student Name...
  8. Thread: fscaf

    by RStein6516
    Replies
    1
    Views
    1,499

    fscaf

    can someone please tell me how to read in a record that has variable length fields. The fields are delimited by commas.

    The fields to be read are:
    · Student Number (5 digits)
    · Student Name (25...
  9. Thread: fscanf

    by RStein6516
    Replies
    3
    Views
    1,704

    fscanf

    Can anyone tell me how to read variable length fields from a sequential file using fscanf. The fields are delimited by commas.
    Fields to be read in are
    · Student Number (5 digits)
    · Student Name...
Results 1 to 9 of 9