1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mice21 [21]
3 years ago
7

How to separate a local and private variable of the same name c++?

Computers and Technology
1 answer:
Hoochie [10]3 years ago
8 0
If you have a private class variable, say private int a; and a local function variable int b; then a and b can be used in that function in the same way, you can't spot the difference. A couple of conventions exist to make this more visible in your program:

- prefix the class member variables with something like m or m_ (just an underscore is done in c# but you can run into clashes with reserved names in c++)
- always dereference them with this->a
You might be interested in
Describe the ways in which a computer-aided design (CAD) drawing makes the details of an image easier to understand.
cupoosta [38]

Answer: CAD is mainly used for detailed engineering of 3D models or 2D drawings of physical components, but it is also used throughout the engineering process from conceptual design and layout of products, through strength and dynamic analysis of assemblies to definition of manufacturing methods of components.

Explanation:

3 0
3 years ago
Read 2 more answers
(8.03)
Hitman42 [59]

Answer is:  A

Because he would need to improve flawed areas.

7 0
3 years ago
The macro command is available on the ___ tab<br> Home<br> Insert<br> View<br> Design
nataly862011 [7]

      Answer                     : Insert tab                                              

5 0
3 years ago
Read 2 more answers
A data analyst adds descriptive headers to columns of data in a spreadsheet. How does this improve the spreadsheet?.
Marrrta [24]

The way that adding descriptive headers to columns of data in a spreadsheet improve the spreadsheet is that; It adds context to the data.

  • Usually in spreadsheets in Microsoft Excel, we could just naturally use letters like A, B or C or even numbers like 1, 2, or 3 as title headers for columns. However, sometimes it becomes necessary to use descriptive headers. This is because the person reading it may not be able to easily comprehend the details or numbers in that particular column.

  • Thus, in order to add more context to the data in the column of the spreadsheet and improve understanding of context using descriptive headers is very useful.

Read more on excel spreadsheets at; brainly.com/question/25863198

7 0
2 years ago
State and explain three importance of internet education​
Ne4ueva [31]

Answer:

It can improve the quality of education in many ways. It opens doorways to a wealth of information, knowledge and educational resources, increasing opportunities for learning in and beyond the classroom. Teachers use online materials to prepare lessons, and students to extend their range of learning

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following qualifies as a teamwork skill? A. Free associating B. Multitasking C. Listening D. Problem solving
    6·1 answer
  • Steffie wants to change the margins of a worksheet to Normal to align it better on a printed page. To do this, what can she do a
    5·1 answer
  • Which of the following is a benefit, as well as a risk, associated with client/server networks?
    14·1 answer
  • Assume you had a .csv file with data already populated that you wanted to use for a mail merge. Which button would you press to
    8·1 answer
  • To erase an entire entry in a cell and then reenter the data from the beginning, press the ____ key.
    5·1 answer
  • Tsunami warning systems that utilize satellite technology to send an alarm have recently been developed and installed. these sys
    14·1 answer
  • What is the efficiency (Big O Notation) of quicksort algorithm?
    15·1 answer
  • Describe the basic features of the relational data model and discuss their importance to the end user and the designer. Describe
    9·1 answer
  • Why have companies gotten more creative with ways to reach us?​
    14·1 answer
  • failed logins or instances of denial of access to restricted files may be indicators of compromise. suggest where records of suc
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!