As hinted at, if you know there is a problem, which is certainly the case when it doesn't compile, then the compiler tells you the problem. So, tell us what the problem is, or what the compiler says...
Type: Posts; User: nadroj
As hinted at, if you know there is a problem, which is certainly the case when it doesn't compile, then the compiler tells you the problem. So, tell us what the problem is, or what the compiler says...
I just wanted to point out that it does this because both lines are using the exact same thing (&i which is equal to vPtr).
A "void*" can't be (directly) dereferenced because what it points to, or...
This is probably the easiest of the requirements, so put it on hold until the other two are done--ignore it for now.
How do you get a number from the user? Use "scanf" with the format specifier...
By asking smart questions, and not double posting.
Learning to think logically and in terms of proper software development methodologies is something I've spent the last 7 years learning and practising in school.
So, no, it's impossible for us to...
void DisplayResults(int, int, const int);
//...
void DisplayResults(int FirstArray[], int SecondArray[], const int SIZE)
Try changing your prototype to match how you actually implement it, as the...
I certainly don't remember any EE stuff, and have my own studying to do so I cant really focus on this to understand and/or critique it. In programming, when you're doing or forced to do something...
Did you change the h and cpp files for Circuit to reflect the change in your function? They of course must have been modified, so that you change the function to accept the various parameter(s), as...
Yes :) Its like magic, isn't it?
This is the point of a "variable". It's a "variable"! That is, its not constant, it changes, it varies. At any given time in the program, variable Resistance...
You're either overcomplicating things, thus confusing yourself, or you don't fully understand some programming foundations and how programs are executed.
If you are doing something like:
- get...
If you have a private variable p in one class, A, the only way that any other class, say class B, can access it is either:
- class A has a public "get" function, which returns this variable, class B...
I haven't read all of your description and code, but in your for loop
for (k = (Count+1); k>strlen(FullName); Count+1)
You're condition ("k>strlen(FullName)") involves "k" which is never modified...
In your .cpp file for class "RLC_Series_Cct" your using a variable named "MaxFreq", which was never declared in that file or the header file for this same class. Note that this variable is declared...
I'd suggest to post your complete and updated code. Without it we can only make suggestions/reasons based on assumptions we create.
I'm pretty sure phantomotap meant to say you can't just type stuff and expect it to compile and/or run, opposed to saying you "can".
See Don't flag your question as “Urgent”, even if it is for you...
You "#include <cmath>", because you probably want to use the "pow" function, but you never actually call that function.
cout << fnum << "Raised to the power of " << exp << " is " << fnum ^...
Did you search the standard C++ library? You would have found the reference for pow. This link has an example for C, but for C++ you include "cmath" instead of "math.h", and the rest should be...
Your sample input file is a plain-text, ASCII file, but you then go to read it as if it were a binary file. If you use these "lower"-level functions, you should be dealing with binary data. ...
There isn't a standard function to "print an array", in the way you want. What you will have to do is loop over each row, then loop over each column--implying a for loop within a for loop--and in...
Your welcome for the help.
When you create a "Project", you give it a directory, say D. When you build the project, it will create a subfolder, depending on what type of build you do. If you do a Debug build, it will create...
The "#include "framework.h"" line just tells the compiler to "look" into that file, so it knows what variables it declares, as well as what the prototypes of the functions in it. These prototypes...
Are you asking why the ".h" file was included? If so, the header files is basically the "interface". It says "I have these global variables (if any), and these functions named X, Y, Z, which take...
First, I haven't read all of this thread, just your last post. My guess is that you are given the file above (obviously), that you've posted, and are also given "frameworknew.h", and what you have...
I know nothing about Apple products, such as Mac OS, so I can't provide specifics. However, you get this message because you don't have the development packages installed or setup properly. On...