Addressbook 1.0
/Users/engelen/Projects/gsoap/samples/databinding/address.cpp File Reference
#include <iostream>
#include <fstream>
#include "addressH.h"
#include "a.nsmap"

Go to the source code of this file.

Functions

char * user_input (const char *prompt)
 A quick-and-dirty user input function: reads string from stdin (up to 80 chars), trims leading and trailing blanks, and returns it.
int main ()
 Address book application: reads address.xml, displays its content, prompts the user for new contact, adds it, and saves the updated address.xml.

Function Documentation

int main ( )

Address book application: reads address.xml, displays its content, prompts the user for new contact, adds it, and saves the updated address.xml.

Definition at line 112 of file address.cpp.

char * user_input ( const char *  prompt)

A quick-and-dirty user input function: reads string from stdin (up to 80 chars), trims leading and trailing blanks, and returns it.

Parameters:
promptdisplays prompt to user
Returns:
string input

Definition at line 224 of file address.cpp.