How to save data in C/C++?

In the internet there are databases(mysql, oracle etc.) where I can send the informations submitted by the HTML input fields with PHP or any other server side language.

How is this working in C/C++? How can I let a user input something and them save the inputted value?

Answers


You can either:

  1. Make use of the standard file handling functions/classes.
  2. Embed a tiny database.
  3. Talk to a database server using a standard interface.

BTW, these are common for all languages.


Need Your Help

Cannot read property 'chrome' of undefined

javascript google-chrome-app html5-filesystem

What is causing it and how to avoid it? I cannot catch the exception.

How much null checking is enough?

c# java c++ design-by-contract

What are some guidelines for when it is not necessary to check for a null?