Skip to main content

Posts

Showing posts from May, 2017

how to make hidden password in c++

#include<iostream> #include<conio.h> using namespace std; int main() { char c=' '; string pass=""; cout<<"enter pass"; while(c!=13)// key { c=getch(); if(c!=13) { pass=+c; cout<<"*"; } } if(pass=="12345") cout<<"acepted "<<endl; else  cout<<"not accepted "; getch(); }

C++ Projects (MAKING DMC )

c++ project of dmc #include<iostream> #include<fstream> #include<iomanip> #include<conio.h> #include<windows.h> using namespace std; class student { protected : char  name[50]; int roll; char board[50]; }; class dmc:public student { protected : float per; int phy; int maths; int cs; int english; public : void getdata() { cout<<"ENTER NAME : "; cin>>name; cout<<"ENTER ROLL : "; cin>>roll; cout<<"PHYSIC MARK : "<<endl; cin>>phy; cout<<"MATHS MARKS :"<<endl; cin>>maths; cout<<"ENTER CS MARKS :"<<endl; cin>>cs; cout<<"ENTER ENGLISH MARKS : "<<endl; cin>>english;    } float calculate() { per=(((phy+maths+cs+english)*(100))/400); return per; } double add() { double total...