Posts

C++ Function to edit a particular record in a binary file

Void editrec() {       fstream fio;       student s; int r; fio.open("stud.dat",ios::binary|ios::out|ios::in); fio.seekg(0); cout<<" Enter the roll no. you want to edit : "; cin>>r; while(fio.read((char*)&s,sizeof(s))) {        if(r==s.retrno())        { cout<<"Record found !! "; s.get(); fio.seekp(fio.tellp()-sizeof(s)); fio.write(( char*)&s,sizeof(s)); } } fio.close(); }

List of Devices that will get Lineage OS 14.1 ROM

Image
ASUS  devices list of Lineage OS 14.1 ROM Updates Zenfone Max (Z010D) Zenfone Max Lineage 14.1 ROM BQ  devices list of Lineage OS 14.1 ROM Updates Aquaris X5 (paella) Aquaris X5 Lineage 14.1 ROM Google  devices list of Lineage OS 14.1 ROM Updates Nexus 5 (hammerhead) Nexus 5 Lineage 14.1 ROM Nexus 6p (angler) Nexus 6p Lineage 14.1 ROM HTC  devices list of Lineage OS 14.1 ROM Updates One M7 (m7), M7 Sprint, M7 Verizon One M7 Lineage 14.1 ROM One M8 (m8) One M8 Lineage 14.1 ROM Huwei  devices list of Lineage OS 14.1 ROM Updates Honor 4 (cherry) Honor 4 Lineage 14.1 ROM Le/Le Eco  devices list of Lineage OS 14.1 ROM Updates Le Max 2 Le Max 2 Lineage 14.1 ROM Lenovo  devices list of Lineage OS 14.1 ROM Updates Vibe K3 NOTE Vibe K3 NOTE Lineage 14.1 ROM Vibe K5/K5 Plus Vibe K5/K5 Plus Lineage 14.1 ROM LG  devices list of Lineage OS 14.1 ROM Updates G2 (d802) G2 Lineage 14.1 ROM ...

What is Lineage OS ?

Image
Lineage OS is another CyanogenMod as the current team of CyanogenMod are working on any other project and the name of the project is Lineage OS and they have also launched website and named as Lineage OS which will take place of CyanogenMod from where the CM has left. it will be same as CM but there be one different is that the name only and everything will be same. Lineage OS official website is also launched you can check it  LineageOS  so for those who are thinking that from now there will be no updates regarding custom ROM and nightly build than they don’t have to worry LineageOS will cover all these things very soon. So CyanogenMod is still alive but the small change is that the name has changed to Lineage and the official CyanogenMod.inc has gave this statement  '' The open source project and source code will remain available for anyone who wants to build CyanogenMod personally .'' So this clears us that the Cyanogenmod is back to “0” from starting just ...

पास्कल त्रिकोण के लिए c++ में program कैसे बनाना है

Image
इस सी ++ प्रोग्राम जो पास्कल त्रिकोण प्रिंट। कार्यक्रम इनपुट के रूप में पंक्तियों की संख्या लेता है और पास्कल त्रिकोण मुद्रित करने के लिए नेस्ट छोरों का उपयोग करता है। पहली भीतरी लूप खरोज जगह बनाता है और दूसरा भीतरी लूप द्विपद गुणांक का मान की गणना करता है, खरोज जगह बनाता है और उस विशेष स्तंभ के लिए द्विपद गुणांक प्रिंट। यहां सी ++ प्रोग्राम है जो पास्कल त्रिकोण प्रिंट के स्रोत कोड है। सी ++ कार्यक्रम को सफलतापूर्वक संकलित और एक लिनक्स सिस्टम पर चलाया जाता है। कार्यक्रम उत्पादन भी नीचे दिखाया गया है। #include<iostream> using namespace std;   int main() {     int rows;     cout << "Enter the number of rows : ";     cin >> rows;     cout << endl;       for (int i = 0; i < rows; i++)     {         int val = 1;         for (int j = 1; j < (rows - i); j++)         {        ...

How to make pascal's triangle using for loop in c++

Image
This C++ Program which prints pascal’s triangle. The program takes number of rows as input and uses nested loops to print pascal’s triangle. The first inner loop creates the indentation space and the second inner loop computes the value of binomial coefficient, creates indentation space and prints the binomial coefficient for that particular column. Here is source code of the C++ program which prints pascal’s triangle. The C++ program is successfully compiled and run on a Linux system. The program output is also shown below. IF YOU ARE USING MODERN COMPILERS LIKE DEV C++ AND CODEBLOCK S #include<iostream> using namespace std; int main() {     int rows;     cout << "Enter the number of rows : ";     cin >> rows;     cout << endl;     for (int i = 0; i < rows; i++)     {         int val = 1;         for (int j = 1; j < ...

C++ Program to make calculator using switch case and the program should continue as user wants

Image
#include<iostream.h> #include<conio.h> void main() { clrscr(); float a,b,c; char op,ch1; do { cout<<"enter first number ::: "; cin>>a; cout<<"enter second number ::: "; cin>>b; cout<<"enter the operator ::: "; cin>>op; switch(op) {             case '+': c=a+b; cout<<"The Calculated result is ::: "<<c; break;  case '-':  c=a-b;     cout<<"The Calculated result is ::: "<<c;     break;     case '*':  c=a*b; cout<<"The Calculated result is ::: "<<c; break; case '/':  c=a/b;   cout<<"The Calculated result is ::: "<<c;   break; default: cout<<"wrong operator used"; cin>>ch1; }//switch statement close cout<<"\nDo you want to continue(y/n) :: ";          cin>>ch1; ...

How to extend validity or generate new Jio Coupon Code if Expired

Image
My Bar Code Expired? Reason-  Because you have installed the app before. The coupon is valid for only 15 Days from the date of app installed. What now? Use any other 4G phone and generate a offer code.take a screenshot of it.Share this screenshot to your Samsung device. Get a jio sim for your 4G mobile.Use your Samsung device as a reference only. We are thinking about any plan but wait for tomorrow to make sure. Note- Reset of phone,CC Cleaner,Cache data,Clear Data will not working if your bar code/offer code/coupon code has been expired. Supported Samsung Devices- Galaxy A3, Galaxy A5, Galaxy A5 2016, Galaxy A5 Duos, Galaxy A7, Galaxy A7 2016, Galaxy A8, Galaxy Alpha, Galaxy Core Prime, Galaxy Grand Max, Galaxy J max, Galaxy J1 Ace, Samsung Galaxy J1 Ace, Galaxy J2, Galaxy J2 (2016), Galaxy J2 Pro, Galaxy J3, Galaxy J5, Galaxy J5 (2016), Galaxy J7, Galaxy J7 (2016), Galaxy K Zoom, Galaxy Note 3, Galaxy Note 4, Galaxy Note 5, Galaxy Note 5 Duos, Galaxy Note 7, Galaxy Note Edge,...