Perhaps I am missing something really trivial, and if that is the case, feel free to point it out to me, but in the code you have posted you say:
"implementing this part is frustrating me
...
Type: Posts; User: Finchie_88
Perhaps I am missing something really trivial, and if that is the case, feel free to point it out to me, but in the code you have posted you say:
"implementing this part is frustrating me
...
What is the following line of code missing?
#include "Linklist.h
Isn't the problem with your original add function that you are attempting to access private class members from outside the class (in this case, from another instance of the same class definition).
...
Last night, I got my code to run smoothly without any errors and the SaveANN() method worked as it should. I realised that the error I made wasn't even in 'SaveANN()', it was in another method I...
Ok, after playing around with the code a bit, I think I've found one of the causes of the runtime error and as such, I no longer get runtime errors. That being said, that doesn't explain why the...
The other versions of the save 'SaveANN' methods is just to provide alternative ways of calling the same function because it will be useful for later expansions I have in mind for this source code....
I tried removing the spaces in the filename but that didn't do anything.
If I try replacing the filename argument in the io_file.open() method call with a constant string, e.g.
io_file.open(...
Hello Everyone, I haven't posted here in a while.
The problem I am having seems a simple one and I must be missing something quite basic but I just can't work out what. Below is some snippets of...
how would you go about doing this in C rather than using C++?
How would one go about using the get function to do it? I assume that it needs to be called 26 times because there are 26 letters in the alphabet (english one anyway), so presumably, the function...
I was wondering, how exactly do you go to a certain character number in a file? so suppose I was to open a file, and then wanted to obtain character number 26 from that file, how would I do it?
I have tried using doubles and floats, but with no success. What data type would you use if you wanted to store a large number in standard form? The number I want to store is 2m/(hbar^2) which is...
I've defined dx as a double, and yet it still does it.
wow. You guys are quick to get back, lol. Cheers guys. 1 more quick question (saves me from starting a new thread, lol). I calculate doubles k1,k2,k3 and k4 in my code, and i i want to calculate the...
For some reason, the following code generates an infinite loop, but I can't see why. Also, the output to the screen for values of x gives -1 for all values, which isn't right.
#define a ...
Hi there. I haven't been hear in a while. I was hoping that someone maybe able to help me. I wanted to write a program which was able to get certain share prices off yahoo finance, and then save...
lol, that wasn't the initial use of it, but good idea though...*Finchie_88 plots* (just kidding :P)
As for the info. Thank you for giving me initial information. If I have more difficulties I will...
you need to include the cstdlib in the project, so at the top of the code (just under the previous include), put:
#include <cstdlib>
I think that should solve the problem.
lol, actually, I have no intention of using this program to annoy people by sending them regular nudges, I was merely using that as an example to try and get my point across. What I Really want to do...
I think that the problem maybe that you need to include cstdlib when you compile, but I'm not 100% on that.
In C++ (the programming language I am most familiar with), how easy or hard would it be to make a program which interacted with another program. Say for example, how easy would it be to write a...
I was wondering. How exactly are random numbers generated, and by that I don't mean the method of seeding the random number generator etc, I mean "under the hood" as it were (I dislike that phrase...
I couldn't get much information about the sound card, the only information I could get was that it is a Realtek High Definition Audio card. But when I tried installing it with yast, it said "The...
I installed OpenSuse on my computer (having Windows on a separate partition), and it works fine, except that there is now no sound when I run linux, and I don't know how to configure it so that the...
Thank you for the replies. If I have anymore problems, I will post again. I was using the 2D array idea to start with (and I have a couple of classes to store the coords of the pieces). Thanks again,...