Module ১২ · Structure, union আর enum
struct-এর array, আর function-এ struct
Account থাকলেই freeপড়া
Amara একটা ক্লাস পড়ায়, আর প্রত্যেক student-এর আছে একটা নাম আর তিনটা নম্বর। Lesson 1 ওকে একজন student-এর জন্য একটা struct দিয়েছে। এবার ও পুরো ক্লাসটা notice board-এ টাঙাতে চায়, যার total সবচেয়ে বেশি, সে সবার উপরে।
আপনার জন্য এই lesson টা খোলা কি না দেখা হচ্ছে…
struct-এর array, আর function-এ struct এর ভেতরে কী আছে
- Struct-এর array: capacity আর count
- Input থেকে n-টা record পড়া
- Field দিয়ে record খোঁজা
- Record sort করা: পুরো struct সরাও
- Bob-এর sort একটাই field সরায়
- Function-এ পাঠানো struct একটা copy
- Function থেকে struct return করা