How to Fix Microsoft Product Activation Failed for Microsoft Word, Excel, and PowerPoint in windows 10
1. First of all, you have to open “My Computer or PC” from the Desktop.
2.
Then go to the Local Disk(C drive),
3.
Then you have to select and Click “Program
Files(*86)”,
4.
After
Entering the Program Files (*86), you have to select and Click ”Common
files”.
5.
After
Entering into the “Common files”, you have to select and Click “Microsoft
Shared”.
6.
After
Entering into the “Microsoft Shared”, you have to select and Click ”OfficeSoftwareProtectionPlatform.”
7. After Entering into the “OfficeSoftwareProtectionPlatform”, you will get an application “OSPPREARM” and Open that with “Run as administrator”
8.
Then Click, Yes and All are Okay. You can continue
twice with steps 7 and 8.
9. After completing 1-8 Steps, Now open any Microsoft
Office application such as excel, word, or PowerPoint, surprisingly “Microsoft
office Product activation failed will remove automatically”.
If you don't understand, then see the image that is given is below
Thanks for watching
#include
ReplyDeleteusing namespace std;
void q1(string s, int i);
void q2(string s, int i);
void q3(string s, int i);
void q4(string s, int i);
void q1(string s, int i)
{
if (i == s.length())
{
cout << "Yes \n";
return;
}
if (s[i] == 'a')
q1(s, i + 1);
else
q2(s, i + 1);
}
void q2(string s, int i)
{
if (i == s.length())
{
cout << "No \n";
return;
}
if (s[i] == 'a')
q1(s, i + 1);
else
q2(s, i + 1);
}
// Function for the state Q3
void q3(string s, int i)
{
// Condition to check end of string
if (i == s.length())
{
cout << "Yes \n";
return;
}
// State transitions
// 'a' takes to q4, and
// 'b' takes to q3
if (s[i] == 'a')
q4(s, i + 1);
else
q3(s, i + 1);
}
// Function for the state Q4
void q4(string s, int i)
{
// Condition to check end of string
if (i == s.length())
{
cout << "No \n";
return;
}
// State transitions
// 'a' takes to q4, and
// 'b' takes to q3
if (s[i] == 'a')
q4(s, i + 1);
else
q3(s, i + 1);
}
// Function for the state Q0
void q0(string s, int i)
{
// Condition to check end of string
if (i == s.length())
{
cout << "No \n";
return;
}
// State transitions
// 'a' takes to q1, and
// 'b' takes to q3
if (s[i] == 'a')
q1(s, i + 1);
else
q3(s, i + 1);
}
// Driver Code
int main()
{
int i, l,flag=0;
char s[100];
while(gets(s)){
l=s.length();
for(i=0;i<=1;i++){
if(s[i]!='a' || s[i]!='b' )
{
cout<< "invalid input"<<endl;
flag=l;
break;
}}
if(flag==0)
{
q0(s, 0);
}
// Since q0 is the starting state
// Send the string to q0
}
}
Post a Comment
Never enter the spam link in the comment section. If you have any inquiry, please let me know in the comment section.