Visit Our UNIX and Linux User Community

Full Discussion: C++ questions
Top Forums Programming C++ questions Post 302140730 by bscot008 on Monday 15th of October 2007 07:02:11 PM
Old 10-15-2007
C++ questions

1.) Let's say I have a list: apple1, apple2, apple3, apple4, apple5




Does anyone know how to display the txt file using c++?
Does anyone know how to insert apple6 into the text file using link list and show the whole list including apple6?
 
Test Your Knowledge in Computers #469
Difficulty: Medium
The NTP pool is a dynamic collection of networked computers that volunteer to provide highly accurate time via the Network Time Protocol to clients worldwide.
True or False?

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

i got some questions :)

Hi! Im new to all this but the computer club im in has unix i think. now my questions. 1.is it NTFS i need to partion the harddrive with to be able to use unix? 2.Unix and Linux whats the diffrense?yes im a noob got no idea been using crap windows for ages and hate it. 3.I got a win98... (2 Replies)
Discussion started by: Pierre
2 Replies

2. Programming

C questions

What does "extern" do? ex. extern int x; and another question, what about using static in functions? like: static void foo(), why? (2 Replies)
Discussion started by: Esaia
2 Replies

3. Solaris

2 Questions

Hello Everbody I hope you can give me a hand, I have some questions The first one itīs about some message that I donīt know what means, I was looking about it. but nothing. This is the message rsh: connection from bad port bsd-gw: Error reading from connection: Bad file number And my... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

4. UNIX for Dummies Questions & Answers

Just a few questions.

Hi everyone im new to this forums, i just wanted to get started by asking a few question(Im a Unix newbie) 1. How do i sort a file called "dirr" in a ascending order on the 3rd column 2. what does alias on=who do Thanks in advance!!! (1 Reply)
Discussion started by: Da Paper
1 Replies

5. Programming

two questions

hey all, I have question when am writing simple shell... in the child am calling execvp, i want the parent to know when execvp returns - 1. how can i let the parent know the result of execvp thanks in advance (9 Replies)
Discussion started by: joey
9 Replies

6. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

7. UNIX for Dummies Questions & Answers

Just had a few questions

1) The lpr and sort utilities accept input either from a file named on the command line or from standard input. a)Name two other utilities that function in a similar manner. b)Name a utility that accepts its input only from standard input. 2) Explain the following error message. What... (10 Replies)
Discussion started by: youngyou
10 Replies

8. UNIX for Dummies Questions & Answers

Vi questions

Hello, I would like to know how we can highlight/select a section of a file in vi and delete that section if we don't want to use the dd command to delete one line at at time. There is one where we don't want to delete the whole line , but up to a certain word. (2 Replies)
Discussion started by: Pouchie1
2 Replies
apple2(6x)							XScreenSaver manual							apple2(6x)

NAME
apple2 - Apple ][ display emulator SYNOPSIS
apple2 [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual] [-pro- gram command to run] [-basic] [-slideshow] [-text] [-meta] [-esc] [-bs] [-del] [-fast] [-fps] DESCRIPTION
The apple2 program simulates an original Apple ][ Plus computer in all its 1979 glory. It also reproduces the appearance of display on a color television set of the period. There are 3 modes: basic, slideshow, and text. Normally it chooses a mode randomly, but you can override with the -basic, -slideshow, or -text options. In basic mode a simulated user types in a Basic program and runs it. In slideshow mode it chooses a number of images from the image source you configured into XScreenSaver and displays them within the limita- tions of the Apple ][ display hardware. With only 6 available colors, you can only make out the general shape of the pictures. In text mode it displays the output of a command or the contents of a file or URL (via the default xscreensaver-text(1) program, which can be overridden with -program). In text mode, it is also a fully functional (if anachronistic) vt100 terminal emulator. OPTIONS
apple2 accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -mono If on a color display, pretend we're on a monochrome display. -install Install a private colormap for the window. -visual visual Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. -basic Choose basic mode -slideshow Choose slideshow mode -text Choose text mode -program sh-command In text mode, the command to run to generate the text to display. This option may be any string acceptable to /bin/sh. The program will be run at the end of a pipe, and any characters that it prints to stdout will be printed on the Apple ][ display. If the pro- gram exits, it will be launched again after 3 seconds. Default: xscreensaver-text(1). In text mode, apple2 emulates a vt100 terminal running on a 40x24 uppercase-only screen. For example: apple2 -text -program 'cat /usr/src/linux*/README | fold -sw40' apple2 -text -program 'ping apple.com' apple2 -text -program 'ps -e' apple2 -text -program 'od -txCz -w7 /dev/urandom' apple2 -text -program 'cat /dev/random' apple2 -text -fast -program 'xemacs -nw -q -f life' apple2 -text -fast -program 'xemacs -nw -q --eval "(hanoi 5)"' You can also use apple2 as an extremely lo-fi replacement for the xterm(1) and gnome-terminal(1) terminal emulators: apple2 -text -fast -program tcsh -pty In -text mode, launch the sub-program under a pty so that it can address the screen directly. This is the default. -pipe In -text mode, launch the sub-program at the end of a pipe: do not let it address the screen directly. -esc When the user types a key with the Alt or Meta keys held down, send an ESC character first. This is the default. -meta When Meta or Alt are held down, set the high bit on the character instead. -del Swap Backspace and Delete. This is the default. -bs Do not swap Backspace and Delete. -fast Normally, characters are printed at the speed of an original Apple][ computer; however, when using this program as a terminal emu- lator, the novelty of those 300 baud characters might wear off. You can use the -fast option to speed things up a bit. -fps Display the current frame rate and CPU load. TERMINAL EMULATION
By default, apple2 allocates a pseudo-tty for the -text-mode sub-process to run under. This has the desirable side effect that the program will be able to use ioctl(2) to fetch information about terminal parameters and window size, which many programs (such as top(1)) need to run properly. apple2 will also set the environment variable TERM to vt100 in the child process. Any characters typed on the apple2 window will be passed along to the sub-process. (Note that this only works when running in "window" mode, not when running in -root mode under xscreensaver.) ENVIRONMENT
DISPLAY to get the default host and display number. XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. TERM to inform the sub-process of the type of terminal emulation. X RESOURCES
Notable X resources supported include the following which correspond to standard TV controls: analogTVTint, analogTVColor, analogTVBright- ness, and analogTVContrast which correspond to standard TV controls. They range from 0 to 100,except for tint which is an angle between -180 and +180. TRADEMARKS
Apple ][ and Applesoft are trademarks of Apple Computer. SEE ALSO
xscreensaver(1), bsod(6x), xscreensaver-text(1), fortune(1), phosphor(6x), starwars(6x), ljlatest(6x), dadadodo(1), webcollage(6x), drift- net(1) EtherPEG, EtherPeek, console_codes(4). COPYRIGHT
Copyright (C) 2002-2003 by Trevor Blackwell. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHOR
Television and Apple ][ emulation by Trevor Blackwell <tlb@tlb.org>. Slideshow and text mode by Jamie Zawinski <jwz@jwz.org>. Pty and vt100 emulation by Fredrik Tolf <fredrik@dolda2000.com>. X Version 11 5.15 (28-Sep-2011) apple2(6x)

Featured Tech Videos

All times are GMT -4. The time now is 10:19 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy