Answer:
for (char i='a'; i<='e'; i++){
for (char j='a'; j<='e'; j++){
cout << i<< j<< "\n";
}
}
Explanation:
The loop runs all characters from the inner while the outer holds one character, by doing so, a will be matched with a,b,c,... Like wise b,c,d,... and on it goes.
Answer:
Modify
Explanation:
When people like your family or friends can access a computer, then the need to have permissions would certainly come in handy. There are six basic types of permission one can choose from and the modify option is one of them. It simply grants the holder the ability to read and write files and subfolders and also allows for the deletion of folders and files.
Explanation:
The difference between a class and an object is very simple a class is a template for objects.A class contains objects,methods,constructors,destructors. While an object is a member of the class or an instance of the class. for ex:-
#include<iostream>
using namespace std;
class car
{
public:
string color;
int numgears;
int engine capacity_cc;
bool ispetrol;
car(string color,int numgears,int engine capacity_cc,bool ispetrol)
{
this->color=color;
this->numgears=numgears;
this->capacity_cc=capacity_cc;
this->ispetrol=ispetrol;
}
};
int main()
{
car volvo = new car("red",6,2500,false);
return 0;
}
In the example we have class car and it's object is volvo.