473,960 Members | 36,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

get_item_price

Hi, i'm new here and I can't get my get_item_price( ) function to work I
need it to take in 4 items

int main()

{

double item1, item2, item3, item4, lowest=0, total;

char response;

instructions();

item1 = get_item_price( );

item2 = get_item_price( );

item3 = get_item_price( );

item4 = get_item_price( );

total = item1 + item2 + item3 + item4;

cout << “Do you have a coupon for this purchase? \n" ;

response = getresponse();

if (response == 'y')

{ lowest = findcheapest(it em1, item2, item3, item4);

total = total – lowest;

}

printresults (response, item1, item2, item3, item4, total, lowest);

}

and so far all I have is this;
#include <iostream>
#include <iomanip>

double findcheapest(do uble, double, double, double);
void printresults (double, double, double, double, double, double,
double);
int main()
{
double item1, item2, item3, item4, lowest=0, total;
char response;

instructions();
item1 = get_item_price( );
item2 = get_item_price( );
item3 = get_item_price( );
item4 = get_item_price( );
total = item1 + item2 + item3 + item4;
cout << "Do you have a coupon for this purchase? \n" ;
response = getresponse() ;
if (response == 'y')
{ lowest = findcheapest(it em1, item2, item3,
item4);
total = total - lowest;
}
printresults (response, item1, item2, item3, item4,
total, lowest);
}
void get_item_price( )
{
double i;
cout << "Enter the four item prices you want to buy.\n"
cout << "Item1: ";
cin >> i;
while (i<0)
{
cout << "Please enter a positive number: ";
cin >> i;
}

int getresponse()
{
while ((response == 'y' ) || (response == 'Y')
{
cout << "Do you have a coupon for this pruchase? (y or n)
\n";
cin >> response;
}
double findcheapest(do uble item1, item2, item3, item4)
{
if (((item1 <= item2) && (item1 <= item3) && (item1 <=
item4)))
{
lowest = item1;
}
if (((item2 <= item1) && (item2 <= item3) && (item2 <=
item4)))
{
lowest = item2;
}

if (((item3 <= item1) && (item3 <= item2) && (item3 <=
item4)))
{
lowest = item3;
}

if (((item4 <= item1) && (item4 <= item2) && (item4 <=
item3)))
{
lowest = item4;
}

}
void printresults(do uble response, double item1, double item2,
double item3, double item4, double total, double lowest);

{
cout << "Item 1 $" << setw(10) << item1 << endl;
cout << "Item 2 $" << setw(10) << item2 << endl;
cout << "Item 3 $" << setw(10) << item3 << endl;
cout << "Item 4 $" << setw(10) << item4 << endl;
cout << "Coupon Discount $(" << setw(10) <<
lowest<<")"<< endl;
cout << "----------------------------" << endl;
cout << "Total $" << setw(10) << total << endl;
}

}
"fourth.cpp " 84 lines, 2069 characters
$ g++ fourth.cpp -o fourth.out
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
fourth.cpp:20: implicit declaration of function `int getresponse(... )'
fourth.cpp: In function `void get_item_price( )':
fourth.cpp:34: parse error before `<'
fourth.cpp:43: parse error before `{'
fourth.cpp:47: `response' undeclared (first use this function)
fourth.cpp:47: (Each undeclared identifier is reported only once
fourth.cpp:47: for each function it appears in.)
fourth.cpp: At top level:
fourth.cpp:49: type specifier omitted for parameter
fourth.cpp:49: type specifier omitted for parameter
fourth.cpp:49: type specifier omitted for parameter
fourth.cpp: In function `double findcheapest(do uble)':
fourth.cpp:51: `item2' undeclared (first use this function)
fourth.cpp:51: `item3' undeclared (first use this function)
fourth.cpp:51: `item4' undeclared (first use this function)
fourth.cpp:53: `lowest' undeclared (first use this function)
fourth.cpp: At top level:
fourth.cpp:74: parse error before `{'
fourth.cpp:76: syntax error before `<'
fourth.cpp:77: syntax error before `<'
fourth.cpp:78: syntax error before `<'
fourth.cpp:79: syntax error before `<'
fourth.cpp:80: syntax error before `<'
fourth.cpp:81: syntax error before `<'
and I can't figure out what to do<!!!.
Can anyone help out<?.

Jul 22 '05 #1
18 1830
In article <b7************ *************** ***@localhost.t alkaboutprogram ming.com>,
tomakated <to*******@comc ast.net> wrote:

int main()
{
double item1, item2, item3, item4, lowest=0, total;
char response;

instructions();
item1 = get_item_price( );
item2 = get_item_price( );
item3 = get_item_price( );
item4 = get_item_price( ); [snip]

It appears that main() expects get_item_price( ) to return a double as the
function value.

However, you've actually declared get_item_price( ) below as 'void', that
means it doesn't return a function value. Nor does the function have a
'return' statement that actually performs the return.
void get_item_price( )
double get_item_price( )
{
double i;
If a variable is supposed to contain a price, why not *name* it "price"?
:-)
cout << "Enter the four item prices you want to buy.\n"
cout << "Item1: ";
Hmmm. In main(), you call this function four times, once for each price.
Do you really want to display the message above, four times?
cin >> i;
while (i<0)
{
cout << "Please enter a positive number: ";
cin >> i;
}


return i;
} // you're missing a curly brace, too.

I strongly urge you to get in the habit of indenting your code and
aligning your curly braces consistently. That makes it easier to spot
missing curly braces and some kinds of logic problems. There are a few
different ways of doing this, and some programmers love to argue about
which is the best way. Just study your textbook and copy the style that
it uses. Your instructor will surely appreciate it!

There are probably other mistakes, too, but I'll let others help you find
those.

--
Jon Bell <jt*******@pres by.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
Jul 22 '05 #2
"tomakated" <to*******@comc ast.net> wrote in message news:<b7******* *************** ********@localh ost.talkaboutpr ogramming.com>. ..
Hi, i'm new here and I can't get my get_item_price( ) function to work I
need it to take in 4 items
[code snipped]
"fourth.cpp " 84 lines, 2069 characters
$ g++ fourth.cpp -o fourth.out
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
fourth.cpp:20: implicit declaration of function `int getresponse(... )'
fourth.cpp: In function `void get_item_price( )':
fourth.cpp:34: parse error before `<'
fourth.cpp:43: parse error before `{'
fourth.cpp:47: `response' undeclared (first use this function)
fourth.cpp:47: (Each undeclared identifier is reported only once
fourth.cpp:47: for each function it appears in.)
fourth.cpp: At top level:
fourth.cpp:49: type specifier omitted for parameter
fourth.cpp:49: type specifier omitted for parameter
fourth.cpp:49: type specifier omitted for parameter
fourth.cpp: In function `double findcheapest(do uble)':
fourth.cpp:51: `item2' undeclared (first use this function)
fourth.cpp:51: `item3' undeclared (first use this function)
fourth.cpp:51: `item4' undeclared (first use this function)
fourth.cpp:53: `lowest' undeclared (first use this function)
fourth.cpp: At top level:
fourth.cpp:74: parse error before `{'
fourth.cpp:76: syntax error before `<'
fourth.cpp:77: syntax error before `<'
fourth.cpp:78: syntax error before `<'
fourth.cpp:79: syntax error before `<'
fourth.cpp:80: syntax error before `<'
fourth.cpp:81: syntax error before `<'
and I can't figure out what to do<!!!.
Can anyone help out<?.


Fix the errors one by one. Remember that everything you are using
must be declared first.

BTW: consider using std::vector instead of the 4 doubles,
it might come in handy if you need to compare 1, 2, 3, 5, ... values.

Stephan Brönnimann
br****@osb-systems.com
Open source rating and billing engine for communication networks.
Jul 22 '05 #3
Not LIKING FUNCTIONS right now. Been at it for about 4 hours now..
What am I missing, I know it's right in front of me<?.

P.S. Have to work off main can't change it<!!!.

Now I get different errors......
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
fourth.cpp:20: implicit declaration of function `int getresponse(... )'
fourth.cpp: In function `int getresponse()':
fourth.cpp:48: parse error before `>'
fourth.cpp:51: `response' undeclared (first use this function)
fourth.cpp:51: (Each undeclared identifier is reported only once
fourth.cpp:51: for each function it appears in.)
fourth.cpp:54: parse error before `,'
fourth.cpp:55: `total' undeclared (first use this function)
fourth.cpp:55: `lowest' undeclared (first use this function)
fourth.cpp:62: type specifier omitted for parameter
fourth.cpp:62: type specifier omitted for parameter
fourth.cpp:62: type specifier omitted for parameter
fourth.cpp:64: parse error before `{'
fourth.cpp: At top level:
fourth.cpp:89: parse error before `{'
fourth.cpp:92: syntax error before `<'
fourth.cpp:93: syntax error before `<'
fourth.cpp:94: syntax error before `<'
fourth.cpp:95: syntax error before `<'
fourth.cpp:96: syntax error before `<'
fourth.cpp:97: syntax error before `<'
with this code....
#include <iostream>
#include <iomanip>

double findcheapest(do uble, double, double, double);
void printresults (double, double, double, double, double, double,
double);
int main()
{
double item1, item2, item3, item4, lowest=0, total;
char response;

instructions();
item1 = get_item_price( );
item2 = get_item_price( );
item3 = get_item_price( );
item4 = get_item_price( );
total = item1 + item2 + item3 + item4;
cout << "Do you have a coupon for this purchase? \n" ;
response = getresponse() ;
if (response == 'y')
{ lowest = findcheapest(it em1, item2, item3,
item4);
total = total - lowest;
}
printresults (response, item1, item2, item3, item4,
total, lowest);
}
double get_item_price( )
{
double i;
cout << "Enter the four item prices you want to buy.";
cout << "Item1: ";
cin >> i;
while (i<0)
{
cout << "Please enter a positive number: ";
cin >> i;
}

return i;
}

int getresponse()
{
cout << "Do you have a coupon for this purchase? (y or n):
\n"
cin >> response;
if ((response == 'y') || (response == 'Y'))

{
findcheapest(do uble item1, double item2, double item3,
double item4);
total = total - lowest;

if ((response == 'n') || (response == 'N'))
total = total;

}

double findcheapest(do uble item1, item2, item3, item4)

{
if (((item1 <= item2) && (item1 <= item3) && (item1 <=
item4)))
{
lowest = item1;
}
if (((item2 <= item1) && (item2 <= item3) && (item2 <=
item4)))
{
lowest = item2;
}

if (((item3 <= item1) && (item3 <= item2) && (item3 <=
item4)))
{
lowest = item3;
}

if (((item4 <= item1) && (item4 <= item2) && (item4 <=
item3)))
{
lowest = item4;
}

}

void printresults(do uble response, double item1, double item2,
double item3, double item4, double total, double lowest);

{

cout << "Item 1 $" << setw(10) << item1 << endl;
cout << "Item 2 $" << setw(10) << item2 << endl;
cout << "Item 3 $" << setw(10) << item3 << endl;
cout << "Item 4 $" << setw(10) << item4 << endl;
cout << "Coupon Discount $(" << setw(10) <<
lowest<<")"<< endl;
cout << "----------------------------" << endl;
cout << "Total $" << setw(10) << total << endl;
}
Jul 22 '05 #4

"tomakated" <to*******@comc ast.net> wrote in message
news:69******** *************** *******@localho st.talkaboutpro gramming.com...
Not LIKING FUNCTIONS right now. Been at it for about 4 hours now..
What am I missing, I know it's right in front of me<?.

P.S. Have to work off main can't change it<!!!.

Now I get different errors......
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
This is a lack of a prototype. You have prototypes for findcheapest and
printresults, you need them for all your functions.
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
Ditto
fourth.cpp:20: implicit declaration of function `int getresponse(... )'
Ditto
fourth.cpp: In function `int getresponse()':
fourth.cpp:48: parse error before `>'


This is mismatched curly brackets, as has already been explained to you by
Jon Bell. You need an extra } before the function get_item_price. The way to
avoid this sort of error is to INDENT YOUR CODE PROPERLY, as already stated
by Jon Bell.

Everything after here should be ignored until you fix these problems. Always
fix the first errors first, because the later errors might just be the
compiler getting confused by your earlier errors.

john
Jul 22 '05 #5
tomakated wrote:

Not LIKING FUNCTIONS right now. Been at it for about 4 hours now..
What am I missing, I know it's right in front of me<?.


2 things:

* your code style is terrible. No wonder you can't see any errors in it.

* you made a typical newbie mistake: You wrote to much code in one big
rush and now unable to sort things out. Start small! Compile it, fix
any errors you have, then add new things.

Start eg with

int main()
{
}

compile it.
Then add things. But add *small* amounts of code

You could eg. continue with

int main()
{
double item1;

item1 = get_item_price( );
cout << "You entered " << item1 << '\n';
}

double get_item_price( )
{
return 0.0;
}

and make that compileable
(The above will already trigger the firt error in your program. The error
messages will be obvious and you should have no troubles fixing that)

Only then start to add the next thing. You could eg. add the inner workings
of get_item_price.

This way you usually will not be left with lots of error messages and don't
have an idea where the error could be. The error is always related to the
last code section you added. If you add only small amounts of code, you
only have to search in small code sections for errors.
PS: You can apply this scheme even now.
Save what you have right now into a new file (the backup). Remove everything
and start with a fresh, empty int main(). Then start copying things
from the backup into the new source code. But add small code sections
and recompile after each step. Do it in the spirit of above. Don't add
the complete main() from the backup. Just copy/paste enough from the
backup that you still have a complete main() which is compilable.

--
Karl Heinz Buchegger
kb******@gascad .at
Jul 22 '05 #6
"tomakated" <to*******@comc ast.net> wrote in message news:<69******* *************** ********@localh ost.talkaboutpr ogramming.com>. ..
Now I get different errors......
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
fourth.cpp:20: implicit declaration of function `int getresponse(... )'
You need to tell the compiler what these three functions look like.
main() calls them, so you must declare them before main. The 'int'
return type is just a guess by the compiler, so you might need to
change that.
fourth.cpp: In function `int getresponse()':
fourth.cpp:48: parse error before `>'
It's std::cout, std::cin, etcetera (if your compiler isn't obsolete)

Further errors occur because the compiler is lost.

HTH,
Michiel Salters
with this code....
#include <iostream>
#include <iomanip>

double findcheapest(do uble, double, double, double);
void printresults (double, double, double, double, double, double,
double);
int main()
{
double item1, item2, item3, item4, lowest=0, total;
char response;

instructions();
item1 = get_item_price( );
item2 = get_item_price( );
item3 = get_item_price( );
item4 = get_item_price( );
total = item1 + item2 + item3 + item4;
cout << "Do you have a coupon for this purchase? \n" ;
response = getresponse() ;
if (response == 'y')
{ lowest = findcheapest(it em1, item2, item3,
item4);
total = total - lowest;
}
printresults (response, item1, item2, item3, item4,
total, lowest);
}
double get_item_price( )
{
double i;
cout << "Enter the four item prices you want to buy.";
cout << "Item1: ";
cin >> i;
while (i<0)
{
cout << "Please enter a positive number: ";
cin >> i;
}

return i;
}

int getresponse()
{
cout << "Do you have a coupon for this purchase? (y or n):
\n"
cin >> response;
if ((response == 'y') || (response == 'Y'))

{
findcheapest(do uble item1, double item2, double item3,
double item4);
total = total - lowest;

if ((response == 'n') || (response == 'N'))
total = total;

}

double findcheapest(do uble item1, item2, item3, item4)

{
if (((item1 <= item2) && (item1 <= item3) && (item1 <=
item4)))
{
lowest = item1;
}
if (((item2 <= item1) && (item2 <= item3) && (item2 <=
item4)))
{
lowest = item2;
}

if (((item3 <= item1) && (item3 <= item2) && (item3 <=
item4)))
{
lowest = item3;
}

if (((item4 <= item1) && (item4 <= item2) && (item4 <=
item3)))
{
lowest = item4;
}

}

void printresults(do uble response, double item1, double item2,
double item3, double item4, double total, double lowest);

{

cout << "Item 1 $" << setw(10) << item1 << endl;
cout << "Item 2 $" << setw(10) << item2 << endl;
cout << "Item 3 $" << setw(10) << item3 << endl;
cout << "Item 4 $" << setw(10) << item4 << endl;
cout << "Coupon Discount $(" << setw(10) <<
lowest<<")"<< endl;
cout << "----------------------------" << endl;
cout << "Total $" << setw(10) << total << endl;
}

Jul 22 '05 #7

"Karl Heinz Buchegger" <kb******@gasca d.at> wrote in message
news:41******** *******@gascad. at...
tomakated wrote:

Not LIKING FUNCTIONS right now. Been at it for about 4 hours now..
What am I missing, I know it's right in front of me<?.


2 things:

* your code style is terrible. No wonder you can't see any errors in it.

* you made a typical newbie mistake: You wrote to much code in one big
rush and now unable to sort things out. Start small! Compile it, fix
any errors you have, then add new things.


[more good advice snipped]

It's undoubtedly good advice, but have you ever known a newbie follow advice
like that? They have to learn the hard way.

OP, most programmers work like this, no matter how expert. The difference
when you get to be expert is that you add code in bigger chunks. As a newbie
you should add code in very small chunks and not be afraid to get to your
final goal gradually.

john
Jul 22 '05 #8
"tomakated" <to*******@comc ast.net> wrote in message news:<69******* *************** ********@localh ost.talkaboutpr ogramming.com>. ..
Not LIKING FUNCTIONS right now. Been at it for about 4 hours now..
What am I missing, I know it's right in front of me<?.
Learn to read the error messages the compiler is telling you.
P.S. Have to work off main can't change it<!!!.

Now I get different errors......
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
fourth.cpp:20: implicit declaration of function `int getresponse(... )'
These are warnings that you are using a function that you haven't
told the compiler about yet.
Look up "prototypes ", or declare the functions before you use them.
For example you could put the main function at the bottom of the file.
fourth.cpp: In function `int getresponse()':
fourth.cpp:48: parse error before `>'
This is telling you to not forget the semicolon at the end of the cout line.
I would not pay much attention to subsequent error message until you fix that
one.
fourth.cpp:51: `response' undeclared (first use this function)
fourth.cpp:51: (Each undeclared identifier is reported only once
fourth.cpp:51: for each function it appears in.)
fourth.cpp:54: parse error before `,' [etc.]
int getresponse()
{
cout << "Do you have a coupon for this purchase? (y or n):
\n"
cin >> response;

Jul 22 '05 #9
> Now I get different errors......
fourth.cpp: In function `int main()':
fourth.cpp:13: implicit declaration of function `int instructions(.. .)'
fourth.cpp:14: implicit declaration of function `int get_item_price( ...)'
fourth.cpp:20: implicit declaration of function `int getresponse(... )' For these 3 do a declaration like findcheapest
The compiler can only work with what it knows exists, so you got to
tell it that yes there exists a function like getresponse and that you
are going to detail how it actually works later.
fourth.cpp: In function `int getresponse()':
fourth.cpp:48: parse error before `>'
fourth.cpp:51: `response' undeclared (first use this function)
fourth.cpp:51: (Each undeclared identifier is reported only once
fourth.cpp:51: for each function it appears in.)
fourth.cpp:54: parse error before `,'
fourth.cpp:55: `total' undeclared (first use this function)
fourth.cpp:55: `lowest' undeclared (first use this function)
fourth.cpp:62: type specifier omitted for parameter
fourth.cpp:62: type specifier omitted for parameter
fourth.cpp:62: type specifier omitted for parameter
fourth.cpp:64: parse error before `{'
fourth.cpp: At top level:
fourth.cpp:89: parse error before `{'
fourth.cpp:92: syntax error before `<'
fourth.cpp:93: syntax error before `<'
fourth.cpp:94: syntax error before `<'
fourth.cpp:95: syntax error before `<'
fourth.cpp:96: syntax error before `<'
fourth.cpp:97: syntax error before `<'


These are all errors because you got small things wrong, like :
Missing a ; or having a ; at the wrong place.
Forgetting that variables used in one function (this includes main)
are not necessarily known in other functions. Generally unless a
variable is declared global it only exists in the { } pair it is
declared in (there are quite a few exceptions to this but to get
started it'll do).
The use of type specfiers at the wrong place (in getresponse).

Question: Is this homework where you have to learn how to move parts
of the main to seperate functions?
Jul 22 '05 #10

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

Similar topics

1
1048
by: Joe | last post by:
Can someone look at this code and tell me why I can not read in the input characters. //Invoice.hpp file #include <iostream> #include <string.h> using namespace std;
14
2130
by: B Williams | last post by:
I am stuck on an assignment that uses classes and functions. I am receiving numerous errors when I try to run a test program to see if I wrote it correctly. Can someone please point me in the right direction. These are two of the error messages I am receiving. error C2660: 'Invoice::setPartNumber' : function does not take 1 arguments error C3861: 'setItemQuantity': identifier not found This is the code. Thsnks in advance
2
3987
by: zaidalin79 | last post by:
Here is my Inventory program for my Java class.... //Inventory.java //Class created to store item information for Inventory purposes //Created November 15, 2006 //Modified November 29, 2006 //Audrey A. Paige //IT315 class Product
5
2153
by: zaidalin79 | last post by:
Please-if anyone is online that can help me with a couple beginner Java programs... I have spent all day looking at them and I just can't figure out what I need to do... Please help!!
2
2901
by: zaidalin79 | last post by:
r03581x has been helping me with a program, but he won't be online till Monday, and I have to have this finished by tomorrow... Is there anyone else out there that can help me? Here is the first half of what I have so far... I will post the rest of the code in a second post cause it is too long... import java.util.*; import javax.swing.*; import java.awt.event.*; import java.awt.*; class Product implements Comparable
67
23115
by: hollywoood | last post by:
I am trying to add the Delete button, save and search buttons. I have tried to call my teacher and he is absolutly no help and i have read and reread the text but still have no idea what is going on.........I have the added the add button but now i am stuck. Is there a simple way in completeing this?? Please help • Due Date: Day 7 forum • Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the...
5
3387
by: cblank | last post by:
I'm having some trouble with my inventory program. Its due tom and my teacher is not wanting to help. He keeps giving me a soluction that is not related to my code. I have everything working except the Delete and Modify Button. The Search button works but it only searchs the new .dat file or what is set in the array. Not sure what is going on there. But if I can get my delete and modify button to work that will be good. Code.... ...
2
1444
by: DonE | last post by:
Help me please. I am having problems with my homework assignment. We are to create a product class that hold the item number, the name of the product, the number of units in stock, and the price of each unit. Here is my problem. I have written the program ( I use netbean) and I have encountered plenty of errors. The error messages that I get are as follows: illegal start type cannot find symbol operator cannot be applied assignment to...
1
2669
by: jcato77 | last post by:
I need help with a class project I'm working on, Below is my assignment and the code I have currently created. Assignment: Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose (for the DVDs subclass, you could use movie title, for example). In the subclass, create a method to calculate the value of the inventory of a product with the same name as the method...
13
2106
by: jcato77 | last post by:
I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct code but it's not working. Help is greatly appreciated class Inventory3 { public static final int MAXIMUM_ITEMS = 4; private static Product product = new Product; public static void...
0
10265
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11710
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11473
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10797
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10004
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
5067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3664
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.