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...
Type: Posts; User: sara.stanley
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...
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,...
what should I return if this is false.
if(index < size/2)
I tried return *this but that does not work.
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
how should I return the meaniful value. Sorry I am new to this and I cannot figuer out the problem. thanks
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...
you mean like this:
SetOfPersons(int initial_size = 4) {
//default constructor allocate appropriate heap storage
//store elements on heap array declared like this:
//new...
thanks. Can you point me where should I make the changes.
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...
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:
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;...
flyingfin thanks for the help. quzah the site you gave have a bunch of games inside it.
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));
...
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.
...
thanks guys I got it to work..
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...
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...
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...
thanks I get it now.
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
thanks for the help but there is one more problem it still prints
-38 . I don't undertand where is -38 coming from.
does anybody have an idea what is wrong.
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...
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?
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.