answersLogoWhite

0

📱

Microsoft Windows

Windows is a consumer and enterprise grade family of operating systems developed by Microsoft Corporation. First released in 1985, it has become the best-selling operating system in computer history, and has 90% of the total operating system market.

18,535 Questions

What is looping?

prime a loop is that how mach time it executed either max time or minimum time

What is difference between for loop and while loop?

One first basic rule is that you should use the for loop when the number of iterations is known. For instance:

  • The loop iterates over the elements of a collection.
  • The loop iterates over a range of values which is known in advance at execution time.
  • The object provides a way to iterate over its elements with a for statements (e.g files).

The while loop is the more general one because its loop condition is more flexible and can be more complicated than that of a for loop. The condition of a for loop is always the same and implicit in the construction. A for loop stops if there are no more elements in the collection to treat. For simple traversals or iterations over index ranges it is a good advice to use the for statement because it handles the iteration variable for you, so it is more secure than while where you have to handle the end of the iteration and the change of the iteration variable by yourself.

The while loop can take every boolean expression as condition and permits therefore more complex end conditions. It is also the better choice if the iteration variable does not change evently by the same step or if there are more than one iteration variable. Even if you can handle more than one iteration variable in a for statement, the collections from which to choose the values must have the same number of elements.

Note: In C 'for' and 'while' can be easily replaced by each other:

while (exp) stmt

for (;exp;) stmt

for (exp1;exp2;exp3) stmt

{ exp1; while (exp2) { stmt exp3}}

How do you make a window full screen?

Well, if we're talking about Windows you should make the window as big as the display resolution, and use ITaskbarList2::MarkFullscreenWindow to make sure the taskbar has lower z-order than your window.

What is the while loop in C programming?

"while" is an entry controlled loop statement i.e the condition is evaluated first and if it is true the body of the loop is evaluated.This process is repeated until the test condition is false;then the control is transfered out of the loop.

The general form of while is as following

syntax:

while (<condition>)

{

<statements>;

}

Is the cost of creating a process or a thread higher?

Raj, Processes are ALWAYS more expensive than threads. Threads are considered a component of a process. That is...a process can consist of several threads of execution. The exact "cost" in memory, or allocation of time depends on the operating system, but a thread is frequently 10% or less than the "cost" of a process.

AnswerWell this answer seems to be like what do you think of whether putting a new task force to do same task is Costly or using the same task force to do it for yourself when having one factory for processing in a pretty cooperative way, the answer is as usual putting same task force and that is why processes are heavy and threads are light. Because each time allocatin a new process means to launch a new set of each resources needed for its execution while Thread share some props in common that doesn't need to be reallocated and those behave like shared buffers or resources. For more refer to any O/S book.

How do you create a link?

Google Chrome Can. Just find a Most visited weblink, drag it into the apps page, and, TA-DA! YOU HAVE YOUR FIRST LINK!

How do you make a batch file to delete all files and folders in a particular folder?

The command is as follows :

del c:\[directory you want to delete] /s

This would need to be in a text file created in notepad, and saved as a .bat file. Or you could type EDIT from the command line to bring up the old DOS editor.

Improving answer: Step 1: Open up Notepad Step 2: Type the following code in: @echo off deltree [Your hard drive, usually C:]\[Directory you want to delete /s for quietly Step 3: Save as "whateveryouwantwithoutquotes.bat"

How do you convert HTML images into JPEG images?

haller?? think it logically!..^_^

right click in the images in the HTML then save in your computer as jpeg actually if you save it , automatically it will save as jpeg or gif.

HTML is for creating a website if you want to put your image in your website there have a code like this

background="/images/image_name.gif"> like that ok??

-louieann.1990@yahoo.com

How do you run jar file on computer?

you can play the jar files by transfer it in to nokia mobile phones

What is an external noise?

examples of internal noise.thermal noise,short noise,i/f noise

How do you run daemon process?

In Unix, with a C program you can run a quick function to do this. There is an example at:

(link moved to link section)

AnswerIn Solaris, you need to disconnect your program from your "terminal" ( scripts generally inherit the stdin, stdout, and stderr of your shell when you execute them ). For a shell program you can execute "nohup $program < /dev/null > /dev/null 2>&1 &". Or the shell program can redirect its own stdin, stdout, and stderr -- then you can execute "nohup $program &".

What is the different between loop and do while loop?

no difference in logic in both of them you put the key to enter :while( ....),for(;....;)

but infor loop you have option to initialize value and make operation on it

for(int i=0;...;i++){} same int i=0; while(..){ i++;}

When you double click your c drive it says application cannot be run in Win32 mode?

I also had this problem few dayz before and it just made me mad, i was felt into that situation that i even cannot format ma windows so, finally i researched upon it and found the solution :-

1. Go to your first drive for example c:/ and delete the hiden file autorun.inf also delete from recycle bin

2. Then create a folder name autorun.inf after delete first one as soon as possible

3. do the same thing with all of your drives

4. Log off ur PC your PC

bingo ! you have your PC recovered back

What the difference between pretest loop and posttest loops?

The difference is that pre means before and post means after in Latin so it's tested before or after. :)

Write the Algorithm of inserting an element at middle of linked list?

I am telling you the algorithm of inserting an element at any location of simply link list:-


insert_loc(start,item,loc)

step1. [Check for overflow]
if ptr=NULL
then print overflow
exit
else
[ptr=(node*) malloc (size of nodes)] {memory allocation}

step2. set ptr->info=item
step3. set i=1
set temp=start
step4. Repeat step 5&6 until istep5. set temp=temp->next
step6. set i=i+1
step7. set ptr->next=temp->next
step8. set temp->next=ptr

Good luck

Rjames007

How do you change font size on computer screen?

To enlarge the font on a computer screen, hold down CTRL and push the + sign. You could also go to where it says font, and change it from 11 to 14 or higher. It depends on what document you are in.

Types of word processing?

Microsoft Word and Word Perfect are two types of word Processing systems. There are others out these but these are just two examples.

What defined as sets of formatting characteristics such as font font size font color cell borders and cell shading?

On web pages, fonts and their attributes are defined using cascading style sheets (CSS). For example the top-level header could be styled as:

h1 {

font-family: Helvetica, Arial, sans-serif;

font-size: 3em;

font-weight: bold;

}

Program to copy one file into another using command line arguments?

#include<iostream>

#include<fstream>

#include<algorithm>

#include<string>

int copy_file (const std::string& src_name, const std::string& dst_name)

{

// Ensure source exists for input.

if (!std::ifstream (src_name).good())

{

std::cerr << "The system cannot find the file specified.\n" << std::endl;

return -1;

}

// If destination exists (for input), ask to overwrite.

if (std::ifstream (dst_name).good())

{

std::string yn;

while (!yn.size())

{

std::cerr << "The destination file exists. Overwrite? [Y/N]";

std::getline (std::cin, yn);

if (yn.size())

{

switch (yn[0])

{

case ('Y'): case ('y'): continue;

case ('N'): case ('n'): return -1;

default: yn.clear();

}

}

}

}

// Try opening or creating the destination.

std::ofstream dst (dst_name, std::ios_base::binary);

if (!dst.good())

{

std::cerr << "The destination file could not be created or opened for writing.\n" << std::endl;

return -1;

}

// Definitely good to go.

std::ifstream src (src_name, std::ios_base::binary);

std::cout << "Copying " << src_name << " to " << dst_name << std::endl;

dst << src.rdbuf();

std::cout << "\t1 file copied.\n" << std::endl;

return 0;

// Note: both files close when they fall from scope...

}

int main (int argc, char* argv[])

{

switch (argc)

{

case (3):

return copy_file (argv[1], argv[2]);

case (2):

if (std::string(argv[1])!="/?")

break;

// strip the path and extension from the command

std::string command (argv[0]);

size_t last_backslash = command.rfind ('\\') + 1;

size_t last_period = command.rfind ('.');

std::string exe = command.substr (last_backslash, last_period-last_backslash);

std::transform (exe.begin(), exe.end(), exe.begin(), ::toupper);

std::cerr << "Copies a file to another location.\n\n"

<< exe << " source destination\n\n"

"source\t\tSpecifies the file to be copied.\n"

"destination\tSpecifies the filename for the new file.\n" << std::endl;

return 0;

}

std::cerr << "The syntax of the command is incorrect.\n" << std::endl;

return -1;

}

What are the disadvantages and advantages of windows application?

•A program or group of programs designed for end users. Software can be divided into two general classes: systems softwareand applications software. Systems software consists of low-level programs that interact with the computer at a very basic level. This includes operating systems, compilers, and utilitiesfor managing computer resources. In contrast, applications software (also called end-userprograms) includes database programs, word processors, and spreadsheets.Figuratively speaking, applications software sits on top of systems software because it is unable to runwithout the operating system and systemutilities.•A program or group of programs designed for end users. Software can be divided into two general classes: systems software and applications software. Systems software consists of low-level programs that interact with thecomputer at a very basic level. This includesoperating systems, compilers, andutilities for managing computerresources. In contrast, applications software (also called end-user programs) includes databaseprograms, word processors, andspreadsheets. Figuratively speaking, applications software sits on top of systems software because it is unable to run without the operating system andsystem utilities.

How can you guess the right password in someones account?

I don't think trying to guess someone's password is a good idea, as it might get you into a lot of trouble, but most normal people usually use words or phrases to do with their life or someone close to them, and occasionally strings of numbers like 123.

What event started WW1?

The Blackout. I am doing a world war 2 project for school. The Blackout in World War 2 started on the 1st of September 1939, 2 days after the outbreak of the war. (WWII) I am still not sure when the Blackout ended. Good Luck with that, thingymabob
Septenber 1, 1939-September 2, 1945

What are runtime errors in c?

A run time error occurs when a compiled program executes, and during execution, the binary code attempts a task that is not permitted by the operating system or libraries. Divide by zero is an example of a run time error. When the executed program divides one variable by a second variable, and the second variable holds a value of zero, the run time library will issue a run time error. Since the compiler cannot predict the values held by the variables, it cannot prevent such an error from occurring, and so the run time library traps the run time error during program execution.

.

Some run time errors include:

- divide by zero

- no stack space

- memory reference out of bounds

- write protected file

How do you use dll?

DLL files are files shared between a number of software programs (and are similar to .EXE files), used in Microsoft Windows and OS/2 operating systems. A static library attaches itself to the executable itself and hence supose some function A is to be used by n applications, all n apps will have functions A definition in their executables. BUT if func A is written in a dynamic link library or DLL, first DLL should export this function. and then n apps can call into this function. it will save a lot of memory. you can also dynamically load the library by calling LoadLibrary function. generally DLL will export all required functions which are supposed to be called by applications.