473,409 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

c++ library for windows

I am writing a program with several cout statements that take up more
than the entire screen.

What commands/libraries should I #include so that the scroll bar
enables me to scroll up to the beginning lines?

Thank you,

Paul Epstein

Nov 5 '05 #1
5 1707
pa**********@att.net wrote:
I am writing a program with several cout statements that take up more
than the entire screen.

What commands/libraries should I #include so that the scroll bar
enables me to scroll up to the beginning lines?

Thank you,

Paul Epstein


There are no standard C++ libraries to do that. You have to use a
library that is specific to the platform you are programming on. There
is also no guarantee that library will be compatible with 'cout' so you
might have a lot of reprogramming to do.

For instance on Unix or Linux you could use the ncurses library, on
Windows you would use the Console functions in the Win32 API.

john
Nov 5 '05 #2

pa**********@att.net wrote:
I am writing a program with several cout statements that take up more
than the entire screen.

What commands/libraries should I #include so that the scroll bar
enables me to scroll up to the beginning lines?


Often command line tools don't care about that because there are more
and less utilities the user uses to pipe the output to.

$ my_program | less

Nov 5 '05 #3
ben
pa**********@att.net wrote:
I am writing a program with several cout statements that take up more
than the entire screen.

What commands/libraries should I #include so that the scroll bar
enables me to scroll up to the beginning lines?

Thank you,

Paul Epstein


A more pragmatic way is to display a screen of info, ask for user to hit
enter before feeding the next page.

ben
Nov 5 '05 #4
Ken
Since you are using windows I will presume that the program is showing
up in a terminal window.

If this is the case then change the default size of the terminal window
so when it opens it will have a scroll bar.

Do the following:
Start Button -> run
type cmd.
click on the little 'c:\' on the upper left corner.
On the screen that opens click on the Layout tab. My settings are:
Screen Buffer Size:
Width: 350
Height: 300
Window Size:
Width: 80
Height: 25

When you close the window say you want to have this apply to the
windows with the same title. If this does not work when you run your
program check to see if the title is the same if not just do the steps
again and when it runs it will be fine.

Or you could pipe it to a file like someone suggested and read it there.

Nov 5 '05 #5
Ken
PS: to pipe in DOS terminal...
name_of_program > name_of_text_file

Example:
dir > out.txt
REM then to read it...
edit out.txt

Nov 5 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: relisoft | last post by:
Seattle, WA -- Seattle-based Reliable Software® announces the release their Windows Library into the public domain. Reliable Software Windows Library, RSWL, is the foundation for their compact,...
1
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final...
0
by: James MA | last post by:
I'm going to develop a common library for applications in both Windows and Windows Mobile, this library will contain the bussiness rule only, which only contain some simply mathematics, and it...
2
by: Iwan Budihalim | last post by:
Dear All, I try to create Windows Control Library and embedded it to my web project. after successfull creating the windows control library and put the control to my web all the control show...
72
by: jacob navia | last post by:
We have discussed often the proposition from Microsoft for a safer C library. A rationale document is published here by one of the members of the design team at microsoft:...
0
by: =?Utf-8?B?YW5rMmdv?= | last post by:
Hi, Thanks in advance for reading this. Not sure where to post this question, but I hope someone in here can help. Trying to write to Event Log in VS 2005 (.NET 2.0) using Enterprise Library...
1
by: =?Utf-8?B?d2lubGlu?= | last post by:
Hello Using VS 2005 VB.net when a class library gets created you can right click the project and add a Windows Application and then set it as the "startup project" then in the Windows...
2
by: justin | last post by:
Hello, recently I was working on a project where I needed to automate PDF generation. I found two open source libraries that I liked, but the best one required the Windows.Forms class to be used in...
0
by: sebor | last post by:
October 29, 2007 -- The Apache C++ Standard Library project is pleased to announce that the official stdcxx 4.2.0 release is now available for download from the following location:...
3
FishVal
by: FishVal | last post by:
Windows Script Host Object library. Full name: Windows Script Host Object Model LibName: IWshRuntimeScripting Location: ...\WINDOWS\system32\wshom.ocx The present tip is closely related to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.