?
Solved

PROBLEM WITH CODE

Posted on 2004-08-26
3
Medium Priority
?
191 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

743 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