Solved

PROBLEM WITH CODE

Posted on 2004-08-26
3
185 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now