One of the advantage of C++ file IO is that when the exception is thrown or file handle goes out of scope, file handles are closed automatically.
What are the other points where C++ file IO...
Type: Posts; User: forumuser
One of the advantage of C++ file IO is that when the exception is thrown or file handle goes out of scope, file handles are closed automatically.
What are the other points where C++ file IO...
Is there any formatting flag that makes it possible to print decimal values with required precision?
setprecision is a manipulator and hence this is not the required solution.
Pls suggest the code so that the value 9.8754321 is exactly displayed without any truncation? Dont use manipulator or printf function. It is expected to use only formatting flags.
int...
This is not an assignment,but, an attempt to understand C++ in depth.
1 .Whare are advantages of C++ Input/Ouput over C input/output apart from type safety and exentensibility for objects?
2....
Friends, you have misunderstood me...I am not a student. I am trying to understand C++ in deep so requesting you to share a knowledge if you can.
C++ uses type-safe I/O. Each I/O operation is executed in a manner sensitive to the data type. If an I/O member function has been defined to handle a particular data type, then that member function...
I could come to some conlusion after experimenting this.
When exception is thrown in a method and not immediately caught, terminate method is called.
But, if the exceptoin is caught and rethrown...
Can you justfity? This is not homework but fundu questions. Pl answer
didnt compile
ok. Is it necessary to explicitly throw invaid argument exception or system generates it?
no it doesnt work
#include <iostream>
#include <string>
using namespace std;
class A
{
int i;int j;
public:
A(int ii,int jj)
{
When exception is thrown in a function and not handled there, it is passed to calling function where it can be handled...exceptoin occurs in A() which shd get handled by catch block in main which...
int main()
{
int z=0;
int i=1/z;
cout<<i;
}
It doesn't throw any error in Visual Studio 2008. .......What setting one has to change so that it will show runtime error in VS 2008.....
Pl confirm if following statements are true.
1. When exception is thrown and not caught, destructor is called during stack undwinding.
2. When exception is thrown , destructor is called.
3....
Hi,
Can you tell me various ways of internationalising C program?
Pls provide useful links or code.
IIT M.Tech. Madhusudan Mothe's book explains C concepts in easy words. Beginner can easily become expert after studying it. It is just relased on 1st Jan 2009. One can see sample chapter at
...
Still, it is not working. Please suggest
How one can convert wchar_t to char in C? Please suggest the code.
Library is getting loaded if I hardcode the path
h=LoadLibrary(C:\\dll\\name.dll);
However,library is NOT getting loaded...It returns NULL..Pls suggest to fix it.
<code>
HINSTANCE h = NULL;...
Can anyone send me C Socket Programming Tutorial for a beginner? It's urgent.
IIT M.Tech. Madhusudan Mothe's book explains C concepts in easy words. Beginner can easily become expert after studying it. It is just relased on 1st Jan 2009. One can see sample chapter at
...
Expression of if statement is a sequence point.
Sequence point is a specified point in the execution sequence where all side effects of previousevaluations are complete and no side effects...
I am compiling 1 project. It’s compiling but giving linking error like below
LINK : fatal error LNK1104: cannot open file '.\Debug\file.obj'
I tried to find out the reason. I searched...