Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Choosing Options Going Further

c++ code output to display in a webpage

I have a server client setup program in c++ .Now i want to display the data from the server to the client on a web interface .Can u plz suggest me a way to go about this?

A.J. Kandy
A.J. Kandy
Courses Plus Student 12,422 Points

Without giving you the answer, this is going to be a basic part of coding anything that has a web interface, regardless of what language you are using, so I think it's an opportunity to learn how to deconstruct the problem.

  1. Google is your friend. If you type your exact question into it, you will find tons of tutorials and Q&A sites with different takes on this issue. Up to you to find the one that suits your situation.
  2. You're likely going to have to learn a server-side language to generate a webpage and incorporate your program's output. (PHP, server-side JS, .NET or whatever you feel comfortable with).
  3. If you understand HTML/CSS structure, mock up what you would want the final output to look like, then work backwards to figure out how to generate it programmatically within an HTML template.
  4. If you don't understand HTML/CSS, Treehouse has courses on that :)
  5. That process will lead you to figure out how to structure the output of your program so that it can be parsed by your back-end code, and then output to HTML/CSS.

Once you learn how to do this, you'll be able to do it for any language, program, front-end/back-end framework, etc.

1 Answer

google for wt or cppcms