View Poll Results: 2 Dimensi0nal array

Voters
0. You may not vote on this poll
  • HTML

    0 0%
  • vB

    0 0%
  • Smiles

    0 0%
  • IMG

    0 0%

Thread: 2 Dimensional Array

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    2

    Angry 2 Dimensional Array

    This 2 dimensional array is supposed to read data from .dat file and display the appointments on each day with the corresponding Session Time.

    Dat file e.g.

    1001 1 2 (PatientID, Day, Session)
    1002 2 4
    1003 3 2
    1004 4 2
    1005 5 3
    1006 3 3

    ETC........................

    I have got the program to count the appointments for the week but it will not display the appointments for each day

    e.g. Monday Tuesday Wed Thurs Friday

    9.30 - 11.00am 2 3 3 3 3



    Total Appointment: 50

    Help a girl in trouble

    THANKS
    SHARON

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Show some code...

    ...sounds pretty easy tho.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 07-11-2008, 07:39 AM
  2. two dimensional array
    By leisiminger in forum C Programming
    Replies: 12
    Last Post: 03-09-2008, 11:53 PM
  3. Type and nontype parameters w/overloading
    By Mr_LJ in forum C++ Programming
    Replies: 3
    Last Post: 01-02-2004, 01:01 AM
  4. Replies: 5
    Last Post: 11-20-2001, 12:48 PM