User Profile

Collapse

Profile Sidebar

Collapse
Anan18
Anan18
Last Activity: Mar 11 '08, 01:46 AM
Joined: Oct 23 '06
Location: new york city
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Anan18
    started a topic revise the sequence class to use a dynamic array
    in C

    revise the sequence class to use a dynamic array

    Hi there,

    I revised my sequence class, from the last homework to use a dynamic array to store items, i am getting an error and 4 warnings, i also provided my header file, as well as the implementation file, can someone please help me out hear, my brains are beyond fried now, highly appreciated

    1>------ Build started: Project: Assignment3, Configuration: Debug Win32 ------
    1>Compiling...
    1>sequence2.cx x...
    See more | Go to post

  • Anan18
    replied to The Sequence Class ( Data Structures)
    in C
    and when i tried to fix some of those errors, it gave me more errors, i dunno.. please help me sir
    See more | Go to post

    Leave a comment:


  • Anan18
    replied to The Sequence Class ( Data Structures)
    in C
    1>Compiling...
    1>sequence9.cx x
    1>c:\users\anan \documents\visu al studio 2005\projects\a ssignment2\assi gnment2\sequenc e9.cxx(34) : warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data

    1>c:\users\anan \documents\visu al studio 2005\projects\a ssignment2\assi gnment2\sequenc e9.cxx(35) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
    ...
    See more | Go to post

    Leave a comment:


  • Anan18
    started a topic The Sequence Class ( Data Structures)
    in C

    The Sequence Class ( Data Structures)

    Hello sir,
    I'm supposed to Implement and Test the sequence Class Using a Fixed-Sized Array (Chapter 3), from Data Structures & Other objects using c++. The header file is provided, and so is a test program to check the correctness of the sequence class. I cannot figure out what the problem is and keep looking back and forth at the textbook and its not helping, can someone please please help me , i cannot figure out the errors in the implementation...
    See more | Go to post

  • Anan18
    started a topic Arrays as arguments Help
    in C

    Arrays as arguments Help

    write a program that declares three dimensional arrays named volts, current, and resistance. Each should be declared in main () and should be capable of holding ten double precision numbers. The numbers that should be stored in current are : 10.62....14.89. .etc..The numbers that should be stored in resistance are 4, 8.5...etc.. Your program should pass these three arrays to a function named calc_volts, which should calculate the elements in the volts...
    See more | Go to post

  • Anan18
    replied to C++ help needed in class
    in C
    thanks sir. let me see where the errors were.
    See more | Go to post

    Leave a comment:


  • Anan18
    started a topic C++ help needed in class
    in C

    C++ help needed in class

    Use Integer variables to represent the private data of the class – the
    numerator and the denominator. Provide a constructor that enables an
    object of this class to be initialized when it is declared. The
    constructor should contain default values in case no initializers are
    provided and should store the fraction in reduced form. For example, the
    fraction 2/4 should be stored in the object as 1 in the numerator...
    See more | Go to post

  • Thank you Banfa and emaghero , sorry late to reply, im really trying to understand this material. now im stuck

    i was working on this problem
    Write a function named factor that factors its parameter, displaying the parameter and all its prime factors. For example, the function call factor(84) should display 84=2 * 2 * 3 * 7.

    Write a driver that tests your function with prime numbers and also with numbers having...
    See more | Go to post

    Leave a comment:


  • sorry back.. i had prayer to attend..as it is Eid today.. yes i am aware of of what factorization, prime factors etc are... 2..3..5..7..11 etc..but not the method of splitting them..but if i udnerstand the question correctly do you mean for example 2=1 x 1, 3 = 2 x 1, 5= 4 x 1..etc
    See more | Go to post

    Leave a comment:


  • well this is the way the teacher wrote the problems ..shes not too good in english..and im also afraid to ask her.. :/ she seems to have a short temper..but im pretty sure this stuff deals with modularity of functions..the problem is..she makes up her own problems..i tried looking and practicing some exercises from the textbook ( c++ for scientists and engineers 2nd edition, Bronson), i could not find any problem similar to these..Function and parameter...
    See more | Go to post

    Leave a comment:


  • Anan18
    started a topic Totally confused...the teacher doesnt help at all..c++
    in C

    Totally confused...the teacher doesnt help at all..c++

    kk..there were 15 problems for for the monthy projects..i finished 11 of them..these 4 were really hard..


    5. your working on a problem in which you must display as integer ratios; therefore you need to be able to compute using common fractions and get the results that are common fractions in reduced form. you want to write a program that will allow you to add, subtract, multiply, and divide common fractions. The program will...
    See more | Go to post
No activity results to display
Show More
Working...