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.
+ 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 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 comments Here are the solution of Structs in C++ Hacker Rank Solution
+ 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; }
+ 0 comments Here is problem solution - https://thecscience.com/hackerrank-structs-in-cpp-problem-solution.html
Load more conversations
Sort 211 Discussions, By:
Please Login in order to post a comment