by: Wenjie |
last post by:
Hello,
I have a question concerning style related to conditional
decision:
#define FAIL -1
int f();
if (f() != FAIL) or better if ( FAIL != f())? Why?
|
by: Chess Saurus |
last post by:
I'm getting a little bit tired of writing
if (a = malloc(...) == NULL) {
// error code
}
I mean, is it really possible that a malloc call could fail, except in
the case of running out of...
|
by: xxxxyz |
last post by:
Hi,
I want to create a class with a constructor which can fail (for example
if (..) fail;). When constructor fail I want the variable to point to
null. Example:
class PosInt{
int i;
public...
|
by: Robbie Hatley |
last post by:
Say I have an ifstream object, like so:
#include <iostream>
#include <fstream>
int main(int, char* Sam)
{
std::ifstream Bob;
Bob.open(Sam);
std::string buffer;
while (42)
|
by: marccruz |
last post by:
Hi,
I am writing a Windows Service in C#. I want to gracefully fail the
"protected override void OnStop()" function. To do this, I first tried
throwing an Exception in the function. However,...
|
by: Dilip |
last post by:
This thing is driving me nuts.
why would a simple output file stream like this:
ofstream ofs;
ofs.open("c:\temp\somefile.txt")
set the fail bit?
calling ofs.fail() right after the open...
|
by: banansol |
last post by:
Hi,
I just want to get this right.
A call to realloc() will return NULL on error and the original memory
is left untouched,
both when requesting a larger or a smaller size that the original,...
|
by: niranjan.singh |
last post by:
This is regarding to test an SDK memory stuff.
In what situation malloc gets fail.
any comment/reply pls....
regards
|
by: marshmallowww |
last post by:
I have an Access 2000 mde application which uses ADO and pass through
queries to communicate with SQL Server 7, 2000 or 2005.
Some of my customers, especially those with SQL Server 2005, have had...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|