Answer to Question #39671 in C++ for Nor Syafiqah

Question #39671
I have a question on doing a feedback vote using array by one user and the display the output.it consist of 1-Excellent 2-Good 3-Moderate 4-Poor..
1
Expert's answer
2014-03-24T10:49:59-0400
Answer on Question#39671- Programming, C++

#include <iostream>
#include <string>
using namespace std;

//1-Excellent 2-Good 3-Moderate 4-Poor..

void main()
{

string str[]={"1-Excellent","2-Good", "3-Moderate", "4-Poor"};

for(int i=0; i<4;i++)
{
cout<<str[i]<<endl;
}

cin.get();cin.get();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS