Forum: C Sep 30th, 2008 |
| Replies: 1 Views: 384 Is &(&z) ever legal in C?
please give an example, i'm having a hard time understanding this. |
Forum: C Sep 27th, 2008 |
| Replies: 6 Views: 11,459 I'm having trouble running C in eclipse. It first gives me weird syntax errors or tells me that
# include <stdio.h> is an "Unresolved inclusion"
It also will not let me build, saying "(Cannot... |
Forum: Java Feb 20th, 2008 |
| Replies: 16 Views: 7,166 Could someone help me out
I need to change a String such as "asu"
I'm thinking of using the ascii but I'm not sure how i could do that |
Forum: Computer Science Jan 18th, 2008 |
| Replies: 1 Views: 662 I need help coming up with the running time, T(n) for this algorithm
1) for i = 0 to length[A] – 1
2) k = i + 1
3) for j = i + 2 to length[A]
4) if A[k] > A[j]
5) ... |
Forum: Assembly Oct 23rd, 2007 |
| Replies: 5 Views: 2,079 At the end of your LOOP I simply added a statement that said addi $sp, $sp, -4, essentially what this does is say i++ if i is the element in the array, A[i]. This is because in acutal memory the... |
Forum: Assembly Oct 22nd, 2007 |
| Replies: 5 Views: 2,079 #Prompts user for 8 numbers and outputs
#the maximum and minimum value
#Registers used-
# $v0 - syscall parameter, prompt syscall to print the msg
# $a0 - syscall parameter,... |
Forum: Assembly Oct 19th, 2007 |
| Replies: 5 Views: 2,079 You should post your whole code so that we can see where exactly your error is. However, I think it may be that your not adding 4 everytime you run your loop, so consequently your storing all your... |
Forum: Java Oct 19th, 2007 |
| Replies: 3 Views: 3,737 I'm writing a code that is using ArrayList
this is the part that is giving me the error. There are several instancses of this error but I figure that if I can get once fixed I can fix them all.
... |
Forum: Java Sep 28th, 2007 |
| Replies: 1 Views: 5,697 Can any one give me any troubleshoot tips to get my applet to at least show up? It seems like I have most of the things right I'm sure the error is something small. |
Forum: Java Sep 14th, 2007 |
| Replies: 1 Views: 1,477 I'm getting errors for my switch statement stating that all of my cases are orphan cases does any one know why that is? |
Forum: Assembly Sep 5th, 2007 |
| Replies: 2 Views: 948 I'm wondering how I would be able to tell if an integer is even or odd, I know that if the least significant bit is 1 then it is odd but I don't know how to tell if the integer has this bit as a 1 or... |
Forum: Legacy and Other Languages Jul 20th, 2007 |
| Replies: 0 Views: 1,020 I'm having trouble writing a recursive program that finds the Factorial of a number that is the output of another fucntion (exp bar)
here's my program for (exp bar)
exbar(0, 0, 0, _) :-
... |
Forum: Legacy and Other Languages Jul 4th, 2007 |
| Replies: 1 Views: 1,176 I wrote a a program that calculates the volume of cylinders using named functions and un-named functions, however, i'm having trouble doing the same using the let-form in scheme.
here's my program... |
Forum: Legacy and Other Languages Jul 3rd, 2007 |
| Replies: 2 Views: 1,618 i need help writing a program that compares 5 numbers and returns the max, i have the code that compares 3 numbers but i don't know how to expand it to 5.
here's the code for the max of 3
... |
Forum: C++ Jun 27th, 2007 |
| Replies: 1 Views: 882 I've written a program that keeps a linked list of Personnel. The Personnel can be of the type Student(inherited from Personnel) each student has the name and id from Personnel and a Queue of type... |
Forum: C++ Jun 27th, 2007 |
| Replies: 10 Views: 1,712 I have a Class Personnel and a sub-class Student
how could i change a pointer pointing to Personnel and have it point to Student?
I'm trying this
Personnel *person=NULL;
... |
Forum: C++ Jun 26th, 2007 |
| Replies: 3 Views: 5,421 I delcared an enum type in my program:
typedef enum {freshman, sophmore, junior, senior
}level;
then i declared a variable
level x=freshman;
how can i increase the enum type to go from... |
Forum: C++ Jun 26th, 2007 |
| Replies: 1 Views: 1,022 I'm having trouble writing a Queue class using Book structures i keep getting this error where tried to assign the pointer front and rear to the next or previous link in the queue
here is my entire... |
Forum: C++ Jun 26th, 2007 |
| Replies: 1 Views: 3,219 along with that error i also get these for that same line
error C2143: syntax error : missing ';' before '{'
error C2447: '{' : missing function header (old-style formal list?)
here is that line... |
Forum: C++ Jun 26th, 2007 |
| Replies: 1 Views: 1,001 these are the errors that i'm getting
i dont' know whats wrong because most of it is given by the instructor
any help with these errors will be greatly appreciated
c:\documents and... |