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 March 6th, 2008, 05:39 PM
Registered User
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help with this code?

I'm suppose to write a user friendly programme using functions and modules to accept six names from a user and print to the screen the six names then ask the user which name they want deleted then print the remaining names after the name is deleted then notify the user which name was deleted.
This is what i have come up with thus far.


char main()


    int remove;

   char names[200];

    int myarray[5];

   int count;

    int bat;

    int pie;

    int egg;

    int name;

    count =0;

   printf("Please enter 6 names");


  for(int count=0;count<=5;count++)



 for(char bat=0; bat<=5; bat++)



        printf(" ");


    printf("Which name would you like deleted?\n");


    for(char egg=0; egg<=5; egg++)


        if (myarray[egg]!=pie)



            printf(" ");



    return 0;

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent:hard disk serial code and vb code ivanlaw Pro VB 6 0 July 25th, 2007 04:05 AM
VB: .Exe file, serial code and activation code ivanlaw Pro VB 6 8 July 6th, 2007 05:44 AM
code clinic - Why wont example asp code work? jardbf Classic ASP Basics 3 April 27th, 2006 06:22 PM
Writing Client Side Script from Code-Behind code sajid_pk Classic ASP Databases 1 January 18th, 2005 12:53 AM
disable forum code within [code] blocks? nikolai Forum and Wrox.com Feedback 0 October 23rd, 2003 07:52 PM

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