Solved

PROBLEM WITH CODE

Posted on 2004-08-26
3
190 Views
Last Modified: 2010-04-01
I have the follwoing code,

I have a block of code printing to printer.

the problem is that after the code to print is executed, e.g.

      printT <<"\n\n Customer ID:" << CustID;

the code to close open files and rename temporary files is not executing.
for example, if i type

cout << "I GOT HERE"; before code to close files, it print the phrase, but does not seem to be closing files.
if i place this code after the coe to close open files, it is not executing. the program seems to get stuckwhen ithas to lose open files.

what i going wrong.





0
Comment
Question by:claracruz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Expert Comment

by:carribus
ID: 11901449
could you post some more code to give more context, and maybe identify a problem?
thanks
0
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 500 total points
ID: 11905924
First, you should have a 'Rebuild All' to avoid problems that come from an invalid update built.

Second, is there any while loop or for loop where you are closing and renaming files? Maybe to evaluate a unique filename?

As carribus told you, we need some more code to help you.

Regards, Alex
0
 

Expert Comment

by:marco_coder
ID: 11923068
cout = text!
prout = printer

prout or pout << 
     T <<"\n\n Customer ID:" << CustID;

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question