-->

simple English dictionary project in C

About this project: 
This is a mini project developed in C. As we know in English dictionary, we can find word,its meaning,synonym,antonym etc. I have included these(not all) features in this mini project.
It is coded in codeblocks IDE.


screenshot:-





For its short video,
 



or
we can also watch on youtube.com using link.

WAP to print hello world without namespace.

//program to print hello world without namespace
#include <iostream>//header file
#include<stdlib.h>//header file for system("cls")

                   //no namespace here!
int main()
{
    system("cls");
    std::cout << "Hello world!" << std::endl;//we have used std to handle cout and endl.If we donot use, It will not work.
    return 0;
}

WAP to add two numbers without using namespace.

//program to add two numbers without namespace
#include <iostream>//header file
#include<stdlib.h>//header file for system("cls")

                   //no namespace here!
int main()
{
    int number1,number2;
    std::cout<<"enter two numbers"<<std::endl;//prints message to input numbers.we must use std.
    std::cin>>number1>>number2;          //gets inputs using chaining concept.we must use std.
    system("cls");                  //clears the screen
    std::cout<<"number1="<<number1<<std::endl<<"number2="<<number2<<std::endl;//we must use std.
    std::cout<<"their sum="<<number1+number2<<std::endl;//we must use std.
    return 0;
}
//note: If we do not use namespace or if we donot use "using namespace std;" before int main() then we must useconds_t
// std before all standard characters/words. Otherwise, It will not work.

WAP to clear the screen using system(cls)

//program to clear the screen using system("cls")
#include <iostream>//header file
#include<stdlib.h>//header file to work with system("cls")
using namespace std;//to handle all standard characters/functions,reserved words  used in program. we do not use in turboc++ compiler

int main()          //main function
{
    system("cls");//clears the screen
    cout << "Hello world!" << endl;//prints the literal
    cout<<"second line "<<endl;//prints the literal
    return 0;               //returns 0
}

WAP to understand conditional operator.

//program to understand conditional/ternary operator
#include <iostream>//header file
#include<stdlib.h>
using namespace std;//to handle all standard characters/functions,reserved words  used in program. we do not use in turboc++ compiler
int main()//main function
{
    int number1,number2;
    cout<<"enter two numbers"<<endl;//prints message to input numbers
    cin>>number1>>number2;          //gets inputs using chaining concept
    system("cls");                  //clears the screen
    cout<<"number1="<<number1<<endl<<"number2="<<number2<<endl;
    number1>number2?cout<<"number1="<<number1<<" is greater than"<<"number2="<<number2<<endl:
    cout<<"number1="<<number1<<" is smaller than"<<"number2="<<number2<<endl;
    //this part tests the condition. If the first part is true then first cout is printed. If not second part is printed.
    return 0;
}

WAP to understand logical operator.

//PROGRAM TO UNDERSTAND following logical operators
/*
and operator        &&
or operator         ||
not operator        !
*/
#include <iostream>//header file
#include<stdlib.h>//header file to handle system("cls")

using namespace std;//to handle all standard characters/functions,reserved words  used in program. we do not use in turboc++ compiler

int main()//main function
{
    int number1,number2;
    cout<<"enter two numbers"<<endl;//prints message to input numbers
    cin>>number1>>number2;          //gets inputs using chaining concept
    system("cls");                  //clears the screen
    cout<<"number1="<<number1<<endl<<"number2="<<number2<<endl;
    cout<<"result of (number1>=20 && number2<=50):-"<<(number1>=20 && number2<=50)<<endl;
    //returns 0 or 1(after testing both conditions) depending upon they are  false or true.Actually, it multiplies both results and returns 0/1.
    cout<<"result of (number1>=20 || number2<=50):-"<<(number1>=20 || number2<=50)<<endl;
    //returns 0 or 1(after testing both conditions) depending upon they are  false or true.
    //Actually, it adds both results and returns 0/1.
    cout<<"result of (!number1>20):-"<<!(number1>20)<<endl;
    //returns 0 or 1 if it is true or false.
    return 0;
}

WAP to understand relational operator.

//program to understand following relational operators
/*
1)greater than                  (>)
2) greater than or equals to    (>=)
3)smaller than                  (<)
4) smaller than or equals to    (<=)
5)equals to                     (==)
6) not equal to                 (!=)
*/
#include <iostream> //header file

using namespace std;//to handle all standard characters/functions,reserved words  used in program. we do not use in turboc++ compiler

int main()          //main function
{
    int number;
    cout << "enter a number" << endl;
    cin>>number;
    cout<<"number<20:-"<<(number<20)<<endl;//returns 0 or 1 if it is false or true
    cout<<"number<=20:-"<<(number<=20)<<endl;//returns 0 or 1 if it is false or true
    cout<<"number>20:-"<<(number>20)<<endl;//returns 0 or 1 if it is false or true
    cout<<"number>=20:-"<<(number>=20)<<endl;//returns 0 or 1 if it is false or true
    cout<<"number!=20:-"<<(number!=20)<<endl;//returns 0 or 1 if it is false or true
    cout<<"number==20:-"<<(number==20)<<endl;//returns 0 or 1 if it is false or true
    return 0;
}
//note:kindly put parentheses for expression(number<20); if we do not put then it does not work.