Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 542 results for
unary
- Page 1
Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by darlineth
… you help me or share your about the PEMDAS and
unary
function. My problem is How to organize the parenthesis , Exponent… and
Unary
code in my downloaded codes and copy paste. I'm…
Re: Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by darlineth
… in above in my post it's clearly and soft,
Unary
, parenthesis and Exponent. The code that can i post in…
Unary operators
Programming
Software Development
20 Years Ago
by .·)Tusky(·.
…. The first subject I'd like to talk about is
Unary
Operators. They give me a sample problem in the book…
unary + - operator
Programming
Software Development
16 Years Ago
by bluebird
… contains inches and feet as a protected data, to add
unary
+ or – to the distance. Write no argument and two argument…
Re: unary + - operator
Programming
Software Development
16 Years Ago
by MrSpigot
If it's just the
unary
+ operator you're worried about I'd say it doesn't have to do anything, so unless you want some non-standard functionality: void operator+(){} should be a good partner to your operator-. ...and just stop lying.
Unary operator error
Programming
Software Development
15 Years Ago
by ajay_p5
… folder. My code gives an error: ./test.sh: line 17: [: =:
unary
operator expected and in similar lines Attached is the code…
Re: Unary operator error
Programming
Software Development
15 Years Ago
by griswolf
… [ $x = 'moop' ] ; then echo OK ; else echo 'what?'; fi -bash: [: =:
unary
operator expected ... 524% if [ "$x" = 'moop' ] ; then echo…
Unary operator and friend classes
Programming
Software Development
13 Years Ago
by FelineHazard
…++ from a book and I have a question about defining
unary
operators: In the book I'm working with there's…
Re: Unary operator overloading : What's the use of int argument in postfix form
Programming
Software Development
14 Years Ago
by Narue
operator+ is still a binary operator, whether you use the other operand or not. You could overload the
unary
operator+, but it's a prefix operator.
Re: What does unary + do?
Programming
Software Development
13 Years Ago
by vijayan121
…gt; It has no effect For standard types, a
unary
[B]+[/B] always yields an r-value.[CODE]unsigned … an r-value[/CODE] For standard types, a A
unary
[B]+[/B] performs a promotion where applicable.[CODE]unsigned …lt;< '\n' [/CODE] For user-defined types, the overloaded
unary
[B]+[/B] operator could do anything one pleases.[CODE]#include…
Re: What does unary + do?
Programming
Software Development
13 Years Ago
by mrnutty
I kind of like the idea of
unary
plus being an absolute value sign. Right now, the
unary
plus is nothing more than extra information to the user. Maybe to hint to the user that it should always be a plus or something. It has no effect.
What does unary + do?
Programming
Software Development
13 Years Ago
by Labdabeta
I am really confused as to the purpose of the
unary
+ operator. What in the world does it do? I have tested it and it doesn't return the absolute value. Does it just return the operand? And if so what purpose is it?! (I mainly care about integer types)
Re: What does unary + do?
Programming
Software Development
13 Years Ago
by PrimePackster
…+5. But since it uses 2 operands, its no longer
unary
operator (Just mentioned, so that you don't get confused…
Re: What does unary + do?
Programming
Software Development
13 Years Ago
by PrimePackster
[QUOTE=firstPerson;1718114]I kind of like the idea of
unary
plus being an absolute value sign.[/QUOTE] Means? Absolute value refers to be value having no dependence on its sign right? So what is an absolute value sign?
Re: What does unary + do?
Programming
Software Development
13 Years Ago
by mrnutty
[QUOTE=Captain Jake;1718129]Means? Absolute value refers to be value having no dependence on its sign right? So what is an absolute value sign?[/QUOTE] As in the mathematical sense of absolute value. In mathematics one would use the Bar symbol as in , |x|, using the
unary
+ symbol, as in +x, kind of amused me a little.
how to overload unary operator '!' as member funtion
Programming
Software Development
13 Years Ago
by pushpat
… concept in c++, wrote sample program to test overloading of
unary
operator '!' and '-'. Code will work if i use them as…
Re: Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by sciwizeh
hi again... here is something that may help: [code]expression = term && (plusterm || minusterm)* plusterm = '+' && term minusterm = '-' && term term = factor && (timesfactor || dividefactor)* timesfactor = '*' && factor dividefactor = '/' && factor factor = phrase && (expfactor || phrase) …
Re: Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by Ezzaral
In the future, please post your question [U]before[/U] the wall of code, so people don't have to scroll past it all before they even know what you are asking about.
Re: Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by sciwizeh
i suggest you read [URL="http://www.daniweb.com/forums/thread132006.html"]this thread[/URL]
Re: Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by darlineth
[QUOTE=sciwizeh;664985]i suggest you read [URL="http://www.daniweb.com/forums/thread132006.html"]this thread[/URL][/QUOTE] that thread was can't be my code now, i know the code before that can I post is Expression Calculator, bu I can't solve it.. I think that thread was deleted by the admin. Sorry.
Re: Unary (-, +) , Parenthesis, Exponent. Need Help
Programming
Software Development
16 Years Ago
by sciwizeh
so what your asking for is for people to explain code that you found on the internet?
Re: Unary operators
Programming
Software Development
20 Years Ago
by omol
ahh your working on B-- decriment (-1) it is before the b --B let you work out the rest :)
Re: Unary operators
Programming
Software Development
20 Years Ago
by .·)Tusky(·.
What you just said....just ....(?) I HAVE NO IDEA WHAT YOU'RE TALKING ABOUT!!! But, check this out VVVVV VVVVV VVVV VVVVVVVVVVV VV V VVV VVVVVVVVV VV
Re: unary + - operator
Programming
Software Development
16 Years Ago
by Narue
>I don’t know how to add + operator. Liar. Aside from not terminating the DistSign class (which I assume is simply a copy/paste error), your overloaded operator works just peachy. It can't be used as an rvalue because it returns void, but that's a design decision, not an "I don't know how to do it" issue.
Re: Unary operator error
Programming
Software Development
15 Years Ago
by masijade
Uhm "==", maybe?
Re: Unary operator error
Programming
Software Development
15 Years Ago
by rch1231
[QUOTE=masijade;1197498]Uhm "==", maybe?[/QUOTE] Hello, A couple of things: Try using the following to call your script (called myscript.sh) so you can watch it run: [CODE]/bin/bash -x ./myscript.sh [/CODE] Your error is probably coming from the ";" at the end of the for line which terminates the [B]for[/B] …
Re: Unary operator error
Programming
Software Development
15 Years Ago
by masijade
I said that sarcastically, and not because I didn't think it was part of the problem. Also, ls is [i]not[/i] "colorised" for [i]most[/i] people (or do you have some statistics to support this). I would like to see those "colorised" prompts on the standard Solaris installation, for instance. Also, even if this is the case, the…
Re: Unary operator and friend classes
Programming
Software Development
13 Years Ago
by Banfa
Look at the way operator++ is defined in your code at line 8; it has no class name before the method name. It is not a member of the class point but rather just a function, the only difference being it has been declared as a friend of point so that it can access the private data members of point. Since it is a function not a method on the class …
Re: Unary operator and friend classes
Programming
Software Development
13 Years Ago
by FelineHazard
Hi thanks! I understand it better now. -FH
Re: How to split vector using unary predicate
Programming
Software Development
15 Years Ago
by Index
… be , isEven(...); [/QUOTE] Naming convention is intentional, reminds me that
unary
predicate passed to remove_copy_if shall return negative result of what…
1
2
3
10
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC