Thread: Homework 11 problem 3

  1. #1
    Registered User
    Join Date
    Dec 2016
    Posts
    4

    Homework 11 problem 3

    Is question 3 possible to do without vectors because the user can't keep increasing the size of array. Is this question suppose to get you thinking about vectors, but why ask this question in book though also can someone direct me to link for homework on this forum? Same goes for 4.

    thanks in advance

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    How are we supposed to know which book you're referring to?
    Even if we know the book, do you suppose we all have a copy of it to know what "homework 11" means.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It is possible to increase the size of an array dynamically, but any book that asks you that question before introducing vectors is a bad book. Grab a real book.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 27
    Last Post: 10-11-2006, 04:27 AM
  2. One More Homework Problem
    By joxerjen in forum C++ Programming
    Replies: 5
    Last Post: 10-12-2005, 04:39 PM
  3. homework problem
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 08-09-2002, 07:12 PM
  4. Homework problem
    By bacon in forum C Programming
    Replies: 1
    Last Post: 04-24-2002, 07:21 AM

Tags for this Thread