- 1
Write a program using struct data type and pointer declaration proving the output shown below:
Write a program using struct data type and pointer declaration proving the output shown below: OUTPUT: Enter Student Number: 2019390093 Enter Student Course and Section: IT – A --------------------------------------- STUDENT DETAILS: Student Number: 2019390093 Course and Section: IT – A guys help me i need this on sunday if someone help me thankyouu very much to helping me with my activity.
7 odpowiedzi
+ 2
Can you please show your attempt?!
+ 2
Kindly do start if you are not started yet SAAR MAFFY G.
No one is going to put whole code for you at least from this community, you should try first if you got stuck then ask for help by putting a link to your code
Regards!
0
How to combine the COURSE AND SECTION in part of cout and cin? example
Enter Course and Section : IT - B help me👉👈
#include<iostream>
using namespace std;
struct student
{
int studnum;
string course,sec;
};
int main()
{
student st;
int *ptnum;
string *ptcourse, *ptsec;
cout<<"Enter Student Number: ";
cin>>st.studnum;
cout<<"\nEnter Course : \t";
cin>>st.course;
cout<<"\nEnter Section :\t";
cin>>st.sec;
cout<<"========================\n";
cout<<"STUDENT DETAILS :\n";
cout<<"Student Number :\t"<<st.studnum<<"\nCourse and Section :\t"<<st.course <<"-"<< st.sec<<endl;
}
- 2
pleasee helpp me😭
- 2
im not started yet.
- 2
please put a whole code 😆