Search:

Type: Posts; User: sara.stanley

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. You were right thanks alot that worked!!. I have...

    You were right thanks alot that worked!!. I have one more question in my printOn Method how should I print the elements of the set . Does that mean that I loop through the array and print the...
  2. I tried that if index

    I tried that if index<size/2 then return an empty Person Object. That does not seem to work. My code looks like this:



    Person &removeSomeElement(){
    static Person InvalidPerson("","", 0, 0,...
  3. what should I return if this is false. if(index...

    what should I return if this is false.
    if(index < size/2)

    I tried return *this but that does not work.
  4. I am returning a value it is " return...

    I am returning a value it is " return *buffer[++index];" it's in the second line and not on the end of the function.

    thanks
  5. how should I return the meaniful value. Sorry I...

    how should I return the meaniful value. Sorry I am new to this and I cannot figuer out the problem. thanks
  6. Get an error when trying to clear the heap space

    Hey,
    I am getting a runtime error when I run my removeSomeElement() function. Can someone have a look and tell me what I am doing wrong.
    thanks a lot.

    My Code is:


    #include "Person.h"
    class...
  7. you mean like this: SetOfPersons(int...

    you mean like this:

    SetOfPersons(int initial_size = 4) {
    //default constructor allocate appropriate heap storage
    //store elements on heap array declared like this:
    //new...
  8. thanks. Can you point me where should I make the...

    thanks. Can you point me where should I make the changes.
  9. Get an Error as soon as the program runs.

    Hi,
    I am getting an error as soon as I run my program. The error is main.exe has caused a system error and needs to be closed. I know there is something wrong with my Container class but I can't...
  10. Replies
    4
    Views
    1,149

    thanks alot I understand now. I was confused...

    thanks alot I understand now. I was confused about this statment *y=x++;

    basically what is doing is that it puts the value of x in y and x is updated.

    I was thinking of this like this:
  11. Replies
    4
    Views
    1,149

    Pointer Question

    Hi,
    I am having problem understand one of the questions in our midterm. It is related to pointers.


    6. What is the output of the following program?
    int f(int *x, int y) {
    *x += 2; y += 1;...
  12. Replies
    5
    Views
    1,847

    flyingfin thanks for the help. quzah the site you...

    flyingfin thanks for the help. quzah the site you gave have a bunch of games inside it.
  13. Replies
    5
    Views
    1,847

    understanding linked list

    Hi,

    I am trying to understand linked lists. Can someone help me understand this linked list function:


    Node* insertNode(Node*head,int value1){
    Node*newNode=(Node*)malloc(sizeof(Node));
    ...
  14. Replies
    2
    Views
    948

    Make files

    Hi,

    I am trying to build a make file then when we type make it cleans up all the object files and the .exe file and compile everytime even though I didnot modify anything. But mine doesnot work.
    ...
  15. thanks guys I got it to work..

    thanks guys I got it to work..
  16. thanks that worked I am now trying to add the 12...

    thanks that worked I am now trying to add the 12 and the 12: It only reads the +11: its only reading the first characters.


    #include<stdio.h>
    #include<stdlib.h>
    #include <string.h>

    int...
  17. segmentaion fault with File Input/Output

    Hi,

    I have a text file with the following formating:
    +
    12
    12

    I am making a program that reads the file and takes the file name that the user entered and conctenate the .out to the new file...
  18. Replies
    4
    Views
    1,231

    I have one more question. I am making a calulator...

    I have one more question. I am making a calulator for long intergers the operations I can perform are + and *;

    I am having problem making an add function. I don't know what to do I am lost.
    The...
  19. Replies
    4
    Views
    1,231

    thanks I get it now.

    thanks I get it now.
  20. Replies
    4
    Views
    1,231

    function questions

    Why would we create a function:

    list_head *create_list(void)
    Purpose: allocate memory for a new list header
    Return: a pointer to a list header

    I don't understand the use of it.

    Thanks
  21. Replies
    5
    Views
    1,546

    thanks for the help but there is one more problem...

    thanks for the help but there is one more problem it still prints
    -38 . I don't undertand where is -38 coming from.
  22. Replies
    5
    Views
    1,546

    does anybody have an idea what is wrong.

    does anybody have an idea what is wrong.
  23. Replies
    5
    Views
    1,546

    linked lists inserting problem

    Hi,
    I am making a long integer arthimetic calculator that performs +and*. I am adding an element and then printing the node.The problem I am having is that I can the value I inserted but I also get...
  24. Replies
    21
    Views
    2,983

    are you done with the assign could you please...

    are you done with the assign could you please help me with one problem. When you read in your chars how do you convert them to float. Do you have msn account?
  25. Replies
    21
    Views
    2,983

    is it possible that I can see the solution I am...

    is it possible that I can see the solution I am getting errors when the user enters 1s it goes straight to my 1 option.
Results 1 to 25 of 42
Page 1 of 2 1 2