Salem - Thank you for the tips.
I have made the following changes to the code:
ifstream inFile;
inFile >> students[x].studentLName
>> students[x].studentFName
>>...
Type: Posts; User: lostinprogramC+
Salem - Thank you for the tips.
I have made the following changes to the code:
ifstream inFile;
inFile >> students[x].studentLName
>> students[x].studentFName
>>...
fixed the infile error by adding
ifstream inFile;
before
inFile >> students[x].studentLName
>> students[x].studentFName
was going to add the input file as well. Here it is:
Micky Mouse 100
Minnie Mouse 85
Donal Duck 87
Daisy Duck 83
Pluto Dog 60
Sleeping Beauty 70
Cinderella Princess 93
Robin Hood 97
Hello everyone - I am receiving several build errors for my code and I am quit frustrated at this point any help would be great. Here is the full programming exercise so you can understand what it is...
Eman - OMG it worked! now I just need to put a pause in so that I can see all of the answers. :)
THANK YOU to everyone. For helping me, pointing out the syntax errors and how to call a function...
tabstop - can you please provide an example of what you are explaining? (in other words... I don't get it? lol)
FOR THE LOVE OF... SERIOUSLY!!!!!
then why won't it work for me???? *pouts*
does it actually ask all the questions and return all the information?
itsme86 - thank you for the clarification. I can now get the code to actually run... kinda lol
when I go to debug the console actually comes up and askes me to put in a center point, then it hangs....
Eman- your right I didn't declare a variable of radius. I will fix that :) Knowing that I can have more then one parameter helps. Thank you.
Tater - Thank you for the good advice. I am just...
OMG that was like a little light buld went off.. itsme86 , YOU ROCK. ok I will change that and see what happens.
:D
ok changed some code so here is the big sha bang again..... :-P
#include <iostream>
#include <cmath>
using namespace std;
I know I need to change my declarations but am still totally frustrated as to why this isn't working. Is the code even close to being written correctly for calling the distance function?
If I...
ok so if I create the following function:
double distance (double x1, double y1, double x2, double y2) {
double dx = x2 - x1;
double dy = y2 - y1;
double dsquared = dx*dx +...
I have changed the call of the function to match the function that has been declared and I receive the following errors:
Error 6 error C2144: syntax error : 'int' should be preceded by ')' ...
So if the function is
int distance( int x1, int y1, int x2, int y2)
then the call to the function should look the same...? Sorry functions have gotten me very confused.
like this
I am brand new to programming and am takinga class in C++. So far I have been able to successfully create the programs requested and get the needed output but this problem has got me stumped. The...