This site is about C++ enthusiasts and students who want to learn C++.
All CBSE syllabus covered and interesting content and really helpful. Practical file available for Class XI and Class XII students.
Hi, friends I have uploaded Practical File Coding for class XI students studying C++. I hope this will be helpful to you, with this you can complete your practical file very easily. https://drive.google.com/open?id=0B0gZdYWZqhtgMXlzMDA0UEVOSlU
/*WAP to get roll numbers and marks of the student of a class (get from the user) and store these details into a file called Marks.dat*/ #include<iostream.h> #include<fstream.h> int main() { ofstream filout; filout.open("marks.dat",ios::out); char ans = 'y'; int rollno; float marks; while(ans =='y'||ans =='Y') { cout<<"\nEnter Roll no.: "; cin>>rollno; cout<<"\nEnter Marks : "; cin>>marks; ...
/*WAP using a class to store price list of 5 items and to print the largest prices as well as the sum of all prices.*/ #include<iostream.h> #include<stdlib.h> class ITEM{ int itemcode[5]; float it_price[5]; public: void initialize (void); float largest (void); float sum (void); void display_items (void); }; //........
aur bansal kaisa hai
ReplyDelete