| | |
How to print
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2005
Posts: 19
Reputation:
Solved Threads: 0
Can someone help me, I've been trying forever and still can't get it. I need to get my C++ program to print in dos enviroment. I need it to print the words "Hello" when i push something and nothing else.
#include <cstdlib>
#include <iostream>
#include <conio.h>
using namespace std;
int main(int argc, char *argv[])
{
cout<<"hello";
Return_0;
#include <cstdlib>
#include <iostream>
#include <conio.h>
using namespace std;
int main(int argc, char *argv[])
{
cout<<"hello";
Return_0;
Something similar to this?
C++ Syntax (Toggle Plain Text)
#include <iostream> using namespace std; int main() { cout << "Press [enter] to continue..."; cin.get(); cout << "Hello\n"; return 0; }
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
•
•
Join Date: Nov 2004
Posts: 108
Reputation:
Solved Threads: 3
Narue,
What are you talking about professors know everything.......
What are you talking about professors know everything.......
Join me on IRC:
Server: irc.daniweb.com
Channel: #C++
Chat Via:
http://daniweb.com/chat/minichat.php
or
Your favorite IRC client.
Server: irc.daniweb.com
Channel: #C++
Chat Via:
http://daniweb.com/chat/minichat.php
or
Your favorite IRC client.
If you have Windows and Dev-C++ then you are in luck. Look at the code snippet:
http://www.daniweb.com/code/snippet122.html
This might be a little overkill since it allows you to set the font, wordwrap and more. Trim it back to what you need!
http://www.daniweb.com/code/snippet122.html
This might be a little overkill since it allows you to set the font, wordwrap and more. Trim it back to what you need!
May 'the Google' be with you!
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
In DOS, I'd consider issuing:
ctty lpt1
(Warning! This may be written incorrectly. It's been a while.)
Then, everything would print out at the printer connected to the parallel port. (Great for a paper log of a process.)
ctty lpt1
(Warning! This may be written incorrectly. It's been a while.)
Then, everything would print out at the printer connected to the parallel port. (Great for a paper log of a process.)
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
Similar Threads
- internet explorer while trying to print (Web Browsers)
- Can't print the picture (Web Browsers)
- Print Center (OS X)
- Adding data to print job (Visual Basic 4 / 5 / 6)
- Outlook XP won't print (Windows NT / 2000 / XP)
- Page counter print accounting (*nix Software)
Other Threads in the C++ Forum
- Previous Thread: Open Source Projects
- Next Thread: conway's game of life
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






