the best for everyone
can anyone tell me what is the problem in this coce
the best for everyone
code
the best for everyone
its not working very well
the best for everyone
// “q”, which defines the exact divisors of the number that comes as a parameter to the function
//Write the function that adds it to the queue sequentially.
bool enqueue(int x,int queue *q) {
int i;
for (i = 1; i <= x; i++) {
if (x % i == 0){
enqueue(q, i);
}
}
}
Ольга
Good day, I hope I implemented what you said well. But I have one more question why do we use int main( int argc, char*argv)?
https://onlinegdb.com/LdxsVAQ_9
Kevin
What condition will be written in the if statement such that both hello world are printed:
if(condition)
{
printf("hello")
}
else
{
printf("world")
}
Kevin
Can someone please help me?
Talula
Resul
Can you review this question?
https://stackoverflow.com/q/74018769/14686302
M__
hi i have a doubt
what does this line do in c++ ?
cout << 'x' - '0' ;
is it for getting ascii value ?
Anonymous
M__
thenks
emiteclap
is a good graphics library raylib.h?
emiteclap
emiteclap
Yeru
Hi do anyone have done reverse polish notation(calculator) before i can't seem to understand how to use piles and ascii codes
Sleeves
Sleeves
What plies ?
Yeru
Piles* sorry
Anupam2.7
How do compilers know if a function is a normal function or it is a constructor?
Gifty
Anupam2.7
Kevin
Anonymous
Can you please send me
C/C++ notes in pdf
Unknown
Void
https://godbolt.org/z/7aq8ajx6P
Void
I was able to come up with the correct solution, but the system indicated that my answer was wrong
Anonymous
It is not listed there
fan
Now, the c++20 will use module. some guys say it can speed up building. but before this. we usually write #ifndef .... #define ... #endif, like this, i think this is also ok, can some one tell me the detail reasons about speeding up?
Anonymous
Hello everyone, I am new to c programming skills from the start I have a problem. I am using visualcode studio.
I wrote:
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
}
And I write(make hello) in the terminal but it is giving me error message
emiteclap
Anonymous
In the terminal, it is saying that "make is not recognized as an internal or external command, operable program or batch file"
klimi
Anonymous
Void
Why do I input double n=26 and n became 5.4552284372227338e-315
Saideep
Sir but it is showing that update your machine
Sleeves
Hey guys
Can anyone help explain what is happening here
https://hastebin.com/uwuxodujor.cpp
in the readlines() function particularly
this is the solution to an exercise from K&R, the prompt is ; Exercise 5-7. Rewrite readlines to store lines in an array supplied by main, rather than calling alloc to maintain storage. How much faster is the program?
fan
Bigissue
hi, someone that can help me in qt programming some minutes?
Sleeves
Ольга
https://onlinegdb.com/ocCq-wTel
This is a circular linked list. I don't understand how to stop him. I will be grateful for your help
Ольга
Captain
Captain
Ольга
?
I mean, if I convert the while loop to a do while but leave the same lines of code, it still outputs endlessly. I thought maybe two values should be checked for zero or move somehow from the end to the beginning?
Ольга
?
I just tried to change it to do while, but I got the same result, the same thing, and if move from the end, not from the beginning. I just don't understand how to stop the cycle if it is cyclic, that is, how to understand exactly what has reached the point from which the list started
Ольга
Mayur
Write a program in c++ to enter a number and print it's reverse
klimi
Mayur
klimi
Mayur
Could you please help me with the solution, I'm a beginner
emiteclap
klimi
Marlo
Hello.. I want to make one loop which will ask me hoe many numbers i need. If i need 10 numbers then giving me the first 10 even numbers. For example : im giving number 10 then print me: 2 4 6 8 10 12 14 16 18 20
shriman_deepak
Anonna
Can anyone give a solution of c from c++
#include <iostream> using namespace std; int remove0(int n){ int m(0), pow(1); while (n != 0) { int d = n % 10; n /= 10; if (d != 0) { m += d * pow; pow *= 10; } } return m;} int main(){ int a, b; cin >> a >> b; int c = a + b; int A = remove0(a); int B = remove0(b); int C = remove0(c); cout << (A + B == C ? "YES" : "NO") << endl; return 0;}
Anonna
https://codeforces.com › problemset
Problem - 75A - Codeforces
https://www.google.com/url?sa=t&source=web&rct=j&url=https://codeforces.com/problemset/problem/75/A&ved=2ahUKEwjxgLqz_Nj6AhXMq1YBHfY9C_IQFnoECA8QAQ&usg=AOvVaw2sr897KltSdzyU2Cu3Q4Du
Anonna
klimi
Why guys just ask for solutions to your problems? Do you really expect others to just obey you?
Anupam2.7
//Sum of Digits of a Number in cpp
https://onlinegdb.com/MSWEJLhhn1
I am not getting expected output.
am i getting garbage value or there is something else wrong with my program?
ig there is something we wrong in line 12 while typecasting int from string
Anonymous
Not bad
Anonymous
Deepak Chaurasia
Sorry guys compiler problem
Captain
Ольга
Bilal
Hello every one ! I am facing this error while work with functions across multiple files. to solve it I try saving file but did not work. (collect2.exe: error: ld returned 1 exit status)
Marlo
Hello.. I want to make one loop which will ask me hoe many numbers i need. If i need 10 numbers then giving me the first 10 even numbers. For example : im giving number 10 then print me: 2 4 6 8 10 12 14 16 18 20
Anupam2.7
klimi
Anonymous
Good evening pls am new here and am giving admission in to computer science I love programming am a beginner can any one guide me pls
ɛ n h ᴀ n c ɛ ґ 🧟♂️