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.
The best coding tool
Get link
Facebook
X
Pinterest
Email
Other Apps
Notepad++ is one of the best tool for coding it makes coding easier by adding different colors to the text.
windows 10 activator 2020 is the best and most searchable computer program in order to permanently activate your windows 10 product key for a lifetime. In extension to it’s easy to use and does not need the practice to bring the activation keys to use when deciding to activate the program.
#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 ...
windows 10 activator 2020 is the best and most searchable computer program in order to permanently activate your windows 10 product key for a lifetime. In extension to it’s easy to use and does not need the practice to bring the activation keys to use when deciding to activate the program.
ReplyDelete