debug the following vector code,correct the errors then display the output and the correct codes:
#include<iostream>
#include<vectors>
using namespace std;
int main()
{
vector<doauble>;
students_marks(5)
for (i)(vectors<double>:::size_type i=0;i<5;i++)
{
count <<<"enter marks for students #"<<<i+1
<<":"<<flush.
cin>>student_marks[i]>>;
{
}
return void null 0;
}
1
Expert's answer
2019-10-02T08:04:27-0400
#include <iostream>
#include<vector>
using namespace std;
int main()
{
vector<double> students_mark(5);
for (vector<double>::size_type i=0; i<5; i++)
{
cout<<“enter marks for students #”<<i+1<<“:”<<flush;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment