Question about Operating Systems

1 Answer

On repitition take input from the user .for eg: 2now print how many times 2 is present currently for eg:1 times 2 will be printed as : 1 2 now 1 appears 1 times .so next out put will be : 1 1 1 2 (2 appears 1 times) similarly 3 1 1 2 1 3 2 1 1 2 like this we have to print 10 lines

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Sergeant:

    An expert that has over 500 points.

  • Expert
  • 336 Answers

What is your question

RCF

Posted on Sep 02, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

What would make my windows 7 to stop printing to my Lexmark Impact s305? message says cant print internal problem


Apologies, 'Can't print, internal error' is a very ambiguous error, clarification is needed.
Try to uninstall and reinstall the printer driver. If that does not help, there are two options:
1. Try and rebuild your user account (some technical knowledge is needed to do that), or
2. You can go ahead and contact Lexmark's tech support, they should be able to help you with tracing the origin of the error.

Aug 28, 2014 | Microsoft Windows 7 Home Premium 64BIT...

1 Answer

When we go to print, and view the print preveiw the print content is not shown, and does not print. All that is printed is the information from the computer (eg. page 1 of 1), but none of the documents.


Well, thanks for the info, I still need more info, please let me know the Browser's name (Internet explorer or Firefox or etc..etc..). Also please include the Name/Make of your printer. I can give you the instructions few tips here, but I don't want you to waste your time and also mine. Also, the print settings/Print preferences varies from Printer to Printer. Thanks and awaiting.

Aug 21, 2010 | Operating Systems

2 Answers

Task filter


Following are a handful things u have to know about VB file handling

for more details...go to http://www.5starsupport.com/info/vb.htm

File Handling (Generic)

While VB is working on a better approach (FileSystemObject), the built-in file handling statements are still the only way to access data other than through the VB database capabilities. Your skills in this area can make or break your ability to work with various formats. The OPEN/CLOSE statements are critical to success, but the LOF, EOF, and LEN functions are used even more often! It's also a given that you'll use the DIR function regularly.
Dir - Returns a filename that matches a pattern
temp$ = Dir ("*.*")
CurDir - Returns the current directory
temp$ = CurDir
MkDir - Creates a directory
mkdir ( "newdirectoryname" )
ChDir - Changes the current directory to a new location
chdir ( "newdirectoryname" )
ChDrive - Changes the current drive
ChDirve "A"
RmDir - Removes the indicated directory
rmdir ( "directoryname" )
Freefile - Returns an unused file handle
i = freefile
Open - Opens a file for access, locking it from other applications
open "filename" for input as #1
Close - Closes a file so that other applications may access it
close #1
LOF - Returns the length of a file in bytes
i = lof ( #1 )
EOF - Returns a boolean value to indicate if the end of a file has been reached
statusvariable = eof ( #1 )
Name As - Renames a file
name "filename1" as "filename2"
Kill - Deletes a file
kill "filename"
Fileattr - Returns attribute information about a file
i = int ( tempvariable )
GetAttr - Returns attributes of a file or directory
i = GetAttr("c:\windows\temp")
SetAttr - Sets the attributes of a file
SetAttr pathname, vbHidden
Reset - Closes all disk files opened by the OPEN statement
Reset
FileDateTime - Returns data file was created or last edited
FileDateTime ( filename )
FileLen - Returns length of file in bytes
FileLen ( filename )
FileCopy - Copies a file to a new name
FileCopy sourcefile, destinationfile
Lock - Controls access to a part or all of a file opened by OPEN
Lock #1
UnLock - Restores access to a part or all of a file opended by OPEN
UnLock #1
Width # - Set the output line width used by the OPEN statement
Width #2, 80
File Handling - ASCII-specific

While VB is working on a better approach (FileSystemObject), the built-in file handling statements are still the only way to access data outside of a data base. Your skills in this area can make or break your ability to work with various formats. The OPEN/CLOSE statements are critical to success, but the LOF, EOF, and LEN functions are necessary to build useful code.
Line Input - Reads an entire line of ASCII text
line input #1, tempvariable$
Write - Puts data in a file, with separators for the data
write #1, tempvariable$
Print - Puts data in a file with no separators
print #1, tempvariable$
Spc - Used in a print statement to move a number of spaces
Print #2, var1; spc(15); var2
Tab - Used in a print statement to move to TAB locations
Print #2, var1; Tab(20); var2
File Handling - Binary-specific

VB also support features which allow you to access a file on a byte-by-byte basis. The good thing about it is that you have more control, the bad thing is that you may have to write more code. Generally, a programmer will use the option (ASCII or Binary access) according to the least code he has to write. For binary access the Get/Put are equivalent to the Line Input and Print functions used in ASCII text file access. The big difference between the two is that binary access will read (Get) an exact number of bytes of data, and the reading can start at any byte within the file.
Get - Reads data from a file
get #1, anyvariable
Put - Puts data into a file
put #1, anyvariable
Seek - Moves the current pointer to a defined location in a file
seek #1, 26
Input
input #1, anyvariable
Loc - Returns current position with an open file
i = Loc(#2)

Sep 14, 2009 | Microsoft Windows XP Professional With...

4 Answers

Go to print checks and application closes


I had the same problem and contacted Intuit. If there are any duplicate check numbers for the checks you are about to print, a bug in R6 causes the program to blow out. I had some check numbers that were from over 10 years ago that were causing the problem. Go in and tell it not to warn for duplicate numbers, and it may fix the problem. They said it is to be cured in future releases.

Jun 10, 2009 | Intuit Quicken Premier 2009 for PC

1 Answer

Name some common dialog boxes and mention its uses.


Hi,

There are numerous common dialog boxes in windows, please note i am very specific to windows (and not VB since VB has difference nominclature for common dialog boxes)

following are some windows common dialog boxes:
  1. UserInput dialog box: to fetch user input.
  2. Alert dialog box: to display some alert information to the user.
  3. File Open Dialog Box: to browse and open file from selected filesystem.
  4. FileSave dialogbox: to save a file to a filesystem on selected path.
  5. Print dialog box: to setup printer preferences and print setting commands routing to printer.

Thanks.

Mar 07, 2009 | Acer Operating Systems

1 Answer

How do I fax from OpenOffice.org Writter??? I have a HP Officejet J5780 that fax hard copy just fine, but want to fax right from the word processor. I am using Vista Home os.


Sending Faxes and Configuring OpenOffice.org for Faxing
To send a fax directly from OpenOffice.org, you need a fax modem and a fax driver that allows applications to communicate with the fax modem.
Sending a Fax Through the Print Dialog
1. Open the Print dialog by choosing File - Print and select the fax driver in the Name list box.
2. Clicking OK opens the dialog for your fax driver, where you can select the fax recipient.



Configuring OpenOffice.org a Fax Icon
You can configure OpenOffice.org so that a single click on an icon automatically sends the current document as a fax:
1. Choose Tools - Options - OpenOffice.org Writer - Print.
2. Select the fax driver from the Fax list box and click OK.
3. Click the arrow icon at the end of the Standard bar. In the drop-down menu, choose Customize.
The Toolbars tab page of the Customize dialog appears.
4. Click Add Commands.
5. Select the “Documents” category, then select the “Send Default Fax” command.
6. Click Add and then Close.
7. On the Toolbars tab page, click the down arrow button to position the new icon where you want it. Click OK.
Your Standard bar now has a new icon to send the current document as a fax.

Mar 06, 2009 | Microsoft Windows Vista Home Premium with...

1 Answer

Odd or integer?


hmm here is a psuedo to consider

input number n
while
n = n / 2
if n = 0 then print n = even , break loop
if n < 0 then print n is odd
loop

Jul 12, 2008 | Operating Systems

2 Answers

File handling in visual basic 6.0


Following are a handful things u have to know about VB file handling

for more details...go to http://www.5starsupport.com/info/vb.htm

File Handling (Generic)

While VB is working on a better approach (FileSystemObject), the built-in file handling statements are still the only way to access data other than through the VB database capabilities. Your skills in this area can make or break your ability to work with various formats. The OPEN/CLOSE statements are critical to success, but the LOF, EOF, and LEN functions are used even more often! It's also a given that you'll use the DIR function regularly.
Dir - Returns a filename that matches a pattern
temp$ = Dir ("*.*")
CurDir - Returns the current directory
temp$ = CurDir
MkDir - Creates a directory
mkdir ( "newdirectoryname" )
ChDir - Changes the current directory to a new location
chdir ( "newdirectoryname" )
ChDrive - Changes the current drive
ChDirve "A"
RmDir - Removes the indicated directory
rmdir ( "directoryname" )
Freefile - Returns an unused file handle
i = freefile
Open - Opens a file for access, locking it from other applications
open "filename" for input as #1
Close - Closes a file so that other applications may access it
close #1
LOF - Returns the length of a file in bytes
i = lof ( #1 )
EOF - Returns a boolean value to indicate if the end of a file has been reached
statusvariable = eof ( #1 )
Name As - Renames a file
name "filename1" as "filename2"
Kill - Deletes a file
kill "filename"
Fileattr - Returns attribute information about a file
i = int ( tempvariable )
GetAttr - Returns attributes of a file or directory
i = GetAttr("c:\windows\temp")
SetAttr - Sets the attributes of a file
SetAttr pathname, vbHidden
Reset - Closes all disk files opened by the OPEN statement
Reset
FileDateTime - Returns data file was created or last edited
FileDateTime ( filename )
FileLen - Returns length of file in bytes
FileLen ( filename )
FileCopy - Copies a file to a new name
FileCopy sourcefile, destinationfile
Lock - Controls access to a part or all of a file opened by OPEN
Lock #1
UnLock - Restores access to a part or all of a file opended by OPEN
UnLock #1
Width # - Set the output line width used by the OPEN statement
Width #2, 80
File Handling - ASCII-specific

While VB is working on a better approach (FileSystemObject), the built-in file handling statements are still the only way to access data outside of a data base. Your skills in this area can make or break your ability to work with various formats. The OPEN/CLOSE statements are critical to success, but the LOF, EOF, and LEN functions are necessary to build useful code.
Line Input - Reads an entire line of ASCII text
line input #1, tempvariable$
Write - Puts data in a file, with separators for the data
write #1, tempvariable$
Print - Puts data in a file with no separators
print #1, tempvariable$
Spc - Used in a print statement to move a number of spaces
Print #2, var1; spc(15); var2
Tab - Used in a print statement to move to TAB locations
Print #2, var1; Tab(20); var2
File Handling - Binary-specific

VB also support features which allow you to access a file on a byte-by-byte basis. The good thing about it is that you have more control, the bad thing is that you may have to write more code. Generally, a programmer will use the option (ASCII or Binary access) according to the least code he has to write. For binary access the Get/Put are equivalent to the Line Input and Print functions used in ASCII text file access. The big difference between the two is that binary access will read (Get) an exact number of bytes of data, and the reading can start at any byte within the file.
Get - Reads data from a file
get #1, anyvariable
Put - Puts data into a file
put #1, anyvariable
Seek - Moves the current pointer to a defined location in a file
seek #1, 26
Input
input #1, anyvariable
Loc - Returns current position with an open file
i = Loc(#2)

Jan 23, 2008 | Operating Systems

1 Answer

NET WORK DOS PRINT


1.
copy [disk][path][filename] print

2.
print [disk][path][filename]

Example:
copy c:\log.txt print
print c:\log.txt

Jan 12, 2008 | Microsoft Windows XP Professional With...

3 Answers

Printer server


hi veeday you have to check the properties while installing a network printer if ur printer is compatible for that thing or not , but you can assign priority to user printer & ur printer will print for that pc first , path > go to the properties of n/w printer & set priority  

Oct 17, 2007 | Microsoft Windows Server Standard 2003 for...

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

48 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18298 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...