Solved

PROBLEM WITH CODE

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

838 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