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 September 19th, 2004, 05:04 PM
Registered User
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mos2128
Default ARRAY PROBLEM??? please help ...

i red that we can not find the answers for "beginning visual c#" book exercises. there for can you help me in this ex. in chapter 5 exercise number 5 there is no need towrite i question i think so but here is the code that i wrote as an answer, please informme if it is the right solution for the question:
using System;

namespace ch05myex05
    /// <summary>
    /// Summary description for Class1.
    /// </summary>
    class Class1
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
            int[]number = new int[3];
            Console.WriteLine("give me 1 numbers:");
            number[0]  = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("give me 2 numbers:");
            number[1] = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("give me 3 numbers:");
            number[2]= Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("here is your {0}are :", number.Length);
            int[] tNumber= new int[3];
            tNumber[0] = number[2];
            tNumber[1] = number[1];
            tNumber[2] = number[0];
            foreach (int num in tNumber)

thanks in advance
Old November 2nd, 2004, 01:18 PM
Authorized User
Join Date: Jul 2004
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts

The Chapter 5, Exercise 5 question is "Write a console application that accepts a string from the user and outputs a string with the characters in reverse order". The Chapter 3, Exercise 5 question is "Write a console application that obtains four int values from the user and displays their product".

Your answer does not satisfy either requirement.

All of the exercise answers for "Beginning Visual C#" are now posted in the P2P Forum. Navigate to "P2P Forum > Books > Beginning Visual C# > Beginning Visual C# Exercises - Chapter ?? Answers" where ?? is the chapter number.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Problem...Can anyone help?? :( Shuchik Classic ASP Basics 1 September 25th, 2007 05:21 AM
Array problem Ivanchan Excel VBA 2 July 24th, 2007 08:28 PM
Array Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 3 September 13th, 2006 05:56 AM
Array problem NEO1976 Javascript 0 August 3rd, 2006 03:55 AM
Array Problem hayley Classic ASP Basics 4 February 2nd, 2005 12:42 AM

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