Question from Benjamin Cuningham: C++ – 26 – Exception handling allows a program to?
(a) terminate in a controlled manner
(b) be more robust and fault-tolerant
(c) continue executing as if no problem was encountered
(d) all of the above
Popular answer:
Answer by I Love Ubuntu
D… as with any programming language. and do your own homework.
If you have a better solution to this error, please comment below.
Question from honey: Programming in c++ help!!! error msg: Error E2188 assign10.cpp 37: Expression syntax in function Array::Array
please help. i’m trying to dynamically allocate memory for my array. but i’m getting the error msg above. here’s my class declaration:
class Array //declaring class
{
private:
double *ptr;
int subscript;
void getSubscript(int, double *);
public:
Array()
{getSubscript(int subscript, double *ptr);} //default constructor ****problem****
~Array()
{delete ptr;}
int subscriptNum();
void showSubscript();
};
2)member func definition:
void Array::getSubscript(int sub, double *objPtr)
{
int num;
cout<<"\tTo begin, please enter a positive value for the size you would\n"
<<"\tlike your array to be: ";
cin >>num;
while(num<0) //validation. wont allow negitive #s.
{
cout<< "\tOOPS! please enter a positive number! ";
cin >>num;
}
if(num>0)
{
sub=num;
objPtr=new double[sub];
for(int i=0; i
{
objPtr[i]=-1;
}
}
};
Popular answer:
Answer by Kinopio
never did c++, but that type of error message usually means you did something silly, like forgot to add a semicolon or left a floating paranthesis somewhere. Go back and reread the statement that causes problems.
If you have a better solution to this error, please comment below.
Question from Huongeng Ting: How to write a C program to evaluate epsilon for a single-precision floating point number?
Can anybody help me to write a C program to evaluate the epsilon for a single-precision floating point number? I seriously have no idea. Thanks a lot!!
Popular answer:
Answer by hootin
include
int main()
{
float machineEpsilon = 1.0f;
do{
machineEpsilon /= 2.0f;
} while ((float)(1.0 + (machineEpsilon/2.0)) != 1.0);
printf(”\nCalculated Machine Epsilon: %G\n”, machineEpsilon);
return 0;
}
Add your own answer to this error in the comments!
Question from justwondering: does any one know what this error means?
Installation Failed Midas Exception:./game environment.cpp line 214:create file(): failed error =5 for C:\users\Diane\app data\roaming\macromedia\flash player\# security\flash player trust\king-com-workpath.txt)
Popular answer:
Answer by tempted!
update your flash player
(it’s free)
If you have a better solution to this error, please comment below.
Question from Alisha B: My yahoo msng is not opening,the error msg is microsoftvisual c++runtime error library. How can i fix the prob?
Only my contacts list is opening.
Popular answer:
Answer by Daddybear
To look for a solution visit the Microsoft support website
http://support.microsoft.com/kb/307817
Know better? Leave your own answer to this error in the comments!
Question from VQ: for c++ (cpp) programs with numerical problems?
http://www.scribd.com/doc/32993992/c-cpp-programs-with-numerical-problems
Popular answer:
Answer by Donna
Hmm.. I’m a little confused by your question.. Could you add more details please?
Give your answer to this error below!
Question from The Computer Nerd: C++ help: What is up with my object.cpp file?
I have 3 files: header.h, object.cpp, & Main.cpp. My object.cpp has implemented classes (& functions). My Main.cpp has the
Popular answer:
Answer by Ruan Caiman
You just need to include the iostream in object.cpp as well. Then you can either add the line using namespace std; again in your object.cpp or you can scope cout every time you use it (std::cout).
Know better? Leave your own answer to this error in the comments!
Question from Cincy G: Why wont DVD discs burn to my computer hard drive using Nero Express?
I am using Nero and when I try to burn the image from DVD to my computer it goes around 90 percent then says “reading disc failed”. The DVD works fine though. Is there some sort of setting I need to change? Or some DVDs just impossible to burn to hard drive?
I am using Nero Version: 7.9.6.0 Internal Version: 7, 9, 6, 0
(Nero Express)
Here is the error log……….
#16 TRANSFER -25 File Reader.cpp, Line 270
Error reading data
#17 Text 0 File Reader.cpp, Line 273
Exception value: -1040
#18 CDCOPY -12 File DVDReader.cpp, Line 148
Unrecoverable read error at
LBA 2079456
#19 Phase 22 File dlgbrnst.cpp, Line 1762
Reading disc failed
Popular answer:
Answer by awees
What’s on the dvd? Is it protected somehow?
Know better? Leave your own answer to this error in the comments!
Question from Xyz A: please give me a code (in c or cpp)to compress a bitmap image to jpeg?
i had been working on it for 1 month and havent got much progress as i am still new to computer graphics and got a mammoth project.help me as the deadline is very near
Popular answer:
Answer by Nick T
Search online for a C/C++ JPG library.
http://cimg.sourceforge.net/
EDIT – ELfaGeek, the question is about programmatically converting an image, not via a graphics editor.
Know better? Leave your own answer to this error in the comments!
Question from undertaker: How do you compile a .CPP file with Microsoft Visual C++ 2008 express edition?
Im having trouble ive coded it but dont know how to compile it. I AM IN DIRE NEED OF HELP. PLLLLEEEEEZ HELP ME.
Popular answer:
Answer by Vyseaurion
Dev C++
Know better? Leave your own answer to this error in the comments!