Wednesday 9 April 2014

Common syntax errors in C++

These are some regular punctuation failures that were acknowledged by some more established compilers yet are accounted for and dismisses by fresher variants, especially g++ Version 4. 

My formats FAQ blankets some different issues identified with sentence structure and name look up in layouts that can show up when redesigning or exchanging compiler.

Reliance on friend name injection

The Annotated Reference Manual (ARM), an early depiction of C++, expressed that a revelation companion works in a class was dealt with as a presentation in the encompassing namespace (this is called "companion name infusion"). 

This is an exemption to the general decide that names must be characterized or over-burden in a square connected with the extension they are characterized in. It has especially odd impacts for class formats, as a companion announcement in a class format might be instantiated alongside whatever remains of the layout. 

In standard C++, companion name infusion is not performed. Companion works that need to be found by common name gaze toward (restricted to contention ward find) should first be proclaimed in the class' namespace.

Wrong      

          class foo;

class bar
{
    // ...
    foo * foo _;
};

class foo
{
    // ...
    friend int baz(const bar &);
};

int main()
{
    return baz(bar()); 
}             


Right 
             class foo;

class bar
{
    // ...
    foo * foo _;
};

class foo
{
    // ...
    friend int baz(const bar &);
};

int baz(const bar &);

int main()
{
    return baz(bar()); 
}
               
       "News Powered By"

              

Read More

How to Fix a Keyboard That Has the Wrong Characters

For a few of us, writing quick and writing correctly is test enough. It truly makes it hard when your console has gone a bit haywire! Some of the time consoles get their letters "improved," making writing for all intents and purpose unimaginable. Be that as it may, much of the time, there is an approach to alter it.
Method 1 of 3: On a PC
Fix a Keyboard That Has the Wrong Characters Step 1.jpg

1
Open up the Control Panel. This can be done by either pressing WIN + R, then typing "Control" (without quotes) or going to My Computer and clicking "Control Panel" in the Other Places area on the left.
Fix a Keyboard That Has the Wrong Characters Step 2.jpg

2
Look for "Regional and Language Options". The categories are alphabetized, so finding it shouldn't be hard. Once you find it, double-click on it. A window should come up with the tabs "Regional Options," "Language Options," and "Advanced" tabs at the top.
Fix a Keyboard That Has the Wrong Characters Step 3.jpg

3
Select the "Regional Options" tab. There, you will find a pull down menu, aSamples section, and a Location menu. Make sure that both menus are set to your local region's settings.
Image:Fix a Keyboard That Has the Wrong Characters Step 4.jpg


4
Click on the "Customize" button next to the top pull down menu. Sometimes these settings can interfere with your keyboard.
Fix a Keyboard That Has the Wrong Characters Step 5.jpg

5
Click on the Numbers tab. Check the Measurement system:" field, and verify your measurement system is set to whatever system your region uses.
  • Once the Numbers tab is set, verify CurrencyTime, and Date settings are all correct, then close the "Customize Regional Options" window.
Fix a Keyboard That Has the Wrong Characters Step 6.jpg

6
Click on Languages tab. Then click on the Details button. Choose your regional language from "Default Input language" menu, then choose the keyboard of your language from the "Installed Services" window.
  1. 7
    Click the Apply button at the bottom. Then click Apply at the bottom of the "Regional and Language Settings" window.
  2. 8Restart your computer, then test out the keys using a word processing program such as Notepad or Microsoft Word. If the problem persists, it may be a hardware issue.
  3. ""News Powered By"" 
  4. XP

Read More

8085 microprocessor

1. What is an assembler?
An assembler is software that takes a source code file, written in text format, and translates it into an “object file”.
2. What are the different assembly languages used for 8085 microprocessor?
Two different assembly languages are used for 8085 microprocessor- one is used by the manufacturer INTEL and the other defined in IUL 77.
3. What is coprocessor?
A coprocessor is an arithmetic coprocessor, as it is so called, performs operations like exponentiation, trigonometric functions, etc. to implement these functions in CPU hardware is a costly one and the software implementation of the above slows down the processor. A coprocessor overcomes these difficulties.
The coprocessor has its own instruction set. The CPU and the coprocessorexecute their respective instructions from the same program.
The instructions belonging to the coprocessor are fetched and decoded by the CPU but executed by the coprocessor.
4. What is coprocessor Trap?
When a coprocessor is not connected in the system and the functions of thecoprocessor is done by the CPU by writing its instructions from a predetermined location in the form a software routine and invoked by interrupt, it is known as acoprocessor trap.
5. What is a debugger?
A debugger is a program that debugs and object code program by placing in into the system memory and subsequently executing the same.
6. Distinguish between KB, MB, GB, TB, and PB.
These stands for Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte respectively.
7. Explain single and double precision.
Single and double precision mean 32 bits and 64 bits storage areas respectively. The extra storage space made available from single to double precision- utilized for accommodating more number or mantissa bits- would result in much more accuracy from the system.

          "News Powered by"

                            

 

Read More

Microprocessor – INTERVIEW QUESTIONS.

16.How many interrupts are there in 8085?

Ans:- There are 12 interrupts in 8085.
17.What is clock frequency for 8085?
Ans:- 3 MHz is the maximum clock frequency for 8085.
18.What is the RST for the TRAP?
Ans:- RST 4.5 is called as TRAP.
19.In 8085 which is called as High order / Low order Register?
Ans:- Flag is called as Low order register & Accumulator is called as High order Register.
20.What are input & output devices?
Ans:- Keyboards, Floppy disk are the examples of input devices. Printer, LED / LCD display, CRT Monitor are the examples of output devices.
             "News Powered By"


Read More

A history of Windows till 2012-2013

2012: Windows 8 features apps and tiles 

Windows 8 is a reimagined working framework, from the chipset to the client encounter, and presents a completely new interface that works easily for both touch and mouse and console. It works as both a tablet for stimulation and a full-emphasized PC for accomplishing things. Windows 8 additionally incorporates upgrades of the natural Windows desktop, with another task bar and streamlined document administration. 

A PC running Windows 8


Windows 8 characteristics a Start screen with tiles that join with individuals, records, applications, and sites. Applications are up front, with access to another spot to get applications the Windows Store—fabricated right into the Start screen. 

Alongside Windows 8, Microsoft additionally propels Windows RT, which runs on a few tablets and Pcs. Windows RT is intended for smooth gadgets and long battery life, and   only runs applications from the Windows Store. It additionally accompanies an inherent rendition of Office that is advanced for touchscreens. 

Nerd trivia: Power clients perceives that Windows 8 makes the discovery and redress of record framework failures both more transparent and less meddlesome...
"News powered by"

Read More

A history of Windows

1975–1981: Microsoft boots up
Microsoft co-founders Paul Allen (left) and Bill Gates surrounded by computers
Microsoft co-founders Paul Allen (left) and Bill Gates

It's the 1970s. At work, we depend on typewriters. On the off chance that we have to duplicate a record, we likely utilize a mimeograph or carbon paper. Few have known about microcomputers, however two junior workstation devotees, Bill Gates and Paul Allen, see that individualized computing is a way to what's to come. 

In 1975, Gates and Allen structure an organization called Microsoft. Like most new businesses, Microsoft starts little, yet has an immense vision—a PC on every desktop and in every home. Throughout the one years from now, Microsoft starts to change the ways we work.
The beginning of Ms‑dos 

In June 1980, Gates and Allen contract Gates' previous Harvard colleague Steve Ballmer to help run the organization. The one month from now, IBM approaches Microsoft around a venture code-named "Chess." accordingly, Microsoft concentrates on another working framework the product that oversees, or runs, the workstation equipment and likewise serves to conquer any hindrance between the machine fittings and projects, for example, a statement processor. It's the establishment on which machine projects can run. They name their new working framework "Ms‑dos." 

At the point when the IBM PC running Ms‑dos sends in 1981, it acquaints an entire new dialect with the overall population. Writing "C:" and different obscure summons step by step gets to be a piece of every day work. Individuals run across the oblique punctuation line (\) key. 

Ms‑dos is viable, additionally demonstrates troublesome to comprehend for some individuals. There must be a superior approach to manufacture a working framework. 

Nerd trivia: Ms‑dos remains for Microsoft Disk Operati
 "NEWS POWERED BY"
     


Read More

The History of Java Technology

Since 1995, Java has changed our world . . . and our expectations..

Today, with innovation such a piece of our every day lives, we underestimate it that we might be associated and access provisions and substance anyplace, at whatever time. In view of Java, we anticipate that advanced gadgets will be more brilliant, more useful, and way additionally amusing. 

In the early 90s, developing the force of system figuring to the exercises of commonplace life was a radical vision. In 1991, a little aggregation of Sun designers called the "Green Team" accepted that the following wave in figuring was the union of advanced customer gadgets and Pcs. Headed by James Gosling, the group worked day and night and made the modifying dialect that might upset our reality – Java. 

The Green Team exhibited their new dialect with an intuitive, handheld home-excitement controller that was initially focused at the computerized digital TV industry. Lamentably, the idea was much excessively progressive for the them at the time. Be that as it may it was only ideal for the Internet, which was simply beginning to take off. In 1995, the group advertised that the Netscape Navigator Internet program might fuse Java engineering. 

Today, Java saturates the Internet, as well as is the undetectable drive behind large portions of the provisions and gadgets that power our normal lives. From cellular telephones to handheld gadgets, amusements and route frameworks to e-business results, Java is all around


                                           "NEWS POWERED BY"
                                                    
      

                                        
                                       
Read More
© World Of Programmers All rights reserved | Theme Designed by Seo Blogger Templates