We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. C++
  3. Classes
  4. Structs
  5. Discussions

Structs

Problem
Submissions
Leaderboard
Discussions

Sort 211 Discussions, By:

recency

Please Login in order to post a comment

  • SYCOA134
    1 week ago+ 0 comments

    struct student{ int age; string first_name; string last_name; int standard; };

    int main() { student stu;

    cin >> stu.age >> stu.first_name >> stu.last_name >> stu.standard;
    cout << stu.age << " " << stu.first_name << " " << stu.last_name << " " <<    stu.standard;
    
    return 0;
    

    }

    0|
    Permalink
  • pravinjedhe12
    2 weeks ago+ 0 comments

    include

    include

    include

    include

    include

    using namespace std;

    struct Student{ int age; string first_name; string last_name; int standard; };

    int main() { Student st;

    cin >> st.age >> st.first_name >> st.last_name >> st.standard;
    cout << st.age << " " << st.first_name << " " << st.last_name << " " << st.standard;
    
    return 0;
    

    }

    0|
    Permalink
  • gangadharghru67
    2 weeks ago+ 0 comments

    Here are the solution of Structs in C++ Hacker Rank Solution

    0|
    Permalink
  • ashutoshlapt
    2 weeks ago+ 0 comments

    Code Is Here

    #include <cmath>
    #include <cstdio>
    #include <vector>
    #include <iostream>
    #include <algorithm>
    using namespace std;
    
    struct Student{
        int age;
        string first_name;
        string last_name;
        int standard;
        
    };
    
    int main() {
        Student st;
        
        cin >> st.age >> st.first_name >> st.last_name >> st.standard;
        cout << st.age << " " << st.first_name << " " << st.last_name << " " << st.standard;
        
        return 0;
    }
    
    -1|
    Permalink
  • poonamdeorasurp1
    3 weeks ago+ 0 comments

    Here is problem solution - https://thecscience.com/hackerrank-structs-in-cpp-problem-solution.html

    0|
    Permalink
Load more conversations

Need Help?


View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy