Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can i make this code display this with c++ coding: debug with qs: debug in parse name: value: -------------------------------------------------------------------------------------------------------------------------------------------- here is the code please

How can i make this code display this with c++ coding:

debug with qs:

debug in parse name: value:

--------------------------------------------------------------------------------------------------------------------------------------------

here is the code please help fix it:

#include  #include  #include  #include  #include  using namespace std; struct FIELDS { string name; string value; }; const int cnt = 3; //cnt should be set to the number of fields the html form contains // Prototypes void parse(string, FIELDS []); string param(string, FIELDS [], int); //main begins int main() { FIELDS name_value_pairs [cnt]; string qs(getenv("QUERY_STRING")); //string qs("first=fred&last=flint&color=red"); cout << "Content-type:text/html "; cout << "debug with qs: " << qs << "

" << endl; parse(qs, name_value_pairs); // debug to show content of name_value_pairs cout << "debug to show content of name_value_pairs array: " << endl << " "; for (int index = 0; index

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

3. Who would the members be?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago