Lyper
Pls am new here and I wanna ask some questions about website designing
Soprat//Котик
Lyper
Lyper
Pls am new to programming and using Qbasic
Lyper
So when I become pro ,should I use java or c++
The
Haskell
Lyper
Lyper
It seems that programming is harder than html
KRYZ
nothing is easy, your determination will determine the end
Lyper
Jose
John
Gege
I just finished freecodecamp's 4 hour c++ course. How do I improve?
Alfian Hidayat
Y
@Hackchefs Are you a hacker?
Y
I want to learn about hacking.
Ludovic 'Archivist'
I want to learn about hacking.
Then start with this, find a way to make a file that is a Linux ELF executable, a valid pdf, and a zip archive, and make the pdf explain why it is possible. Send it to me then and I will teach you for free
Y
Y
I'm interested in game hacking
Y
You don't need to teach me. Thank you.
Bamsi
I want to learn c. Anyone teach me
İlke
hi. anyone here looking for a contributor to a project? i am newbie on C and want to collaborate with someone.
.
wu
hello
wu
im reading
AlanCcE
İlke
Juan
Is the & of the pre-increment operator used barely to distinguish it from a postfix increment? Or does it mean a reference or something else?
klimi
Juan
klimi
Juan
that will be line 12, where is the definition of a prefix increment operator
Juan
it just bugs me
klimi
Juan
hmmm but with postfix one you will still able to change value(line 56 and 58)
klimi
Juan
what i was trying to say, is, even without &, the value being passed still can change, unlike a copy one
Juan
so i doubted it was another thing to differentiate prefix and postfix...
klimi
Juan
https://stackoverflow.com/questions/7740350/overloading-postfix-and-prefix-operators
i found the answer
Juan
also thanks 😊
John
I am not sure if this is the conclusion here. When you overload ++ as a prefix, you use "your_class& operator++()" as signature, as a postfix, you do it like "your_class operator++(type_to_be_incremented)"
Learning
guy is looking for an implementation similar to int++ and ++int
\Device\NUL
mito
Learning
yes?
Juan
Actually the compiler doesn't care if you use an ampersand or not , is the dummy integer that matters
Juan
And no specification have emphasized the use of that amperesand
Juan
That's what I figured out
Learning
Juan
Cuz it actually returns a type🤔
Learning
Because it didn't copy the original value before doing increment.
John
rumors were that(just a rumor I heard about), in common practices, "prefix ++" returns a reference value while "postfix ++" returns a copied object
İlke
Learning
Learning
non-optimized ones
Ludovic 'Archivist'
Ludovic 'Archivist'
and by may, i mean they will almost always happen with integer arithmetic and pointer arithmetic
John
I would like to figure it out, even if it might take a lot of time
Love
Hlo
Luoay
Who can help me? I couldn't do my college homework
Love
Can someone tell me how to earn money easily
Luoay
You need to create a structure called Employee with the following
properties:
1 – Name
2- Age
3- Salary
4- Status
Final Assignment
Menu :
Enter n number of employees details (name ,age ,salary, status(if age>=60 ,
status=retired… if age<60 status=working))
Calculate salary after tax (if retired tax=5%, if working tax=8%)
Salary after deduction (let user enter employee name and amount of
deduction)
Annual salary (user enter a name)
Print retired employees details
Print working employees details
Print employees all details (name ,age ,salary ,salary after tax, status)
To exit the program
Notes:
Create a function for each option
Make your program user friendly.
Use comments when needed.
The Printing should be well organised.
You must use methods and arrays. in c program in simple way