I've managed to sort it out. thank-you for your time.
changed:
std::string MonthlyFiles::p rocess()
to
void MonthlyFiles::p rocess()
User Profile
Collapse
Profile Sidebar
Collapse
deenar
Last Activity: Nov 6 '12, 09:53 AM
Joined: Sep 7 '10
Location:
-
Yes I have and it stops there, I may have a feeling that my Monthly.cpp does not have return statement that's why it crashes after creating the file..sorry this is an assumption as I am not to good at C++.Leave a comment:
-
Program crashing while executing a certain part of the code.
Hi guys
I need some help please in c++. I'm trying to process different files so have created a main, MonthlyFiles and DaysData files. My problem is when I run the program it crashes when trying to save the output file (i.e. the DaysData - it ouputs the information to the screen and then stops responding.
Main:
...Code:#include <string> #include <stdlib.h> #include "MonthlyFiles.h"
-
Error when using infile in C++
Hi i'm trying to open a file and then pass it onto another class file. Below is the main.cpp, the error msg i am receiving is for the line: infile >> D;
...Code:Main. cpp #include <iostream> #include <fstream> #include <string> #include "DaysData.h" #include "VectorFile.h" using namespace std; int main() { -
-
Thanks weaknessforcats , it got rid of the error msg. You mentioned that there are other issues, please advice as to what is wrong. ThanksLeave a comment:
-
deenar started a topic How to open a filename which is in one class & then use that in a different classin CHow to open a filename which is in one class & then use that in a different class
Hi, I am new to C++ coding and needed some help.I have written some c++ code in codeblocks but I am getting errors when i am trying to compile it. I have a file named files.txt and this file consists of the names of the files that actually contain the data that I need to present. I am trying to get the name of files from from once class and passing it through to another to process. These are the codes that i have:
...Code:main.cpp #include
-
How do a get to read the next line in a text file?
Hi
I'm having problems with Java in reading the next line in a text file to execute to find a solution. My program is read the data from the text file and excute it and provide the answer on the screen.I've complied my program but can't get the program to read the next line in the text file. Please could someone help!!!Below is part of the code.
...Code:class Trianglesf { public static void main(String[] -
Hi
Thanks Ashitpro for that,I should have looked at it more carefully. I entered that in but now I got more error msgs as I had to change a few things. Sorry i don't mean to just dump things on here but i've been trying to crack my head on this one for the past hour.
...Code:int MakeChange(int n, int num, int &amt) { num=amt/n; amt=amt-(num*n); return(num); }Leave a comment:
-
Getting an error msg and needed some help!
I'm trying to obtain the amount of 50s,20s,10s & 50s to give when someone enters an amount in coins. I have done the code but I'm getting error msgs. Please help...
...Code:void GetAmt() { int amt; printf("Please enter amount: "); scanf("%d%*c", &amt); return; } void ChkAmt() { int amt; -
Sorry i'm new to all this but def if i need help i'll put the error msgs as well. I had looked at the error on the line and it said i was missing a syntax error on line 22 which was just 'return;'. Thanks anyway...Leave a comment:
-
-
Syntax Error Code in C
Hi Guys, I'm getting an error msg of 'declaration syntax error' NEED HELP!!!
...Code:#include<stdio.h> #include<ctype.h> void PrintMenu() { printf("a) My Name \n"); printf("b) Tutorial day and time \n"); printf("c) Enter Number \n"); printf("q) Quit \n"); return; } char GetOption
No activity results to display
Show More
Leave a comment: