Search Results

Showing results 1 to 40 of 47
Search took 0.01 seconds.
Search: Posts Made By: _dragonwolf_
Forum: Java 7 Days Ago
Replies: 2
Views: 226
Posted By _dragonwolf_
Can anybody help with this??
Forum: Java 8 Days Ago
Replies: 2
Views: 226
Posted By _dragonwolf_
The section of my code that is commented out is what I need help with. I am wanting to check the user input of binary for anything other than a 1 or 0. Also, it will only accept an input of 10...
Forum: Java 11 Days Ago
Replies: 2
Views: 279
Posted By _dragonwolf_
I'm trying to create a boggle game. I have it so it will setup the board and accept user input. What I am trying to do now is get rid of the "[" braces "]" and the commas to give it a cleaner look...
Forum: Java 14 Days Ago
Replies: 1
Views: 212
Posted By _dragonwolf_
I have file with a list of names in it and next to the names is a series of digits. The digits represent its level of popularity per every 10 years.

The program I have asks the user to input the...
Forum: Java 18 Days Ago
Replies: 1
Solved: String to char
Views: 266
Posted By _dragonwolf_
I am writing a simple program that is supposed to take a user input and convert it to char and for each char it should change it to the designated change.
I'm using switch statements to do this.
...
Forum: Java 25 Days Ago
Replies: 4
Views: 236
Posted By _dragonwolf_
OK. So you just edited your post. Here is what I have:

Entire program works with exception of the "isPair()" function.
Program throws an:
Exception in thread "main"...
Forum: Java 25 Days Ago
Replies: 4
Views: 236
Posted By _dragonwolf_
How would I do that? I am new to Java and arrays aren't really my greatest skill.
Forum: Java 25 Days Ago
Replies: 4
Views: 236
Posted By _dragonwolf_
This code works fine so far... except for my "isPair()" function. It gives me the following error:

Exception in thread "main" java.lang.NumberFormatException: For input string:

Any help solving...
Forum: Java 33 Days Ago
Replies: 3
Views: 239
Posted By _dragonwolf_
I'm using NetBeans IDE 6.7.1
Not sure if that means much in the way of what version I'm using.
Forum: Java 33 Days Ago
Replies: 3
Views: 239
Posted By _dragonwolf_
This project is similar to, but not exactly like, my phonetic project. I am having to construct a GUI and have done so. I have been able to get everything except one part.

What I need it to do...
Forum: Java Oct 16th, 2009
Replies: 3
Views: 335
Posted By _dragonwolf_
That works perfectly!!! Thank you greatly...
Forum: Java Oct 16th, 2009
Replies: 3
Views: 335
Posted By _dragonwolf_
I am having an issue converting words into phonetic spellings. Example: userInput = apple / outResult = Alpha Papa Papa Lima Echo

I can get my code to convert a single letter to its respective...
Forum: C++ Jul 27th, 2009
Replies: 1
Views: 131
Posted By _dragonwolf_
Ok, here is what I have for my compareDates() function in my class:

int Date::compareDates(int m, int d, int y)
{
if((month < m) || (day < d) || (year < y))
cout << "This date comes before...
Forum: C++ Jul 27th, 2009
Replies: 9
Views: 461
Posted By _dragonwolf_
2 weeks of late nights and tons of assistance and its almost complete!!! The read in part is at least done. I also made it to read in months that were typed with a lower case beginning to be valid....
Forum: C++ Jul 27th, 2009
Replies: 9
Views: 461
Posted By _dragonwolf_
oops....guess I was up too late. It only reads the string versions now....well...gotta keep workin...
Forum: C++ Jul 27th, 2009
Replies: 9
Views: 461
Posted By _dragonwolf_
It is 4 in the morning but I finally got it to read in both ways....however....I can't get it to loop until it reads everything...

It will read in the dates that begin with strings (i.e. January 1...
Forum: C++ Jul 26th, 2009
Replies: 9
Views: 461
Posted By _dragonwolf_
The third constructor Date(string,int,int) is supposed to handle the string months. I have no clue how to set that up. I've been trying different things. I delcared a new data member 'const char...
Forum: C++ Jul 26th, 2009
Replies: 9
Views: 461
Posted By _dragonwolf_
Here is the main program file (the input file is attached):

#include "testerResult.h"
#include <iostream>
#include <string>
#include <fstream>

using namespace std;

void...
Forum: C++ Jul 26th, 2009
Replies: 9
Views: 461
Posted By _dragonwolf_
I feel like an idiot asking for help every step of the way. My program is almost complete. I just can't seem to wrap my head around the constructor issue.

Here is the check list of what I have...
Forum: C++ Jul 26th, 2009
Replies: 10
Views: 1,149
Posted By _dragonwolf_
Forum: C++ Jul 24th, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
Yes the code works. Don't sound so surprised. I'm working with user defined classes. I can write a simple function that determines the 'dayOfYear' number and then use my function that I have that...
Forum: C++ Jul 23rd, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
This was the code that I had....




Here is what I changed it to....

int Date::dayNumber()
{
int numOfDaysInMonth[12]={31,28,31,30,31,30,31,31,30,31,30,31};
Forum: C++ Jul 23rd, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
Ok, now it works....kind of. For the first 2 months it will add up correctly to give me the correct day number. However, when It reads in "March 1, 1900" or whichever year that isn't a leap year that...
Forum: C++ Jul 22nd, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
Okay. So I got that to work and it gives me the number of days within a given year (i.e. Leap year 366, and Non-Leap year 365). However, I am unsure as to how to get it to pinpoint the day number of...
Forum: C++ Jul 19th, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
the word year that is in quotation marks in my last post ("year" ) is just stating that whatever year you put there 2000, 2001, 2002, 1900 .... whatever year you put there.... I don't know what is so...
Forum: C++ Jul 19th, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
my program requires that i use input from a file via fstream. there is no variable named "julianDayNumber" because I changed it to "dayOfYear". What I am trying to do is alter the julianDayNumber...
Forum: C++ Jul 19th, 2009
Replies: 13
Solved: dayOfYear
Views: 544
Posted By _dragonwolf_
I have tried different things to modify the following code and have been unsuccessful. The following code is to get the julian date number. I need to alter it to make it return the day number...
Forum: C++ Jul 18th, 2009
Replies: 10
Views: 1,149
Posted By _dragonwolf_
Not quite sure about storing any strings anywhere. However, the alterations that you said to make worked perfectly. Thanks. That solves that issue. I can call this issue solved now. I appreciate it.
Forum: C++ Jul 17th, 2009
Replies: 10
Views: 1,149
Posted By _dragonwolf_
I actually had to change part of it around to get the program to like what adatapost's post was. Since my program accepted it without giving errors I assumed it was correct. I will post the .h...
Forum: C++ Jul 17th, 2009
Replies: 10
Views: 1,149
Posted By _dragonwolf_
This helped a lot. Thanks a lot. I appreciate it.
Forum: C++ Jul 17th, 2009
Replies: 10
Views: 1,149
Posted By _dragonwolf_
I am having to write a program that has a user-defined class. In this program I need to convert an INT to a STRING. For example, if the program reads in the date "7/17/2009" it will need to be...
Forum: C++ Jul 7th, 2009
Replies: 3
Views: 209
Posted By _dragonwolf_
I was posting just to show final product. Code may still have several issues but it works. That is what matters to me. I'm not all knowing when it comes to programming. I prefer to stick to excel and...
Forum: C++ Jul 6th, 2009
Replies: 3
Views: 209
Posted By _dragonwolf_
Here is my final product:


#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>

using namespace std;
Forum: C++ Jul 6th, 2009
Replies: 10
Views: 417
Posted By _dragonwolf_
The "not-quite-so-much-masterpiece" is almost done.

I put
cout << count << endl;
into my program. I had to do it like

if (tooMany = true)
{
printTable(scores,id,count);
cout <<...
Forum: C++ Jul 5th, 2009
Replies: 10
Views: 417
Posted By _dragonwolf_
The tooMany thing that is in the book looks like this:

bool &tooMany); //OUT: A flag to indicate that more
//than MAX_SIZE scores items are in
...
Forum: C++ Jul 4th, 2009
Replies: 10
Views: 417
Posted By _dragonwolf_
It actually does compile. I removed that one line you said to and placed as a global declaration otherwise the code won't compile. As for 'printTable', all it really contains is the heading displays:...
Forum: C++ Jul 4th, 2009
Replies: 10
Views: 417
Posted By _dragonwolf_
The thing is that I can't have the arrays hardcoded because I have to pull the values from a .txt file. I can set it up to where it calls and utilizes the computeAverage function and it will work. I...
Forum: Community Introductions Jul 4th, 2009
Replies: 1
Views: 179
Posted By _dragonwolf_
My name is James. Currently going to school and have a professor that runs his class like a Marine Drill Instructor. He expects you to know how to do any and all levels of programming in the C++...
Forum: C++ Jul 4th, 2009
Replies: 10
Views: 417
Posted By _dragonwolf_
Okay, so I have my program almost complete. I can get it to do everything except use the computeAverage. I know it works because if I hard code the arrays, I can utilize that and it will work....
Forum: C++ Jul 4th, 2009
Replies: 2
Views: 234
Posted By _dragonwolf_
Thanks. That helped trim down my code a bit and I managed to get a few other things done with it. Appreciate the help.
Showing results 1 to 40 of 47

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC