OOP Assignments , Linux commands , C++ Algorithms , Programming concepts , Best Algorithms , C++ Projects , Latest Computer Tools , Ethical Hacking , Hacking , Computer secrets , search for any thing you need related to computer.
Windows activation key finder
Get link
Facebook
X
Pinterest
Email
Other Apps
This file can find activation key of windows for you just run it and it will show you the activation key for your PC.activation key finder
Notepad++ is one of the best tool for coding it makes coding easier by adding different colors to the text. You will have a good experience with it. Download it from the link below Notepad++ Download
#include <iostream> #include <fstream> using namespace std ; struct student { char regno [ 9 ]; float gpa ; char name [ 10 ]; }; int main (){ ifstream datastream ( "studentsdata.txt" ); if ( ! datastream ) { cerr << "Error opening file" << endl ; exit (- 1 ); } int num = 0 ; datastream >> num ; // allocate memory for num student objects student * p = new student [ num ]; if ( p == NULL ) { cerr << "Error allocating memory" << endl ; exit (- 1 ); } for ( int i = 0 ; i < num ; i ++){ datastream >> p [ i ]. regno >> p [ i ]. gpa >> p [ i ]. name ; } int beststudent = 0 ; float bestgpa = 0.0 ; for ( int i = 0 ; i < num ; i ++){ if ( p [ i ]. gpa > bestgpa ){ bestgpa = p [ i ]. gpa ; beststudent = i ; } } cout << "The best student of class is:" << endl ...
Comments
Post a Comment