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
What condition will be written in the if statement such that both hello world are printed: if(condition) { printf("hello") } else { printf("world") }
I already said... none... no condition will execute if and else at the same time... else executes only if the if condition is not met...
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 ?
M__
thenks
emiteclap
is a good graphics library raylib.h?
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
What plies ?
Yeru
Piles* sorry
Anupam2.7
How do compilers know if a function is a normal function or it is a constructor?
Anonymous
Can you please send me C/C++ notes in pdf
Void
https://godbolt.org/z/7aq8ajx6P
Void
https://godbolt.org/z/7aq8ajx6P
Guys I need to find the number that can be divided by other numbers, is my code wrong?
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
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?
With header files, every source code file that includes a header file will end up compiling the header file. With modules, the module interfaces (both primary and partitions) are compiled once to create a compiled module interface or a binary module interface (BMI). Everytime a source code file imports a module, this BMI is what is used by the translation unit to compile it's code. The module need not be compiled again and again everytime a source code file imports it. This speeds up compilation. However this is not always the case. Modules offer a lot of speed up only when optimization level is low. At higher optimization levels, the speedup offered by modules decreases a lot.
Gee
I have coding exam can you help me?
Anyone good in c++ algorithm kindly hmu
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
Anonymous
In the terminal, it is saying that "make is not recognized as an internal or external command, operable program or batch file"
Anonymous
install make
Where can I install make
klimi
Where can I install make
just like any other package
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?
Bigissue
hi, someone that can help me in qt programming some minutes?
Ольга
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
Ольга
Use do while loop
With such lines of arguments as in while?
Ольга
?
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
Mayur
klimi
?
you are funny
Mayur
Could you please help me with the solution, I'm a beginner
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
Marlo
It's simple
Can u please help me?? (C++)
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
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
Deepak Chaurasia
Deepak Chaurasia 🦦: // Online C compiler to run C program online #include <stdio.h> int main() {     char a;     int b ,c,d;         scanf("%c",&a);     scanf("%d ", &b);     scanf("%d",&c);         switch(a)     {         case 'A' : d =b+c;         printf("%d",d);         break;         case 'B' : d = b*c;         printf("%d" ,d);         break;         default : printf("hh");             }        return 0; } Any problem in code Printing char input after enter first int
Deepak Chaurasia
Sorry guys compiler problem
Ольга
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
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