Question and Answers

stanger196 Visual Studio / C++ wont print? - stanger196 Any one know why? #include #include #include using namespace std; int main() { int CusNum; double PrevBal, Local, Long, Interest, TotalDue; cout <<"Please insert your customer number."<< endl; cin>> CusNum; cout <<"Insert your previous balance."<< endl; cin>> PrevBal; cout <<"Insert you local charge." <> Local; cout <<"Insert your long distance charge."<< endl; cin>> Long; const double RATE = .10; Interest = PrevBal * RATE; TotalDue = Interest + Local + Long + PrevBal; ofstream prn ("PRN"); prn << fixed << showpoint << setprecision(2); prn << "Donavan Payne" <
Best Answer: Hm.... Hardware: chk t. printer device on paralel/serial port is already on. Hardware: chk t. cable. Hardware: paralel/serial port, USB not support Software: chk t. device, is it PRN port already exist. if (prn) Software: chg to device LPT<1, 2, 3, ..., etc> ofsteam prn("LPT1"); - cucu-Nya
What kind of printer do you have? Try this, ofstream prn("LPT1"); but if you have a usb printer, I'm lost. I'm trying to find that information now. - oops
Why dont you just use cout to print to the console im not sure if thats what your trying to acomplish tou - dude_142000
edit: no clue - Anonymous

Best Answers are selected by the person who asked the question or other Yahoo! users. Find out more at Yahoo! Answers.

Enter a keyword below to find questions and answers from real people.

Want to ask a question? Go to Yahoo! Answers

Product Categories

Computers Home Office Wi-Fi & Networking Phones & PDAs Cameras & Camcorders TV & Home Theater Portable Audio

My Tech

Please enable your browser's cookies to activate the My Tech column.


Question and Answer content at Yahoo! Tech is written by Yahoo! users at Yahoo! Answers. Yahoo! does not evaluate or guarantee the accuracy of any Yahoo! Answers content. For more information, read the Full Disclaimer.

Opinions expressed by the Advisors are their own and do not necessarily reflect the views of Yahoo! Inc. Yahoo! receives no compensation from any manufacturer or distributor nor does it compensate any Advisor for the coverage of any product or service in any Advisor's content.