Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2004, 07:23 AM
ppp ppp is offline
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default help me close automatic progz whit out all making

I have 2 problemes
1) your site www.wrox.fr i can't connect to him
2) then i creat a .exe with visual c++ 6.0 Introductory Edition and i start it on explorer windows my commant cout don't want to show the progz close automatic.
the code source help me plz:(
/************************************************** ******************
* F.THOMAS PROGRAMMING *
* *
* logiciel de partage de cookies en fonction du nombre d'enfants *
* et du nombre de cookies il doit aussi pouvoire calculer le reste *
************************************************** *******************
* nbenfants = variable du nombre d'enfants par defaut 0 *
* nbcookies = variable du nombre de cookies (les gateaux) *
* restcookies = au nombre de cookies qu ils restent *
* total = le nombre de cookies par enfants *
************************************************** ******************/

#include <iostream>

using namespace std;

int main()

{

    int nbenfants = 0;
    int nbcookies = 0;
    int restcookies = 0;
    int total = 0;

    cout << endl
         << "Entrez le nombre d'enfants: ";
    cin >> nbenfants;

    cout << endl
         << "Entrez le mombre de cookies: ";
    cin >> nbcookies;

    restcookies = nbcookies % nbenfants;
    total = nbcookies / nbenfants;

    cout << endl
         << "Chaque enfant aurra "<< total << " cookies ."
         << "Il restera "<< restcookies << " cookies ."
         << endl;

    return 0;
}











Similar Threads
Thread Thread Starter Forum Replies Last Post
Browser close when screen saver close Rehanrana Pro VB 6 1 April 7th, 2008 03:09 AM
Javascript whit SSL? NeoNmaN Javascript 0 February 14th, 2007 07:50 AM
connect database whit mysql. menteriPertahanan ADO.NET 0 November 8th, 2006 12:28 AM
problem whit shoping card mbcreator PHP How-To 0 February 17th, 2006 05:51 PM
problem whit session SIV General .NET 0 January 16th, 2005 08:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.