Cheers, that works fine now, however i try to read in the data until end of file, and it doesnt work, just runs continuously... code in blue is what i added to try input data until end of file:
...
Type: Posts; User: fp123
Cheers, that works fine now, however i try to read in the data until end of file, and it doesnt work, just runs continuously... code in blue is what i added to try input data until end of file:
...
Ok this code outputs a name, but i cant figure out how to output the array in my function, from the main( ).
I know the code in my getInfo function works, and if i output the information inside...
Comiles yet continuously runs without ending, any ideas? Changed ios::nocreate like you stated.
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
bool...
I have made this program which im really certain would work, it compiles with no errors, but runs continuously after getting the name of the output file.
The program takes a loads of names each...
I have just been messing about trying to figure out how to put the getline into a function, as i want to use as many functions as possible in the program.
Is it possible to put that line of code...
Thank you Bee that was extremely informative, just going to have a mess about with my program now :)
Hi guys just trying to understand Getline and implement it in a problem im trying to solve.
First off i have a program that is working:
#include <iostream.h>
#include <string>
#include...
Hi, im attempting to make a program that takes a name of up to 3 words long from a text file and outputs it into a different text file.
Then outputs numbers on a line below the name as well.
As...