473,386 Members | 1,743 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,386 software developers and data experts.

Stroustrup 4.11 exercise 4

solution runs fine but i was not able to do the "hexadecimal" part .
any help on that ?

--------- PROGRAMME ---------------
/* TC++PL 3e, 4.11 exercise 4

STATEMENT:
write a programme that prints out the letters 'a'...'z',
digits '0' to '9' and their integer values. do the same for
other printable characters. Do the same again but use hexadecimal
notation.
*/

#include<iostream>

int main()
{
for(int i=0; i <= 127; ++i)
{
std::cout << "'"
<< char(i)
<< "' : \t"
<< i
<< std::endl;
}

return 0;
}

--------- OUTPUT -------------

NOTE: here some characters are not displayed properly but on my GNOME-
Terminal they were displayed without any trouble.

[arch@voodo tc++pl]$ ./a.out
'' : 0
'' : 1
'' : 2
'' : 3
'' : 4
'' : 5
'' : 6
'' : 7
' : 8
' ' : 9
'
' : 10
'
' : 11
'
' : 12
' : 13
'' : 14
'' : 15
'' : 16
'' : 17
'' : 18
'' : 19
'' : 20
'' : 21
'' : 22
'' : 23
'' : 24
'' : 25
'' : 26
'' : 27
'' : 28
'' : 29
'' : 30
'' : 31
' ' : 32
'!' : 33
'"' : 34
'#' : 35
'$' : 36
'%' : 37
'&' : 38
''' : 39
'(' : 40
')' : 41
'*' : 42
'+' : 43
',' : 44
'-' : 45
'.' : 46
'/' : 47
'0' : 48
'1' : 49
'2' : 50
'3' : 51
'4' : 52
'5' : 53
'6' : 54
'7' : 55
'8' : 56
'9' : 57
':' : 58
';' : 59
'<' : 60
'=' : 61
'>' : 62
'?' : 63
'@' : 64
'A' : 65
'B' : 66
'C' : 67
'D' : 68
'E' : 69
'F' : 70
'G' : 71
'H' : 72
'I' : 73
'J' : 74
'K' : 75
'L' : 76
'M' : 77
'N' : 78
'O' : 79
'P' : 80
'Q' : 81
'R' : 82
'S' : 83
'T' : 84
'U' : 85
'V' : 86
'W' : 87
'X' : 88
'Y' : 89
'Z' : 90
'[' : 91
'\' : 92
']' : 93
'^' : 94
'_' : 95
'`' : 96
'a' : 97
'b' : 98
'c' : 99
'd' : 100
'e' : 101
'f' : 102
'g' : 103
'h' : 104
'i' : 105
'j' : 106
'k' : 107
'l' : 108
'm' : 109
'n' : 110
'o' : 111
'p' : 112
'q' : 113
'r' : 114
's' : 115
't' : 116
'u' : 117
'v' : 118
'w' : 119
'x' : 120
'y' : 121
'z' : 122
'{' : 123
'|' : 124
'}' : 125
'~' : 126
'' : 127
[arch@voodo tc++pl]$

Mar 26 '07 #1
17 2036
* arnuld:
solution runs fine but i was not able to do the "hexadecimal" part .
any help on that ?
This prints a number in hexadecimal notation:

cout << hex << 12345 << endl;

Not sure which header 'hex' is defined in.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 26 '07 #2

"Alf P. Steinbach" <al***@start.nowrote in message
news:56*************@mid.individual.net...
>* arnuld:
>solution runs fine but i was not able to do the "hexadecimal" part .
any help on that ?

This prints a number in hexadecimal notation:

cout << hex << 12345 << endl;

Not sure which header 'hex' is defined in.
<iosdeclares stream manipulators, except those
taking arguments, which are declared by <iomanip>.

-Mike
Mar 26 '07 #3
arnuld <ge*********@gmail.comwrote:
solution runs fine but i was not able to do the "hexadecimal" part .
any help on that ?
Look up the "hex" manipulator in <ios>.
--------- PROGRAMME ---------------
/* TC++PL 3e, 4.11 exercise 4

STATEMENT:
write a programme that prints out the letters 'a'...'z',
digits '0' to '9' and their integer values. do the same for
other printable characters. Do the same again but use hexadecimal
notation.
*/
[code snipped]
--------- OUTPUT -------------

NOTE: here some characters are not displayed properly but on my GNOME-
Terminal they were displayed without any trouble.
In <cctypethere is a function called isprint() that will tell you
whether or not a character is supposed to be printable.

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Mar 26 '07 #4
I V
Your program doesn't quite do what the exercise asks:

On Mon, 26 Mar 2007 03:23:38 -0700, arnuld wrote:
STATEMENT:
write a programme that prints out the letters 'a'...'z',
digits '0' to '9' and their integer values. do the same for
other printable characters. Do the same again but use hexadecimal
notation.
*/
The exercise asks you to print the letters a-z and the digits 0-9 but here
for(int i=0; i <= 127; ++i)
{
you are printing all the characters with codes between 0 and 127. Some of
these will be characters which are not letters a-z or numbers 0-9; some of
them will not be printable characters at all (this is why you are getting
odd output).

I'm pretty sure that the C++ standard guarantees that the
character codes for a-z are continuous, as are the codes for the digits
0-9, so you can loop over these two character ranges.
Mar 26 '07 #5
Your program doesn't quite do what the exercise asks:
>
On Mon, 26 Mar 2007 03:23:38 -0700, arnuld wrote:
write a programme that prints out the letters 'a'...'z',
digits '0' to '9' and their integer values. do the same for
other printable characters. Do the same again but use hexadecimal
notation.
*/

The exercise asks you to print the letters a-z and the digits 0-9 but here
NO, it also asks you to print the ALL printable characters. read
again.
for(int i=0; i <= 127; ++i)
{
you are printing all the characters with codes between 0 and 127. Some of
these will be characters which are not letters a-z or numbers 0-9; some of
them will not be printable characters at all (this is why you are getting
odd output).
ok, how do i know which characters are printable or not ?

>
I'm pretty sure that the C++ standard guarantees that the
character codes for a-z are continuous, as are the codes for the digits
0-9, so you can loop over these two character ranges.

Mar 27 '07 #6
* arnuld:
>
ok, how do i know which characters are printable or not ?
You can use the iscntrl function.

This function, from the old C library, is designed so that it almost
invites you to use it incorrectly.

The argument type is 'int', but it expects a /non-negative/ character code.

Hence if you pass a 'char', and with your compiler or compiler options
'char' is a signed type, you might end up passing in a negative value.

To avoid that the actual argument should be cast to 'unsigned char'
(it's perhaps best to write a function that in turn calls iscntrl).

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 27 '07 #7
On Mar 27, 12:29 am, ricec...@gehennom.invalid (Marcus Kwok) wrote:

In <cctypethere is a function called isprint() that will tell you
whether or not a character is supposed to be printable.

great, i used it and here is the resulting programme and output. as
you can see the output contains only the CHARS between 32-126 because
i applied "isprint()".

thanks Marcus

--------- PROGRAMME ------------

#include<iostream>
#include<cctype>

int main()
{
std::cout << "CHAR \tDECIMAL\tHEX" << std::endl;

for(int i=0; i <= 127; ++i)
{
char ic = char(i);

if(isprint(ic))
{
std::cout << "'"
<< ic
<< "' : \t"
<< i
<< std::endl;
}
}

return 0;
}

---------- OUTPUT ----------
CHAR DECIMAL HEX
' ' : 32
'!' : 33
'"' : 34
'#' : 35
'$' : 36
'%' : 37
'&' : 38
''' : 39
'(' : 40
')' : 41
'*' : 42
'+' : 43
',' : 44
'-' : 45
'.' : 46
'/' : 47
'0' : 48
'1' : 49
'2' : 50
'3' : 51
'4' : 52
'5' : 53
'6' : 54
'7' : 55
'8' : 56
'9' : 57
':' : 58
';' : 59
'<' : 60
'=' : 61
'>' : 62
'?' : 63
'@' : 64
'A' : 65
'B' : 66
'C' : 67
'D' : 68
'E' : 69
'F' : 70
'G' : 71
'H' : 72
'I' : 73
'J' : 74
'K' : 75
'L' : 76
'M' : 77
'N' : 78
'O' : 79
'P' : 80
'Q' : 81
'R' : 82
'S' : 83
'T' : 84
'U' : 85
'V' : 86
'W' : 87
'X' : 88
'Y' : 89
'Z' : 90
'[' : 91
'\' : 92
']' : 93
'^' : 94
'_' : 95
'`' : 96
'a' : 97
'b' : 98
'c' : 99
'd' : 100
'e' : 101
'f' : 102
'g' : 103
'h' : 104
'i' : 105
'j' : 106
'k' : 107
'l' : 108
'm' : 109
'n' : 110
'o' : 111
'p' : 112
'q' : 113
'r' : 114
's' : 115
't' : 116
'u' : 117
'v' : 118
'w' : 119
'x' : 120
'y' : 121
'z' : 122
'{' : 123
'|' : 124
'}' : 125
'~' : 126
[arch@voodo tc++pl]$
Mar 27 '07 #8
On Mar 26, 8:39 pm, "Mike Wahler" <mkwah...@mkwahler.netwrote:

<iosdeclares stream manipulators, except those
taking arguments, which are declared by <iomanip>.
i tried this:

------------ PROGRAMME -----------
#include<iostream>
#include<cctype>
#include<ios>
int main()
{
std::cout << "CHAR \tDECIMAL\tHEX" << std::endl;

for(int i=0; i <= 127; ++i)
{
char ic = char(i);

if(isprint(ic))
{
std::cout << "'"
<< ic
<< "' : \t"
<< i
<< '\t'
<< std::ios::hex
<< i
<< std::endl;
}
}

return 0;
}

--------- OUTPUT ----------
[arch@voodo tc++pl]$ g++ -ansi -pedantic -Wall -Wextra 4.11_4.cpp
[arch@voodo tc++pl]$ ./a.out
CHAR DECIMAL HEX
' ' : 32 832
'!' : 33 833
'"' : 34 834
---------------------

i only USED some part of OUTPUT of here to make post shorter. you can
see the 1st line: DECIMAL "32" equals "832" in HEX. but it does not,
see:

HEX 832 = 8*16^2 + 3*16^1 + 2*16^0
= 2048 + 48 + 2
= 2098 IN DECIMAL

what is wrong with my programme ?

Mar 27 '07 #9
Alf P. Steinbach a écrit :
* arnuld:
>>
ok, how do i know which characters are printable or not ?

You can use the iscntrl function.
Or simply the isprint function of the same header (cctype).
>
This function, from the old C library, is designed so that it almost
invites you to use it incorrectly.

The argument type is 'int', but it expects a /non-negative/ character code.

Hence if you pass a 'char', and with your compiler or compiler options
'char' is a signed type, you might end up passing in a negative value.

To avoid that the actual argument should be cast to 'unsigned char'
(it's perhaps best to write a function that in turn calls iscntrl).
Mar 27 '07 #10
* arnuld:
>On Mar 26, 8:39 pm, "Mike Wahler" <mkwah...@mkwahler.netwrote:

><iosdeclares stream manipulators, except those
taking arguments, which are declared by <iomanip>.

i tried this:

------------ PROGRAMME -----------
#include<iostream>
#include<cctype>
#include<ios>
int main()
{
std::cout << "CHAR \tDECIMAL\tHEX" << std::endl;

for(int i=0; i <= 127; ++i)
{
char ic = char(i);

if(isprint(ic))
{
std::cout << "'"
<< ic
<< "' : \t"
<< i
<< '\t'
<< std::ios::hex
<< i
<< std::endl;
}
}

return 0;
}

--------- OUTPUT ----------
[arch@voodo tc++pl]$ g++ -ansi -pedantic -Wall -Wextra 4.11_4.cpp
[arch@voodo tc++pl]$ ./a.out
CHAR DECIMAL HEX
' ' : 32 832
'!' : 33 833
'"' : 34 834
---------------------

i only USED some part of OUTPUT of here to make post shorter. you can
see the 1st line: DECIMAL "32" equals "832" in HEX. but it does not,
see:

HEX 832 = 8*16^2 + 3*16^1 + 2*16^0
= 2048 + 48 + 2
= 2098 IN DECIMAL

what is wrong with my programme ?
A number of things.

First, unrelated to the hex, the conversion of 'i' to 'ic', to serve as
argument to 'isprint', does exactly the Wrong Thing. For the range you
have chosen, 0 through 127, it doesn't matter. But if increased that
range to say 0 through 255, then the conversion would introduce a
possible bug whereas all would be OK if you just used 'i' directly.

Second, regarding the hex. It's evident from the output that
std::ios::hex is display as '8', then 'i' is displayed in decimal. And
the reason is that the program is using the wrong 'hex', again because
it does to much: simply write 'std::hex', not 'std::ios::hex'.

Third, still regarding the hex. It sets the stream to a persistent
"display as hex" mode. Thus, when the code has been fixed as explained
above, only the first line of output will show any decimal number, the
rest will all be in hex.

I leave it to you to figure out a solution to that. ;-)
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 27 '07 #11
* Michael DOUBEZ:
Alf P. Steinbach a écrit :
>* arnuld:
>>>
ok, how do i know which characters are printable or not ?

You can use the iscntrl function.

Or simply the isprint function of the same header (cctype).
Not that it matters much, but you can assume there was a reason why I
didn't select that more "obvious" function in my answer.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 27 '07 #12
On Mar 27, 9:35 am, "Alf P. Steinbach" <a...@start.nowrote:
A number of things.

First, unrelated to the hex, the conversion of 'i' to 'ic', to serve as
argument to 'isprint', does exactly the Wrong Thing. For the range you
have chosen, 0 through 127, it doesn't matter. But if increased that
range to say 0 through 255, then the conversion would introduce a
possible bug whereas all would be OK if you just used 'i' directly.
OK, if I use "i" directly then in "isprint(i)" will always be
printable whereas corresponding "char(i)" will not. i have also
removed some magic numbers. this i what i have done now:

#include<iostream>
#include<cctype>

int main()
{
std::cout << "CHAR \tDECIMAL\tHEX" << std::endl;

const int lower_range = 0;
const int upper_range = 127;

for(int i = lower_range; i <= upper_range; ++i)
{
if(isprint((char(i))))
// i think it is same as using "char ic = char(i)
{
std::cout << "'"
<< char(i)
<< "' : \t"
<< i
<< "\t0x"
<< std::hex
<< i
<< std::endl;
}
}

return 0;
}

Second, regarding the hex. It's evident from the output that
std::ios::hex is display as '8', then 'i' is displayed in decimal. And
the reason is that the program is using the wrong 'hex', again because
it does to much: simply write 'std::hex', not 'std::ios::hex'.
done
Third, still regarding the hex. It sets the stream to a persistent
"display as hex" mode. Thus, when the code has been fixed as explained
above, only the first line of output will show any decimal number, the
rest will all be in hex.

YES, you are right:

[arch@voodo tc++pl]$ ./a.out
CHAR DECIMAL HEX
' ' : 32 0x20
'!' : 21 0x21
'"' : 22 0x22
'#' : 23 0x23
:-(

I leave it to you to figure out a solution to that. ;-)
all i can guess is "std::hex" works in both directions, left and right
BUT if that is true why do i get CORRECT values in 1st line? "32
0x20". i don't have any answer to this question.

i can create an "if-else" loop, where it will ask the user whether to
print the output in DEC format or in HEX but i don't want to do this.
i want both DEC and HEX on the same line. i am unable to figure any
way out.

Mar 27 '07 #13
* arnuld:
>On Mar 27, 9:35 am, "Alf P. Steinbach" <a...@start.nowrote:
>A number of things.

First, unrelated to the hex, the conversion of 'i' to 'ic', to serve as
argument to 'isprint', does exactly the Wrong Thing. For the range you
have chosen, 0 through 127, it doesn't matter. But if increased that
range to say 0 through 255, then the conversion would introduce a
possible bug whereas all would be OK if you just used 'i' directly.

OK, if I use "i" directly then in "isprint(i)" will always be
printable whereas corresponding "char(i)" will not.
No. If you use isprint(i) then the function will work correctly. If
you use isprint(char(i)) then, if char is a signed type and the
character code is negative, isprint has Undefined Behavior, which means
it may crash or give an incorrect result or, for that matter, a correct
one. Don't ever give isprint a negative number as argument. That also
goes for its family functions.

i have also
removed some magic numbers. this i what i have done now:

#include<iostream>
#include<cctype>

int main()
{
std::cout << "CHAR \tDECIMAL\tHEX" << std::endl;

const int lower_range = 0;
const int upper_range = 127;

for(int i = lower_range; i <= upper_range; ++i)
This is good.

{
if(isprint((char(i))))
This is in-principle bad (although with the given range it doesn't do
anything bad): just write 'isprint(i)'.

// i think it is same as using "char ic = char(i)
{
std::cout << "'"
<< char(i)
<< "' : \t"
<< i
<< "\t0x"
<< std::hex
<< i
<< std::endl;
}
}

return 0;
}
[snip]
>Third, still regarding the hex. It sets the stream to a persistent
"display as hex" mode. Thus, when the code has been fixed as explained
above, only the first line of output will show any decimal number, the
rest will all be in hex.


YES, you are right:

[arch@voodo tc++pl]$ ./a.out
CHAR DECIMAL HEX
' ' : 32 0x20
'!' : 21 0x21
'"' : 22 0x22
'#' : 23 0x23
:-(

>I leave it to you to figure out a solution to that. ;-)

all i can guess is "std::hex" works in both directions, left and right
BUT if that is true why do i get CORRECT values in 1st line? "32
0x20". i don't have any answer to this question.
No, it doesn't work in both directions. It doesn't affect earlier
output. It causes cout to /remember/ that the numbers should be display
in hexadecimal notation.

Initially cout remembers that numbers should be displayed in decimal
notation, and you changed that by using hex.

Now, after a little hex, cout remembers that numbers should be displayed
in hexadecimal notation, and you change that by ...?

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 27 '07 #14
On Mar 27, 10:46 am, "Alf P. Steinbach" <a...@start.nowrote:
No. If you use isprint(i) then the function will work correctly. If
you use isprint(char(i)) then, if char is a signed type and the
i dont understand the behaviour of "isprint()". does it understand its
input as merely an "int" or an "int for ASCII". to be exact:

isprint(68) == int 68
isprint(68) == ASCII representation of 'A'

character code is negative, isprint has Undefined Behavior, which means
it may crash or give an incorrect result or, for that matter, a correct
one. Don't ever give isprint a negative number as argument. That also
goes for its family functions.
ok... i will take it as my 1st "good coding practice" advice from
Alf ;-)
No, it doesn't work in both directions. It doesn't affect earlier
output. It causes cout to /remember/ that the numbers should be display
in hexadecimal notation.

Initially cout remembers that numbers should be displayed in decimal
notation, and you changed that by using hex.

Now, after a little hex, cout remembers that numbers should be displayed
in hexadecimal notation, and you change that by ...?
ok.. what "function" i can use that converts only the given DEC int to
a HEX int. IOW, is it possible to make it NOT to REMEMBER ?
Mar 27 '07 #15
Alf P. Steinbach a écrit :
* Michael DOUBEZ:
>Alf P. Steinbach a écrit :
>>* arnuld:

ok, how do i know which characters are printable or not ?

You can use the iscntrl function.

Or simply the isprint function of the same header (cctype).

Not that it matters much, but you can assume there was a reason why I
didn't select that more "obvious" function in my answer.
Which without explaination only confuse the matter since the OP question
was to know wether a charater is printable or not.

Michael
Mar 27 '07 #16
Alf P. Steinbach wrote:

No. If you use isprint(i) then the function will work correctly. If
you use isprint(char(i)) then, if char is a signed type and the
character code is negative, isprint has Undefined Behavior, which
means it may crash or give an incorrect result or, for that matter, a
correct one. Don't ever give isprint a negative number as argument.
That also goes for its family functions.
A slight nitpick. It's ok to pass EOF to isprint() and the other
"character handling" functions. Presumably that's for the case of using
them in conjunction with getchar() or the like, that return an int
that's either an unsigned char converted to int or EOF.


Brian
Mar 27 '07 #17
I V <iv*****@gmail.comwrote:
I'm pretty sure that the C++ standard guarantees that the
character codes for a-z are continuous, as are the codes for the digits
0-9, so you can loop over these two character ranges.
IIRC, only the digits are guaranteed to be contiguous. The letters, not
necessarily so (see EBCDIC).

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Mar 27 '07 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Oplec | last post by:
Hi, I am learning standard C++ as a hobby. The C++ Programming Language : Special Edition has been the principal source for my information. I read the entirety of the book and concluded that I...
7
by: arnuld | last post by:
problem: define functions F(char), g(char&) & h(const char&). call them with arguments 'a', 49, 3300, c, uc & sc where c is a char, uc is unsigned char & sc is signed char. whihc calls are legal?...
0
by: arnuld | last post by:
Stroustrup has a table in section 4.9 of declarations and definitions. he asks to write a similar table but in opposite sense: char ch; // declaration with definition he asks to do the...
0
by: arnuld | last post by:
this programme runs without any trouble. it took 45 minutes of typing. i posted it here so that people can save their precious time: // Stroustrup special edition // chapter 4 exercise 2 //...
2
by: arnuld | last post by:
MAX and MIN values of CHAR could not be displayed. Why ? BTW, any advice on improvement ? (please remember i have covered chapter 4 only) ------------- PROGRAMME -------------- /*...
16
by: arnuld | last post by:
i did what i could do at Best to solve this exercise and this i what i have come up with: ----------- PROGRAMME -------------- /* Stroustrup 5.9, exercise 3 STATEMENT: Use typedef to define...
11
by: arnuld | last post by:
/* Stroustrup: 5.9 exercise 7 STATEMENTS: Define a table of the name sof months o fyear and the number of days in each month. write out that table. Do this twice: 1.) using ar array of char...
6
by: arnuld | last post by:
this one was much easier and works fine. as usual, i put code here for any further comments/views/advice: --------- PROGRAMME ------------ /* Stroustrup: 5.9 exercise 7 STATEMENTS: Define a...
14
by: arnuld | last post by:
there is no "compile-time error". after i enter input and hit ENTER i get a run-time error. here is the code: ---------- PROGRAMME -------------- /* Stroustrup, 5.9, exercise 11 STATEMENT:...
27
by: arnuld | last post by:
it works fine without any trouble. i want to have advice on improving the code from any angle like readability, maintenance etc: ---------- PROGRAMME ------------ /* Stroustrup, 5.9, exercise 11...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
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,...
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...

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.