- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
21 Posted Topics
Re: After glancing at your code, I noticed that you defined getCourse() to return an integer, but within the method, you returned an object reference. Your code won't compile until you fix that and your bracket issue. One advice is whenever you start a new new block of statements(ie while, if, … | |
Re: Not exactly what you asked, but it seems that you do not know what the purpose of the keyword static is for. Static methods can be called without the creation of the object. Normally you will need to create an object of a class in order to use the functions … | |
I have 3 classes. Class A has an ArrayList of class B and class B has an ArrayList of class C. Within Class A, I have a function called contain [CODE] public boolean contain(int t, String n) { for(int i = st.size() - 1; i >= 0; i--) { if(st.get(i).contain(t, … | |
Are there any Java documentation similar to the one at [url]http://www.cplusplus.com/?[/url] I have checked the official Java documentation at the Sun website, but it does not show as much information as the one that I use for C++. For one thing, there are no example codes =( | |
This is a silly question. I have been working with pointers for almost two quarters and this question never occurred to me until today when I wrote up some code and my IDE screamed at me about it. Oddly enough, 99% of the time I get it right so this … | |
![]() | Re: Add an environment variable named CYGWIN with value nodosfilewarning and the error message will be gone. |
I implemented a BFS on a maze that I made, but the one problem that I have is that I do not know how to obtain the indices of the path that it took to solve the maze. Right now all my BFS algorithm does it prints out if it … | |
So I finally finished writing a program to build a maze using disjoint set (I just learned it =P). Anyway as I was writing my program, I was under the impression that I could start from the end of the maze and I could climb up to the parent node … | |
After tackling with this function for almost the whole day, I still cannot figure out why this code isn't working. My BTNode has three pointers(left, right, and parent). I went through this code on paper and it seems to work fine, but it does not work fine during execution. I … | |
I recently made the transition from Netbeans to Visual C++. Anyway I am having a little trouble configuring some settings. Does anyone know how to create project templates? I have been messing around with the settings, but I can't seem to find an option for it. I want a template … | |
I am writing a program to implement this without using any built in function from C++. I am having some trouble figuring out how to find the decimal value and exponent for very small numbers like 0.25 0.15 0.0 etc. I need to convert my float to binary and then … | |
Does anyone know of a good beginner java book that is the most up to date? Head First Java 2nd ed. seems kind of outdated when I looked at the date. | |
Whenever I am getting a line from a file by using the string getline() function, I seem to be getting an extra character. I am curious to know what exactly that character is. It recently caused me a bit of trouble trying to debug. Let's say the file is like … | |
I recently needed to add member functions like these into my class [CODE]istream& read(istream&) ; ostream& print(ostream&); [/CODE] I am a little confused on how to actually call these functions within my class. I am more familiar with overloading the insertion and extraction operator since the prototype for those makes … | |
So I am creating a program for a class that reads in from a file the appointments. The file has this format Date,Subject,Start Time,End Time,Location,, The interesting thing about the file is that it does not contain the same appointment (same name, location, and time) more than once. For example: … | |
I am write a program that both uses inheritance and composition. I am a bit new to inheritance so I am a little confused on some aspects of it. Let's say I have a class definition like this [CODE]class Month { Week *week[4]; }; // class Month class Week { … | |
I keep getting this error whenever I stop my program and I am wondering am I freeing memory right. This is my structure and I created a global array named day. [CODE]typedef struct { int hour; int minute; } Time; typedef struct { Time startTime; Time endTime; char subject[20]; char … | |
I am writing a program that reads from a file that contains a list of appointments and then put them into an dynamic array named day. I am having trouble figuring out what is exactly wrong with my program. It keeps on crashing before it finishes reading the file. I … | |
I am trying to insert a node before another node in a doubly linked list and I have been trying to do for awhile, but I still can't get it =/. I keep getting error whenever I try to display the list after I insert in a new node. Please … | |
Hi, I am writing a program that allows a user to enter a string of 0s, 1s, and x's. The program will then print out all of the possible combinations that a binary number can have with the string. Example: If the input is 1xx0 The output would be 1000 … | |
I am creating a script that allows me to calculate the future value of an investment at the end of x years, but I am having a little trouble writing the summation syntax in my script. I am not familar with the sum syntax so I do not know how … |
The End.