Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~8K People Reached
Favorite Tags
c x 19
c++ x 19
java x 11

21 Posted Topics

Member Avatar for samuel17

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, …

Member Avatar for Akill10
0
183
Member Avatar for ssubnel

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 …

Member Avatar for ssubnel
0
166
Member Avatar for red999

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, …

Member Avatar for red999
0
2K
Member Avatar for red999

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 =(

Member Avatar for red999
0
67
Member Avatar for red999

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 …

Member Avatar for Ariste
0
100
Member Avatar for OzY360

Add an environment variable named CYGWIN with value nodosfilewarning and the error message will be gone.

Member Avatar for baxilo
0
2K
Member Avatar for red999

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 …

Member Avatar for WaltP
0
158
Member Avatar for red999

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 …

Member Avatar for red999
0
104
Member Avatar for red999

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 …

Member Avatar for red999
0
129
Member Avatar for red999

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 …

0
60
Member Avatar for red999

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 …

Member Avatar for Salem
0
102
Member Avatar for red999

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.

Member Avatar for red999
0
83
Member Avatar for red999

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 …

Member Avatar for Ancient Dragon
0
144
Member Avatar for red999

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 …

Member Avatar for red999
0
298
Member Avatar for red999

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: …

Member Avatar for red999
1
100
Member Avatar for red999

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 { …

Member Avatar for mrnutty
0
109
Member Avatar for red999

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 …

Member Avatar for Aia
0
279
Member Avatar for red999

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 …

Member Avatar for red999
0
123
Member Avatar for red999

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 …

Member Avatar for kvprajapati
0
2K
Member Avatar for red999

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 …

Member Avatar for JJS
0
80
Member Avatar for red999

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 …

Member Avatar for paddy3118
0
187

The End.