User Profile

Collapse

Profile Sidebar

Collapse
deenar
deenar
Last Activity: Nov 6 '12, 09:53 AM
Joined: Sep 7 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I've managed to sort it out. thank-you for your time.

    changed:
    std::string MonthlyFiles::p rocess()
    to
    void MonthlyFiles::p rocess()
    See more | Go to post

    Leave a comment:


  • 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++.
    See more | Go to post

    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"
    ...
    See more | Go to post

  • deenar
    started a topic Error when using infile in C++
    in C

    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()
    {
    ...
    See more | Go to post

  • Thank-you so much, I really appreciate it.
    See more | Go to post

    Leave a comment:


  • Thanks weaknessforcats , it got rid of the error msg. You mentioned that there are other issues, please advice as to what is wrong. Thanks
    See more | Go to post

    Leave a comment:


  • How 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
    ...
    See more | Go to post

  • deenar
    started a topic How do a get to read the next line in a text file?
    in Java

    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[]
    ...
    See more | Go to post

  • deenar
    replied to Getting an error msg and needed some help!
    in C
    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); 
    }
    ...
    See more | Go to post

    Leave a comment:


  • deenar
    started a topic Getting an error msg and needed some help!
    in C

    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;
    ...
    See more | Go to post

  • deenar
    replied to Syntax Error Code in C
    in C
    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...
    See more | Go to post

    Leave a comment:


  • deenar
    replied to Syntax Error Code in C
    in C
    Thanks so much!!!
    See more | Go to post

    Leave a comment:


  • deenar
    started a topic Syntax Error Code in C
    in C

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...