Anonymous
Let us hear what errors it gave you
Well most didn't make sense to me
Anonymous
I'd like to dm you to tell you the specifics but that's against the rules
J
Yeah it was the compiler's problem. Sorry if that uneased you
Of course it didn't. I told you they might be typo errors...so let us know so we see what error it gave you
Anonymous
One error says invalid operands to binary expression
Anonymous
basic_ostream<char> and const char *
J
Well most didn't make sense to me
Read the source code on your editor line by line, then you can get a feel where the error is coming from. Also I think u can share your errors here, others have did and so can u too
Anonymous
It also says Expected ' ( ' for function type cast or type construction
J
basic_ostream<char> and const char *
In what line of the code...or what was the line highlighted as error?
Anonymous
My IDE just tells me the problem and I have to guess what the problem is. It's a pain
Anonymous
And I also try to use vs code but that doesn't work out
Anonymous
I didn't get much oriented in using IDEs and what to use. So yeah part of my problem
J
For my function numberMaths(int a,int b)
Declare int a and int b outside the function in int main....then pass it as arguments to the function
Anonymous
Or should I make it a global variable?
J
Cxxdroid
Oops...I see...beginners are advised to use IDE..not because text editors are bad but Bcos IDEs solves most of the problem like debugging, syntax highlighting and all that for you. I'd advise you install code blocks and learn from there or get Visual Studio Community; with these your learning curve will be ok.
J
Yeah I use the compiler directly so you can imagine my confusion
Go get an IDE like code blocks or visual studio community and then we can help you. You can't be a beginner and want to code from a text editor, it'll be hard for you.
J
Yeah it's hard I guess. I'll download it. Thanks
After downloading any of them and setting it up, them copy the source code again...if it doesn't work, still let us know. Have a nice day
Anonymous
/* C program to demonstrate example of floor and ceil functions.*/ #include <stdio.h> #include <math.h> int main() { float val; float fVal,cVal; printf("Enter a float value: "); scanf("%f",&val); fVal=floor(val); cVal =ceil(val); printf("floor value:%f \nceil value:%f\n",fVal,cVal); return 0; }
Anonymous
Please my code doesn't give me the correct output pls help
Alfredo
Thanks for that. I’ll follow along the way I’m going and will ask again if I face some problem.
Ali
Sure
particaney 🐸🍲
Hi everyone, I had an interview last week and I. Got the question : let's say you have a programme and somewhere in the code is slowing down the program but you don't know where. How would you find out. Tnx guys
particaney 🐸🍲
How would you find out where is the problem*
particaney 🐸🍲
Using profilers
Tnx for your answer it definitely makes sense
Ahmed
/pinned
Suraj
guys i have a error in my vs code " ld returned 1 exit statu"
Suraj
i have tried saving the file. but it doesn't work
Ustad
Ok
Anonymous
Can you let me know what is the output
It just give 0.00 for the inputs
Mohit Kumar
What is ioi
Mohit Kumar
Hey what's is ioi
Sench
Write a program which reads two matrix and multiply them if possible.with in arry
Anonymous
Write a program which reads two matrix and multiply them if possible.with in arry
a google search would have already got you your answer..
Sench
i lost
Gaurav
can anyone explain how counting bits program works?
Talula
can anyone explain how counting bits program works?
Counting bits program? What do you mean?
Talula
problem solved
Still what is "counting bits program"?
Gaurav
Mateo
Hi, is there something like the final keyword but for the root of a class hierarchy instead of the leafs?
Talula
google it
It says counting bits in an integer... you were asking that?
Prince Of Persia
Elaborate more
Just joking Do you know if replace a to o in your name Your name will be girly?😅
Mateo
Elaborate more
When reading a codebase the final keyword is quite useful to know the hierarchy ends there. I was thinking about something similar but in the opposite direction of the tree
Mateo
On a second thought maybe that's just a class that does not inherit from anything.
Mateo
Okay, yes that was a stupid question sorry 😅
Gaurav
It says counting bits in an integer... you were asking that?
wait I'm sending you the actual question, so you can understand what is counting bits
R
Hi guys, I want to use clang to cross compile a static linked executable, target arm64 (this executable should be MTE enabled). The command I tried: clang-11 -target aarch64-linux-gnu -march=armv8+memtag -fsanitize=memtag main.c -static
R
But when running on a emulated aarch64 QEMU it does not run properly (strace output https://pastebin.com/byhGn5fN)
R
What am I missing? thanks :)
Anonymous
When reading a codebase the final keyword is quite useful to know the hierarchy ends there. I was thinking about something similar but in the opposite direction of the tree
There is no standard way to address what you want. But ... there are some workarounds: 1- WRITE CLEAN CODE: If the code follows SOLID principles, you could easily find the base class by its name or its virtual defined members ... . 2- TAKE ADVANTAGE OF MACROS: Defines some empty macros just for mark whatever you want: core.h #define IT_IS_BASE #define IT_IS_NOT_BASE usage.h IT_IS_BASE struct base; IT_IS_NOT_BASE struct not_base final: base {} (NOTE: Second way is just for fun).
Anonymous
Hey guys do I need to finish oop concepts of C++ to learn how to use unreal engine?
Anonymous
Most people aren't clear with the question at hand
Talula
How does volatile int affect when used with IRQ for timer? I mean if it is only the time that is changing the variable, volatile shouldn't matter right?
Anonymous
Hii friends