this is what my code look like at the moment but how ever i'm not sure how to input the names and numbers into arrays, i still intend on working out the average and maximum and minimum mark, but to read them from the array first.
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <stdio.h>
using namespace std;
int displayAverage( );
...
User Profile
Collapse
-
the names and numbers are in the file, well i have not yet tried naything as such becasue i dont know how to start it of.Leave a comment:
-
Read data into array from file
i was wondering if you someone knows how to read the names and numbers from a file into an array, if so agin that would be a great help. becasue i just cant get my head around how to do it. -
thanx for the help with that, it work great now, but i was wondering if you know how to read the names and numbers from the file into an array, if so agin that would be a great help. becasue i just cant get my head around how to do it.Leave a comment:
-
cant find the problem with my text file
I am trying to answer a question with regards to entering a set of numbers and text, and then I have got to search for a number and the text with it.
I wish to enter the name on one line and the number on another line
This is the code that I have written for inputting the numbers:
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <stdio.h>... -
yea there will always be a first and last name, no middle name. the name will be on a different line to the number which is given to each person....Leave a comment:
-
text files
I am trying to answer a question with regards to entering a set of numbers and text, and then I have got to search for a number and the text with it.
This is the code that I have written for inputting the numbers:
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <stdio.h>
using namespace std;
int main()
{ ...
No activity results to display
Show More
Leave a comment: