the virus scan didn't turn up anything. I tried running scandisk just now, but, hilariously, it couldn't complete because "windows or another program is writing to the disk." great.
today when I...
Type: Posts; User: Will
the virus scan didn't turn up anything. I tried running scandisk just now, but, hilariously, it couldn't complete because "windows or another program is writing to the disk." great.
today when I...
every day, the available space on my HD is shrinking with seemingly no explanation. available space went from 1.3 gigs yesterday to 800 mb today. this has been happening slowly for a week or two.
...
thanks for the code, Nick. I modified it to fit my program, and it works really well (execution time went from around 2 minutes to around 6 seconds).
looking at it though, I think I was confused...
generate_key just generates a key. I forgot to explicitly check that it's within [0,n-1], but it is.
find and insert are taken care of by STL.
now I have another version that is integrated with the dictionary file. the only problem is that it takes about 2 minutes to solve a five character word.
to speed this up, I decided to try to use...
if it's a character array, then the last space is taken up by a null terminator (I think that's the correct name). it's represented as \0.
so if I wanted to store "dog" in char array[3], the...
yeah, that's an infinite loop. it should be something like
#include <iostream>
using namespace std;
int main()
{
int array[100];
recently my mom has become obsessed with "word jumbles" in our local paper, which are scrambled letters that you have to unscramble to form a word. for example, the correct answer to "btior" is...
Are the words "Safe Mode" anywhere on your screen? :p
Thank you kindly.
EDIT: Thanks for the help, it's running a lot better than before. I do have an additional problem now though, and it's probably a beginner's error, but I can't see it. When the...
I thought of that, but I'm unsure as to how to check if something is a digit. Ascii values?
For my final, I have to do an organizational chart using linked lists. Users have to be able to add people to the list, delete people, change information, blah blah blah. The problem is the way the...
Jesus ****ing Christ on a goddamn bagel. I just got done with the AB test...that was the hardest thing ever.
Multiple choice was fine. I answered 37/45, and I'm pretty sure I got those all right....
AP Calculus test tomorrow. I want to cry. I know the subject, but it's effectively risking 9 months of work on one test. If I get a 1, someone, somewhere is dying. I don't know who, but they'd better...
Here you go. I just did this assignment (or something similar, my class is using Deitel's book), so it's not going to be exactly like yours, but you should be able to figure it out.
Euclid.h
...
For my computer programming final, I have to write a program to simulate an organizational chart using linked lists. In the end, the output should look something like this:
1. President...
That was it. It is times like this that I hate programming. Thanks a bunch for your help though, I would've never caught that.
That doesn't seem to be it either. I took out some of re-includes without additional problems, but it didn't solve the original one either.
I tried your suggestions. No luck, sadly. Do you think it could be a problem with one of the included header files (iostream, list, ...)?
Ok. I don't know if you just want the code, or if you want to do it yourself. If you want the code, look down, if you want to figure it out yourself, look up the Sieve of Eratosthenes.
...
I'm writing a program to do an organizational chart using linked lists. It has a class called "orgchart" which is the main chart. It consists of a bunch of functions plus a linked list of another...
Mine is a bit different from yours, sorry, but I already had it done. You should be able to figure it out from this code though.
#include <iostream.h>
void draw_square(int length, char...
Haha, that was dumb. Thanks for the help, sorry for wasting your time though.
For some reason I can't figure out the + operator. I can do += just fine, but when I try to do +, I keep getting the address of the object instead of the value. The program is dealing with fractions...
Just use the sieve of eratosthenes. I made a program like this a little bit ago, I'll post the source. Just replace arraysize with whatever you read from the file, and you'll be set.
#include...