Pangram:

A pangram or holoalphabetic sentence is a sentence using every letter of a given alphabet at least once. The best-known English pangram is “The quick brown fox jumps over the lazy dog.”

Lipogram:

A lipogram is a kind of constrained writing or word game consisting of writing paragraphs or longer works in which a particular letter or group of letters is avoided—usually a common vowel, and frequently E, the most common letter in the English language.

#include <iostream>

using namespace std;

string alphabets = "abcdefghijklmnopqrstuvwxyz";

void panLipogramChecker(string s)
{
    for(int i=0; i<s.length(); i++){
        s[i] = tolower(s[i]);
    }

    int counter = 0;

    for(int i=0; i<26; i++){
        int pos = s.find(alphabets[i]);
        if(pos<0 || pos>s.length()){
            counter +=1;
        }
    }

    if(counter == 0){
        cout<<"Pangram"<<endl;
    } else if(counter >=2){
        cout<<"Not a pangram but might be lipogram";
    } else {
        cout<<"Pangrammatic lipogram"<<endl;
    }
}

int main()
{
    string str = "The quick brown fox jumped over the lazy dog";
    panLipogramChecker(str);

    str = "The quick brown fox jumps over the lazy dog";
    panLipogramChecker(str);

    str = "The quick brown fox jum over the lazy dog";
    panLipogramChecker(str);
}