you got it to run ok? (other than what you stated)
Type: Posts; User: DoItAllMom115
you got it to run ok? (other than what you stated)
visual C++
doesn't compile for me
ERRORS:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/project 6.exe : fatal error LNK1120: 1 unresolved externals
Error executing...
I've worked alot of this out now.
Any more help from anyone?
Here are my errors:
--------------------Configuration: project 6 - Win32 Debug--------------------
Compiling...
project 6.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\project...
I've got the program to compile.
The print function works ok, but none of the others do.
Mostly they just loop through the choices a few times.
HELP!!
Thanks,
I had just figured out the first one before I checked your reply.
I fixed the second one--DUH!
but now I'm getting 2 more errors...
I think it may be a linking problem with my...
I've taken care of the previous errors, but now I'm getting this:
"conditional expression of type 'class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char> >' is...
Please see attached file.
I am getting 5 errors of "function does not take 3 parameters", one error at each case.
:(
How do you delete data from an external file from within your program? I am using arrays to store names and phone numbers and saving them to an external file. I need to be able to delete data from...
I have spent 14+ hours, got help from my professor, and STILL don't have a clue what I'm doing!
HELP!!
can you help with why the logic isn't correct?
See attached program please ?!?
I don't know why I am getting these errors:
error C2601: 'FUNCaveweight' : local function definitions are illegal
error C2601: 'maxminLengths' : local...
read in a number of values representing length, species and wight of fish
read in all values then deermine average weights, minimum and maximun number of fish sampled for each species
end of data...
cout<<"Enter number of fish:"<<endl;
cin>>numberFish;
//get input
for (s=0;s<numberFish;s++)
{
cout<<"Enter species:"<<endl;
cin>>Species[s];
}
for (w=0;w<numberFish;w++)
I have no idea what you mean.
I am trying to get input from the keyboard and put it into an array Species[s]
the other strings are working ok, but it does not let me enter info for the Species.
Why won't this let me input data from the keyboard for the species string array?
int main (void)
{
//declare arrays
int Length[numberFish];
//loop to read in species
for (s=0;s<numberFish;s++)
{
cout<<"Enter species of fish:"<<endl;
cin>>Species[s];
How do I total all the values in an array?
and average them?
ERROR: error C2679: binary '>>' : no operator defined which takes a right-hand operand of type '' (or there is no acceptable conversion)
at cin
#include <iostream>
#include <cstdlib>...
I really appreciate your help.
I think I might have it now!! finally...
for some reason it is not returning the calculated values from my functions to the main program
Anyone know why?
ok, I removed the declaration in front of the function call.
I changed height to a float instead of an integer, but why won't it print out the calculated values?
while (height>=0) {
...
I have changed it to
while (height>=0) {
but why won't it print out the values? is it not calculating them?
so I don't have to declare the function types a second time?
OK, Here is my rewritten code:
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <iomanip>
using namespace std;
//Project 3 - Draining a Tank