vegyta's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
New Members
Active Posts:
13 (0.01 per day)
Joined:
08-April 12
Profile Views:
1,049
Last Active:
User is offline Feb 18 2013 03:44 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Icon   vegyta has not set their status

Posts I've Made

  1. In Topic: How to add a dashed (----) Line Every 10 Lines

    Posted 12 Dec 2012

    How do you organize your info in payroll.dat?I'm assuming that a single line in payroll.dat has info for 1 person.Again,i think you only need to declare count as an integer(because % works only with integers) and don't use another variable for the same purpose(the line variable).
    Here,i think it may be another problem.You assume
    DATACOUNT = 50
    
    that you have only 50 lines of data in your file.I don't know how to handle files with C/C++ programs,so assuming that
    infile >> name >> hours >> rate;  //read data 
    
    read's only 1 line of data,you must have a way to move from the current line to the next line.
    count++
    
    only increments count,but in your file you are still on the current line.Hope this helps
  2. In Topic: How to add a dashed (----) Line Every 10 Lines

    Posted 12 Dec 2012

    Why didn't you put the complete code?It is much better to have all the code you are compiling instead of a sample.I'm assuming that count and is the current line you are writing your info,so you may declare count as an integer and get rid of the error.I think it would be better not to use the line variable(because you only use it once at line 18),leave only count.Again post the entire code you are using.

My Information

Member Title:
New D.I.C Head
Age:
24 years old
Birthday:
October 18, 1990
Gender:
Location:
UK
Years Programming:
2
Programming Languages:
C/C++ Java,Mysql,PHP,HTML,CSS

Contact Information

E-mail:
Click here to e-mail me
Yahoo:
Yahoo  vegyta2004

Friends

Comments

vegyta has no profile comments yet. Why not say hello?