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+-],"...
Type: Posts; User: RStein6516
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+-],"...
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...
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
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];
Sorry about the cross post!
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,...
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...
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...
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...