// archives

using namespace std;

This tag is associated with 2 posts

Namespaces

If you use iostream instead of iostream.h

You should use the following namespace directive to make the definitions in iostream available to your program (A-1):

This is called a using directive

Example of (A-1)

using namespace std;

Namaspace support

Is designed to simplify the writing of programs that combine preexisting code from several vendors

One potential problem is that you might use [...]

Practical Learning: Using Short Integer Variables

1. Start your programming environment and create a new project named ABCCS1.
Depending on your environment, if the file was not created already, then create a source file and save it as, or name it exercise.cpp

2. Set the file’s content as follows (A-1):

Example of (A-1)

#include <iostream>
 
using namespace std;
 
int main()
 
{
 
unsigned short shirts;
 
unsigned short pants;
 
unsigned short dresses;
 
unsigned short [...]