473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

C operator <=

momotaro
357 100+
what is wrong with this line of code:
Expand|Select|Wrap|Line Numbers
  1. if(xxtemp >= 0 && xxtemp <= 255)
it gives me this error:
debug assertion failed!
.
.
.blablabla
(unsigned)(c+1) <= 256
blablabla
Aug 3 '07 #1
5 1441
JosAH
11,448 Expert 8TB
what is wrong with this line of code:
Expand|Select|Wrap|Line Numbers
  1. if(xxtemp >= 0 && xxtemp <= 255)
it gives me this error:
debug assertion failed!
.
.
.blablabla
(unsigned)(c+1) <= 256
blablabla
There's nothing wrong with that statement by itself, but what's that message
all about? There must be something else going on because bare if-statement
don't start spitting out messages by them selves.

kind regards,

Jos
Aug 3 '07 #2
momotaro
357 100+
I have foud the origine of the problem which has no think to do with that.
the problem is whene i read the IP/4 i store the characters in xx[3], yy[3]...and so on but the problem is some times the IP/4 ! = exactely 3 hance the rest cells of the array MAYBE (because am just trying to understand)
cose the problem..
what do you think?
Aug 3 '07 #3
JosAH
11,448 Expert 8TB
I have foud the origine of the problem which has no think to do with that.
the problem is whene i read the IP/4 i store the characters in xx[3], yy[3]...and so on but the problem is some times the IP/4 ! = exactely 3 hance the rest cells of the array MAYBE (because am just trying to understand)
cose the problem..
what do you think?
I think I just have to go to bed now because it's around midnight here and I'm
too tired to understand what you have just told me.

kind regards,

Jos
Aug 3 '07 #4
momotaro
357 100+
Expand|Select|Wrap|Line Numbers
  1. printf("good night")
Aug 3 '07 #5
JosAH
11,448 Expert 8TB
Expand|Select|Wrap|Line Numbers
  1. printf("good night")
Thank you; good night to you too.

kind regards,

Jozzzzz ...
Aug 3 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Alicia | last post by:
Hello, I am trying to figure out how to call an overloaded operator<< inherited from a base class. #ifndef PHONECALL #define PHONECALL #include "time.h" #include "interval.h"
3
by: Alex Vinokur | last post by:
Member operators operator>>() and operator<<() in a program below work fine, but look strange. Is it possible to define member operators operator>>() and operator<<() that work fine and look...
3
by: Sensei | last post by:
Hi. I have a problem with a C++ code I can't resolve, or better, I can't see what the problem should be! Here's an excerpt of the incriminated code: === bspalgo.cpp // THAT'S THE BAD...
14
by: lutorm | last post by:
Hi everyone, I'm trying to use istream_iterators to read a file consisting of pairs of numbers. To do this, I wrote the following: #include <fstream> #include <vector> #include <iterator> ...
4
by: bluekite2000 | last post by:
Here A is an instantiation of class Matrix. This means whenever user writes Matrix<float> A=rand<float>(3,2);//create a float matrix of size 3x2 //and fills it up w/ random value cout<<A; the...
3
by: Carlo Capelli | last post by:
I found a change in the following code, that behaved correctly in VC++ 6. #include <strstream> using namespace std; void main() { char x; ostrstream(x, 100) << "pippo" << "pluto" << ends;...
2
by: Harry | last post by:
Hi all, I am writing a logger program which can take any datatype. namespace recordLog { enum Debug_Level {low, midium, high}; class L { std::ofstream os; Debug_Level cdl; const...
4
by: Amadeus W. M. | last post by:
What is the difference between friend ostream & operator<<(ostream & OUT, const Foo & f){ // output f return OUT; } and template <class X>
7
by: Eric Lilja | last post by:
>From a book, I know the following is true for the comparison operators: An overloaded operator that is a class member is only considered when the operator is used with a *left* operand that is an...
6
by: johnmmcparland | last post by:
Hi all, when I write a subclass, can I inherit its superclass' << operator? As an example say we have two classes, Person and Employee. class Person has the << operator; /**
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.