Badugar
So much hack
klimi
So much hack
Hacks are cool
Dima
Silly hackers
Yadnyesh
Hi
Anonymous
Hey bud
klimi
#ot
Otumian
If it is against the rules.. It would be deleted.. And sorry if it against the rules.. Just trying to assist
Otumian
I agree.. Thanks
klimi
Welcome
Viki
Hello developer's
Ming
Can anyone able to come up with something
Dima
sounds like a lame assignment
Ming
Lame? I'd be careful with my words
Bruce
Is intel i3 processor good for learning all programing ?
Wim
You can program on any processor?
Bruce
Languages
Wim
Its not a matter what you have, its how you use it
Shubham
Hey Guys!
Dima
Lame? I'd be careful with my words
it must be a silly company who offers you this assignment as a test task lol
Dima
welcome
Shubham
Why is size shown as 32 whereas its 21
Viki
/saved
Dima
Why is size shown as 32 whereas its 21
compiler puts padding for you
Dima
read about structure padding
Dima
cpu reads 4 or 8 bytes in one step
Dima
structures are aligned by the biggest type size
Anonymous
/get meta
Anonymous
Welcome
Ming
it must be a silly company who offers you this assignment as a test task lol
only if people know how to read, i already stated that its from a job hiring process and i couldnt be able to solve it, the job hiring process has ended. But i dont know the answer to it.
Ming
Dima chan >..< wont you help me
Dima
Read my message again
Dima
Ming
NANIIIIIIIIIIIIIIiii
† n06h
Hey guy's
† n06h
Need assistance here
† n06h
#include<stdio.h> //program to calculate simple into 3sets of p,n ajd r where p=principle, n=no of years,rate of interest void main() { int p,n, count=1; float r,si; while (count<=3) { printf("enter the value of p,n & r\n\n"); scanf("%d,%d,f",&p,&n,&r); si=(p*n*r)/100; printf("simple interest=%f",si); count++; } }
† n06h
Am getting 1.### as my output
I_Interface
Am getting 1.### as my output
mb u lost % in scanf before f ?
† n06h
I added and nothing changed
I_Interface
I added and nothing changed
if ur answer in float, why p and n int ?
I_Interface
I added and nothing changed
and main always must be int
Евгений
and main always must be int
msvc allows this for several versions actually
Евгений
I added and nothing changed
did you recompile you code? :)
I_Interface
msvc allows this for several versions actually
i know, but it's not the right way for code)
I_Interface
I_Interface
Yeah
just initialize si with 0
† n06h
Web7 TimeLord ¤
Why bot ain't welcomed you
Itsunknown4u
Why does const int variable has limit
klimi
Your bag has a limit too
Itsunknown4u
On what basis is that value decided
Light
On what basis is that value decided
number of bits reserved for the datatype
Itsunknown4u
Can i access the file character through file pointer.....
Mat
You're late
Itsunknown4u
I guess this grp is to clear the douts if 1 has
Itsunknown4u
Sry to say to i dont think ...this grp is worth it
Pavel
I guess this grp is to clear the douts if 1 has
Please, use Google translate, I can't understand you
Pavel
Or don't use slang
Itsunknown4u
U need more then me
Pavel
Can i access the file character through file pointer.....
What do you mean "file pointer"? Is it C? Do you have a code example?
Itsunknown4u
Have u heard of FILE HANDLING
Francisco
Sry to say to i dont think ...this grp is worth it
If you come with statements and no code examples, little we can do
Itsunknown4u
There is a structure FILE in stdio.h
Francisco
There is a structure FILE in stdio.h
We know that, what's your problem? Btw, in C++ there's far better ways to handle files
Elnee
Is it normal practice to write constructors in such way? Or it's a shitty code? https://paste.fedoraproject.org/paste/Xn6r78NO0TQc8D7t4aWysQ
Francisco
Is it normal practice to write constructors in such way? Or it's a shitty code? https://paste.fedoraproject.org/paste/Xn6r78NO0TQc8D7t4aWysQ
I don't see anything really wrong. I recommend putting as much as you can in the list initialization
Elnee
I don't see anything really wrong. I recommend putting as much as you can in the list initialization
Thank you for answer. But there is a problem when using delegating constructors. It's impossible to add anything else to class members initialization list. And so I decided to mix some already defined constructors and add remaining parameters in body. Is it a good approach?
Pavel
Is it normal practice to write constructors in such way? Or it's a shitty code? https://paste.fedoraproject.org/paste/Xn6r78NO0TQc8D7t4aWysQ
Agree with Francisco, it looks OK, but list initialization usually is a better way (especially if you have many different constructors, and want them to be consistent).
Itsunknown4u
Elnee
Why is it impossible? Can you give an example that doesn't compile, but should in your opinion?
For example: https://stackoverflow.com/questions/12190051/member-initialization-while-using-delegated-constructor/12190126
Elnee
Ah, I see, I thought it's possible 😅
Several hours ago I was too :D
Francisco
For example: https://stackoverflow.com/questions/12190051/member-initialization-while-using-delegated-constructor/12190126
Just to say, in my projects, the default constructor depends in other constructors, not the other way around. I think of it as "there should be a delegating constructor that can do the same job as the default one but with default parameters"