Fragment of C++ code

This is a discussion on Fragment of C++ code within the C++ Programming forums, part of the General Programming Boards category; Let m and n are integer variables hoding some positive value. Give a fragment of C++ code that creates a ...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    1

    Fragment of C++ code

    Let m and n are integer variables hoding some positive value. Give a fragment of C++ code that creates a 2-dimensional, integer array of m rows and n columns dynamically. Use new operator twice.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    We won't do the work for you, but if you show us what you have so far, we'll give you tips.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Possibility(Assignment) > Possibility(OwnQuestion)
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    do your own homework. You will learn best by making your own mistakes.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 08:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 11:20 AM
  3. what is the output of this code fragment?
    By ryan_qut in forum C Programming
    Replies: 3
    Last Post: 11-13-2004, 02:05 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21