answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What is type equivalence in programming language?

Type equivalence occurs when two variables are of the same type. For example, if both variables are int (integer variables), they are of equal types. Equivalence can also occur with two different types that are compatible with each other.

What will happen if Indian Passport damaged in US?

http://www.nasha.co.in/blog/2008/02/11/surviving-a-damaged-indian-passport/

How do you do peters petrol pumps as computing coursework AQA?

no idea mate, im doing the same projectif you find out let me know, akashskhera@hotmail.com

Depending on what language you are using, possible solutions may vary. Personaly, using vb.net, i created a segment class inheriting from usercontrol class, with properties of lit(boolean) and orientation(veritcal/horizontal) then put 7 of these onto another user control, and had arrays specifying which ones light up for each number. As for holding a key down, just have an incrememnting variable under a forms keydown event.

McDonger

I have done it already an it works here is my code:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla nec est. Suspendisse hendrerit felis ac odio. Ut a elit. Vivamus fermentum mi vel sapien. Aenean et tortor. Donec ante ipsum, volutpat non, eleifend vel, accumsan sit amet, eros. In dolor massa, blandit eget, cursus non, suscipit eget, ante. Ut nisi. Sed rutrum, ante sit amet mollis ullamcorper, libero DUI lacinia ante, vel ornare urna mauris ac mi. Nunc porttitor. Ut molestie arcu a ipsum varius tempor. Fusce tempus pulvinar est. In egestas nibh sit amet diam. Vivamus vel lacus eu risus suscipit vestibulum. Quisque lacinia. Cras risus. Fusce suscipit tempus est. Quisque sed tortor.

Curabitur scelerisque, tellus eget pharetra euismod, est mi auctor Leo, sed scelerisque ligula ante sed Leo. Integer sit amet DUI. Nulla facilisi. Phasellus tortor. Donec justo. Curabitur elit enim, tempor ac, vestibulum in, facilisis at, mauris. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam sagittis luctus turpis. In hac habitasse platea dictumst. Aliquam erat volutpat. Ut ultrices condimentum felis. Aenean laoreet, arcu a sagittis iaculis, velit mi consectetuer Leo, sit amet pulvinar enim purus at libero. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer condimentum DUI ac mi. In malesuada. Nulla facilisi. Sed pulvinar, arcu eu viverra suscipit, urna massa lobortis ipsum, sit amet facilisis tortor orci eu augue. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut in arcu posuere augue consequat placerat.

Morbi sollicitudin turpis in lectus. Quisque laoreet, dolor vel scelerisque tincidunt, Leo metus congue erat, vel euismod augue dolor ac arcu. In libero. Aliquam cursus. Vestibulum nisi nulla, convallis ut, auctor ut, viverra at, est. Duis laoreet, enim quis feugiat scelerisque, lorem erat posuere tortor, ac nonummy ipsum quam bibendum risus. Cras euismod tempus purus. Nulla in nulla. Donec urna mauris, porttitor sit amet, gravida quis, fermentum at, erat. Nullam augue. Vivamus mauris. Sed magna ante, ullamcorper in, accumsan ac, laoreet sed, purus. Fusce quis ante. Nulla facilisi. Donec pharetra varius orci. Sed neque. Curabitur lobortis adipiscing turpis.

Sed convallis laoreet massa. Morbi iaculis lobortis risus. Etiam mauris enim, mattis ac, luctus condimentum, interdum ut, orci. Curabitur porttitor pellentesque Leo. Vestibulum nunc erat, sollicitudin id, dapibus a, accumsan id, elit. Sed pretium. Ut dignissim ligula sit amet dolor. Integer sodales dapibus pede. Sed faucibus facilisis magna. Curabitur tempor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam malesuada enim a urna. Nulla facilisi. Nunc diam nisi, aliquet ullamcorper, viverra sit amet, vehicula accumsan, ligula. Maecenas lacinia, ante at luctus malesuada, ligula libero nonummy est, at convallis nisi tellus nec magna. Duis pede. Sed porttitor. Mauris sagittis, odio eget accumsan condimentum, elit tortor interdum arcu, eu aliquam massa sapien quis est. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;

Fusce quis DUI nec velit tristique aliquet. Donec sed lacus et ipsum tristique faucibus. Vestibulum malesuada sodales sem. Pellentesque varius vestibulum pede. Suspendisse in urna a ligula porta varius. Sed aliquam augue pharetra ipsum. Etiam tempus lorem ut erat. Aenean laoreet, massa non consequat imperdiet, tellus nulla tempus enim, vel fermentum nunc lectus et mauris. Suspendisse ut sapien nec mauris dignissim venenatis. Duis molestie sapien quis lectus. In vehicula, Leo id euismod porta, eros massa lobortis Leo, eu molestie lacus felis nec tortor.

What is the difference between WPF application and normal Windows Application?

Some differences:

-WPF requires the 3.0 framework

- WPF uses a new markup language called XAML which is an xml based language that allows you for richer cotrols as well as an option to separate the presentation from the code behind.

-WPF makes it easier to plug into video drivers and create 2D,3D and silver light UI's.

To clarify the above point - Silverlight is a sub-technology of WPF. WPF is a Windows Vista / XP SP2 or later technology that incorporates Microsoft's DirectX to overhaul the old technologies used to create Windows desktop applications. Before WPF, we had a technology that was 15 years old and needed to allow greater power for people creating new applications. No more of the standard look and feel of a Windows application - now developers can have controls that have effects previously only limited to computer games and other complicated software. Essentially Silverlight is a project that Microsoft have that attempts to put these technologies out into people's browsers. In other words, if Microsoft could, they would have amazing applications that had the power of desktop applications but over the Web. However, Web Standards mean that all browsers must support previous technologies as well as enforcing newer standards such as JavaScript overhauls, new controls, data types such as XML, etc.

Differerence in types of windows operating system?

Windows 95 is the oldest and has alot more bugs in it than any other, 98 is just like 95 but fewer bugs, me was meant to look like xp does but it's not that great, NT just like me but was made for networking, xp is the most common and has a better interface and doesn't need upgrades for networking, vista just like xp but has a more complicated interface

What is an example of 'syntax'?

first of all you have to find subject,predicator,objet(direct and indirect)adjunct(of time,place,manneretc)object predicate,subject predicate. e.x:

I have to go home.

I-subject

Have to go -predicate

home-adjunct(of place)

What is random scan graphics?

It is of 3-D

A single image random dot stereogram (SIRDS) is a computer-generated image consisting of seemingly random dots or lines, which, when viewed properly, coalesce into a previously unseen 3-D illusion. To see the hidden illusion, the viewer must relax the eyes and focus on a point in space behind the image. SIRDS work in the same way that stereoscopes, anaglyphs, and Polaroid 3-D movies do. Each eye receives a slightly different image, which the brain integrates into a single 3-D illusion. SIRDS became popular in the early 1990s with the Magic Eye series of books.

How do you handle the exceptions in COBOL programming?

Some keywords have exception checking available, some don't.

For example, the READ statement has AT END and INVALID KEY;

the math keywords ADD, MULTIPLY, COMPUTE, etc. have

ON OVERFLOW and so on to denote code to be executed when

those exceptions are detected. You can also specify a field for a

file to hold status codes which then can be interrogated after an

input/output statement to determine particular exceptions (duplicate inserts, etc.).

Is there a define type program for Unix?

If you are asking about how can you find the type of file something is, the command is 'file' followed by the filename. This command will attempt to tell you something about the file and how it might be used.

What is an example of coursework in an apprenticeship program?

Examples of coursework include safety, mathematics, schematic reading, and technical courses to meet particular state or federal licensing or certification requirements.

What language is used in sap R3?

I don't know about SAP R3, but original SAP is developed in ABAP (Advanced Business Application Programming) language. This programming language is developed by SAP. SAP is a German Based Company, which develops ERP.

Its similar to COBOL, its syntax is same as COBOL.


MaxDB is the database used in developing SAP.

How do you develop applications for mobile phones?

With the help of innovative mobile application software such as Windows and Symbian operating system and bulk messaging application software that support short messaging service (SMS) and Multimedia Messaging Service (MMS), mobile phones are not far from the technologies integrated in personal computers.

Can you define a server?

A server is nothing more than a computer that that is being used to distribute computer files (or other types of information) on demand to other computers. Once a server is enabled (which can be done on most computers if they have the requisite software) the computer waits for requests from remote computers (called clients), finds the requested files or data in its system, processes it if necessary, and then sends it to the remote computer.

How do you uprade psp firmware to 3.52 m33-4 I put the file into UPDATE in GAME but when i go to the memory stick icon on the psp it says corrupt data. How do i upgrade?

I believe that you have an official firmware. Most probably, applications wont work at all in an official firmware. But it's nothing to panic. You'll first have to downgrade your PSP from the present level to the below level (eg:- Downgrading from 3.52 to 2.0). After you install a custom firmware you can open up applications and even update hacked softwares. It's a long story how to downgrade but if you want proper and safe instructions, e-mail to me at hhidden@rocketmail.com. By the way my true name is Samitha Gurusinghe. This would be quite difficult for you pronounce so just call me Smith G.

hhidden@rocketmail.com

You use the operator to reverse the meaning of a Boolean expression?

The NOT operator. E.g., NOT TRUE evaluates to FALSE while NOT FALSE evaluates to TRUE.

What is an example of a decision-modeling routine contained in a decision support system?

Decision support systems (DSS) contain decision-modeling routines, such as what-if analysis, whereby users can try particular decisions in simulations before actual implementation.

How does RIP perform load balancing?

by defining a number of parallel paths to a single destination

by sending data across a number of equal cost paths

by using the hop count as the metric for path selection

Write abstract class in c plus plus?

An abstract class is any class definition that contains at least one pure-virtual function.

class AbstractClass

{

public:

virtual void DoSomething()=0; // Pure-virtual.

};

What is pqservice?

PQSERVICE is a hidden partition by Acer used in Acer, Packard Bell and EMachine's. It contain Recovery files, drivers, software like eRecovery and passwords.

What is a c-code to implement heapsort?

Heapsort(A) {

BuildHeap(A)

for i <- length(A) downto 2 {

exchange A[1] <-> A[i]

heapsize <- heapsize -1

Heapify(A, 1)

}

BuildHeap(A) {

heapsize <- length(A)

for i <- floor( length/2 ) downto 1

Heapify(A, i)

}

Heapify(A, i) {

le <- left(i)

ri <- right(i)

if (le<=heapsize) and (A[le]>A[i])

largest <- le

else

largest <- i

if (ri<=heapsize) and (A[ri]>A[largest])

largest <- ri

if (largest != i) {

exchange A[i] <-> A[largest]

Heapify(A, largest)

}

}

How do you upload data into a sharp xe-a505?

You can scan items in one at a time in 'learning mode' and assign prices and descriptions on the cash register keyboard. The pclink software that it comes with unfortunately does not support bulk import. I provide this service if you are interested.

Can a DLL be changed to an EXE?

In short, the answer is no. Unlike an EXE file which contains a single entry point (typically WinMain() or simply main() depending on the type of exe file), a DLL file is a library of functions intended to be linked into a running application. A DLL file can have a nearly infinite (it's based on file size and such) possible entry points.

So, for example, if your DLL file is math library, you might have a function called add() or subtract(). These functions by themselves are meaningless without parameters being passed to them. Additionally, you wouldn't be able to use a programmatic method of deciding which of the two functions would be a meaningful entry point to the file. So the EXE you created wouldn't know how to start.

You might however be thinking of a module similar to the DLL files which are executed by svchost.exe on Windows which loads a DLL into memory and runs it like a program. Service host defines a clear entry point into a DLL which is executed through there. I've never been a big fan of this way of doing things as task control is nearly impossible by doing this. You have to use fairly fancy task managers even to track down which DLL files are loaded by svchost.exe to figure out which instance of svchost.exe to kill. Still, while service host defines an entry point to the DLL, the DLL does not implement a main function recognizable by the EXE file loader in Windows. Therefore, you can't just simply change a svchost DLL file to an EXE file.

A slightly longer answer and much more hackish solution would be to find a utility which would translate a DLL file into separate object components that can be linked to another program statically. This IS possible as it would really only require dumping the DLL specific headers and rewriting the functions as COFF objects as opposed to DLL objects.

I highly recommend against doing this. If you don't have access to the source code of an application or library, it's a really bad idea to hack something together from the binary level. I'm assuming that since you're asking in the first place, you're not a system level developer with years of experience reverse engineering other peoples code. So, doing this would just be a bad idea. If you're trying to load a svchost.exe style DLL file in your own project, you'd be better off just implementing the svchost.exe API in your application and loading the DLL itself from there. Less things can go wrong that way and your code may still be debuggable.