हिंदी माध्यम नोट्स
Class 6
Hindi social science science maths English
Class 7
Hindi social science science maths English
Class 8
Hindi social science science maths English
Class 9
Hindi social science science Maths English
Class 10
Hindi Social science science Maths English
Class 11
Hindi sociology physics physical education maths english economics geography History
chemistry business studies biology accountancy political science
Class 12
Hindi physics physical education maths english economics
chemistry business studies biology accountancy Political science History sociology
English medium Notes
Class 6
Hindi social science science maths English
Class 7
Hindi social science science maths English
Class 8
Hindi social science science maths English
Class 9
Hindi social science science Maths English
Class 10
Hindi Social science science Maths English
Class 11
Hindi physics physical education maths entrepreneurship english economics
chemistry business studies biology accountancy
Class 12
Hindi physics physical education maths entrepreneurship english economics
chemistry business studies biology accountancy
C++ : Structure in hindi , write what is structure in c++ language with programs and examples explanation
Structure का उदाहरण :
struct address s;
cout<<“City Name : “<< s.city <<endl;
cout<<“Pin Code : “<< s.pincode <<endl;
इस उदाहरण मे , address एक structure है जिसमे किसी address का निन्म data को add किया जा सकता है |जिसमे से city और street string है लेकिन इसे declare करने के लिए character को use किया है |
House: इसमें address मे से house number store होगा |
street : इसमें street का नाम store होगी |
city : इसमें city की information को store किया जाता है |
इन सभी access करने के लिए membership operator का use किया गया |
Enter House Number : 12
Enter Street Name : Ashok Nagar
Enter City : Jaipur
Enter Pincode : 302004
House Number : 12
Street Name : Ashok Nagar
City : Jaipur
Pincode : 302004
Structure with string class
String class को Structure के साथ use किया जा सकता है | लेकिन कभी कभी ये compiler पर भी निर्भर करता है | जैसे Borland c++ 5.5 और Microsoft visual C++ version 7.0 , String class को Structure के साथ use नहीं कर सकता है |
जब किसी string को Structure के साथ use किया जाता है तब std namespace को जरुर use किया जा सकता है | इससे using namespace std ; से बना सकते है | या std:: string; statement से use किया जा सकता है |
उदाहरण के लिए :
#include<string>
std::string name;
struct student s;
cout<<“Class : “<< s.class <<endl;
cout<<“Grade : “<< s.grade <<endl;
Roll number: इसमें student का roll number store होगा |
Class : इसमें student की class की information store होगी |
grade : इसमें student के द्वार प्राप्त की गयी grade को store किया जाता है |इन सभी access करने के लिए membership operator का use किया गया |
इसका आउटपुट होगा :
Enter Roll Number : 12
Enter Student Name : Rahul
Enter Class : Fourth
Enter Grade : 81
Roll Number : 12
Name : Rahul
Class : Fourth
Grade : 81
Recent Posts
नियत वेग से गतिशील बिन्दुवत आवेश का विद्युत क्षेत्र ELECTRIC FIELD OF A POINT CHARGE MOVING WITH CONSTANT VELOCITY in hindi
ELECTRIC FIELD OF A POINT CHARGE MOVING WITH CONSTANT VELOCITY in hindi नियत वेग से…
four potential in hindi 4-potential electrodynamics चतुर्विम विभव किसे कहते हैं
चतुर्विम विभव (Four-Potential) हम जानते हैं कि एक निर्देश तंत्र में विद्युत क्षेत्र इसके सापेक्ष…
Relativistic Electrodynamics in hindi आपेक्षिकीय विद्युतगतिकी नोट्स क्या है परिभाषा
आपेक्षिकीय विद्युतगतिकी नोट्स क्या है परिभाषा Relativistic Electrodynamics in hindi ? अध्याय : आपेक्षिकीय विद्युतगतिकी…
pair production in hindi formula definition युग्म उत्पादन किसे कहते हैं परिभाषा सूत्र क्या है लिखिए
युग्म उत्पादन किसे कहते हैं परिभाषा सूत्र क्या है लिखिए pair production in hindi formula…
THRESHOLD REACTION ENERGY in hindi देहली अभिक्रिया ऊर्जा किसे कहते हैं सूत्र क्या है परिभाषा
देहली अभिक्रिया ऊर्जा किसे कहते हैं सूत्र क्या है परिभाषा THRESHOLD REACTION ENERGY in hindi…
elastic collision of two particles in hindi definition formula दो कणों की अप्रत्यास्थ टक्कर क्या है
दो कणों की अप्रत्यास्थ टक्कर क्या है elastic collision of two particles in hindi definition…