silver
Guys I need help with something
silver
My 5th and 6th strings are unidentified
silver
How do I fix these 2 errors
silver
Anyone??
Anonymous
/warn screen photo
Anonymous
Ok I got it
V01D
Good job
Wojak
Hello, I have solved this problem https://www.hackerrank.com/challenges/angry-professor/problem And this is my code- https://pastebin.pl/view/76cf499d Can anyone help me on what I'm doing wrong as only few test cases are passed. Thankyou.
Emir
so if x =0 an i =1, if you then set x= ++i x now =2 and i now = 2 if you set x = i++ x now =2 and i=1
My question is why ++var L-Value-Expression in C++ (in C both R value exp), there is no link between your answer and my question
Top G - Orca-FX21F3325AM
Top G - Orca-FX21F3325AM
But not free, and digital version is not available as far as I know.
I wrote King an email asking if he will be updating his C programming book. He said he's retired. So I sent him this clip. https://www.youtube.com/watch?v=9YWoCPd5boE
Noarch
ostream& operator<<(ostream& out, Person& p) { out << "a:" << p.m_A << " b:" << p.m_B; cout<<p;
Noarch
Guys how does it work
Noarch
Person operator+(Person & p2) Person p3 = p2 + p1; //seems like : p2.operaor+(p1) This one is to understand
Noarch
Confused 😕
Noarch
This one is easy to understand
Vlad
Guys how does it work
You override binary operator<< for left operand being ostream& and right being your class.
Noarch
yes, now I'm learning override course
Noarch
Bt, I can't get it how does cout<<p work,which the next one is easy to understand
Noarch
You override binary operator<< for left operand being ostream& and right being your class.
Person p3 = p2 + p1 equal p2.operaor+(p1) What does the cout<<p equal ?
Vlad
With std::cout being global ostream object
Noarch
Bro it's hard
☀️
Hello, Is there anyone who modified C code in Cooja simulation ?!
☀️
How can modify C code in Cooja to make some malicious nodes in RPL examples?!
Anonymous
https://www.interviewbit.com/contest/codeagon-2020/
INDIA
WAP in CPP to define a class which represents temperature in Celsius. Define another class which represents temperature in Fahrenheit. Define a common friend to see if two temperatures are same.
INDIA
can anyone plz help me to understand friend function and make this program
INDIA
can anyone plz help me to understand friend function and make this program
i dont know about this function and also doesnt have clear understanding about it
Anonymous
Please guys i am having a confusion i want to learn both c and c++ which one should i learn first. Note: I have search on google but still not satisfied.
V01D
Please guys i am having a confusion i want to learn both c and c++ which one should i learn first. Note: I have search on google but still not satisfied.
People say C or C++ without asking the important questions. Mainly: What do you want to do as a programmer, what do you want to build?
V01D
Are there external librarys for the topics you like, and what language are those? Meaning: Which programming language would you encounter the most?
V01D
There is an error
V01D
Yeah
V01D
You are saying c99, but using c89 on the cli
V01D
https://stackoverflow.com/questions/59811874/matrices-as-function-parameters-in-c89 Found this when I typed C89 vla working in duck.com
V01D
Cool
V01D
Lol, i tried
Renan
So, it seems he is still selling enough copies. 😅 👍
It is the kind of: Write once, profit forever kind of book. 😅
Renan
Welcome, Suman!
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Hi guys ! I am new to C ++. To manage long options in C I use "getopt.h", and I would like to know what is its equivalence in C ++?
V01D
Manage long options?
Alex
https://www.boost.org/doc/libs/1_58_0/doc/html/program_options/tutorial.html for example
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Manage long options?
yes, like : program --Sort array.txt
V01D
Oh like arguments passed to the command line
V01D
Why not use argc and argv for that
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Why not use argc and argv for that
because there are libraries that make the task easier
Vlad
because there are libraries that make the task easier
Easier than just plain strcmp and boolean flags?)
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
Easier than just plain strcmp and boolean flags?)
I think yes ! to handle short and long options yourself requires more lines of code than if a library is used. don't you agree with that?
Anonymous
What's the code to add text effect in output of C++ program ?
Anonymous
It is platform-dependent
Anonymous
What OS are you on?
Anonymous
Send such type of questions for self practice.
V01D
Anyone who is good at OS development? My OS project is going horribly wrong and I cannot find the issue. (IRQ's fail to fire)
Marián
Is there any way to point 'H'?
char* c = "H" points to single char
Marián
it points on the beggining of the string buffer
Alex
char* c = "H" points to single char
it points to H\0, and you should add const.
Marián
eg. char* l = "lol" l[0] => l l[1] => o l[2] => l where char* l is only memory pointer, not actual value
Marián
it points to H\0, and you should add const.
does it add null terminator automatically?
Alex
yes
Marián
oh f
Marián
my bad then
V01D
Imagine having to insert a string termination char each time
V01D
It is nasm all over again
Juber
Hi
Renan
Hi
Hello! 👋
Dima
why are you welcoming everyone? lol