Aryas
Hi everyone. Is anybody used from eigen library before? I have some problem by including it. I have installed it by sudo apt install eigen3-dev in linux but when I import it by #include(Eigen/Dense) I get an error. Can you please help me?
Anonymous
Var I =1; For (;I<4;){ I= i+1; }
Anonymous
Loop complete
Anonymous
Plz answer
klimi
Plz answer
answer to what?
Abhishek Gupta
what error?
Sttrev function is not working ...
mito
Sttrev function is not working ...
I meant what error did you get?
Abhishek Gupta
mito
That the error...
are you on Linux?
Abhishek Gupta
mito
No...
what compiler are you using and it's version?
mito
strrev is non-standard.
Abhishek Gupta
I using Dcoder...
mito
I using Dcoder...
bruh.. don't use online compiler.
Abhishek Gupta
what compiler are you using and it's version?
Can you please suggest how we reverse an string in C using string functions
Abhishek Gupta
mito
see for alternative for strrev()
Elimoh
Hey guys. Kindly help me convert an EA built on Mql4 to mql5. I'll be glad. Thanks.
Anonymous
Hi everyone!
David
Hello
David
C is just so hard when it comes to operation
David
Who can help me with a logical error
жимба
hi!
David
1 #include<stdio.h> 2 3 #define square(x) (x * x) 4 5 int main(){ 6 7 //deceleration 8 9 int velocity, acceleration; 10 11 int length; 12 13   14 //user input speed and acceleration 15 16 printf("Enter speed (m/s) and acceleration (m/s/s):"); 17 18 scanf("%d%d", &velocity, &acceleration); 19 20   21 //compute length 22 23 length = square(velocity) / (2 * acceleration); 24 25   26 // display the minimun leghths 27 28 printf("The minimum runway length for this airplane is %d", length); 29 30 return 0; 31 32 }
David
Can anyone help?
K..S
Can anyone help?
IMO do separate the scanf statements ie. scanf(......) scanf(......) And actually prototype the square function instead of trying to make it a macro ie. int square(x){ return x*x }
K..S
I don't believe that works for functions (I stand to be corrected) A function prototype is the way to go
Anonymous
HI
Anonymous
I need help with visual studio 2022
Anonymous
Plss
Anonymous
It has a eror
Merit
Are rust and c++ same? Do they have same vendors or what?
Prometheus
Are rust and c++ same? Do they have same vendors or what?
They are not the same. iirc rust was planned to be a successor to c++ but it is not the same language.
Prometheus
I have searched and cant find a good answer. Any idea if c++ has a way to read charactors in letter by letter as they're typed instead of waiting for the user to press enter?
Razs
Hyy canone help me with a question
Razs
Q1Write a C program that converts all uppercase characters in a given string to its equivalent lowercase character in a function using pointers. The result must be returned and printed in the main function. plz can anyone help me I've to submit it in 15 mins
Razs
see ascii table
i did it but i don't know to do it using pointers
\Device\NUL
Are rust and c++ same? Do they have same vendors or what?
Rust design concept ais different with C++, not just because rustc is written with C++ rust is same with C++
\Device\NUL
i did it but i don't know to do it using pointers
pointer used to access array arr[x] is same as *(arr + x)
Razs
pointer used to access array arr[x] is same as *(arr + x)
#include<stdio.h> int function() { int value=1; return value; } int main() { char s[100]; int i = 0; printf("Enter a string: "); scanf("%[^\n]", s); while( s[i] != '\0' ) { if( s[i] >= 'a' && s[i] <= 'z' ) { s[i] = s[i] - 32; } i++; } printf("In Upper Case is: "); puts(s); return 0; }
Razs
i did this now how can i do it using pointers
Razs
Array are pointer
also The result must be returned and printed in the main function. also this plz help buddy
✨Justina
hi , got any apps that can use to check the coding?
✨Justina
cppcheck
ok thank you
Prateek
Write a program that reads in a number m and prints a '*' on m consecutive lines, followed by m+1 '*'s on a single line. The result should look like the letter L made out of stars. You can go to a new line in the output using cout << endl; .
klimi
can any one help me pls do this by c++
What kind od help do you want?
A
can any one help me pls do this by c++
What problem are you facing with this?
A
Just use loops
Prateek
Just use loops
Ok i will try
klimi
you cannot reallocate something you haven't allocated
klimi
exactly, it is only for the allocation on the heap
klimi
but in this case ages have been allocated on stack
Sujay_Adoor
What’s the program if I am running on Linux ( Ubuntu )
100$ website
#include<iostream> using namespace std; struct student; { char name[30]; int role_no; int age; } int main(){ struct student q; q.name; q.role_no; { cout<<"enter the name of the student"; cin>>q.name; cout<<"enter the roll no for that student"; cin>>q.role_no; } cout<<"name is : "<<q.name; cout<<"roll no : "<<q.roll_no; } return 0; }
Ster-Devs
can anybody help me here?
What's your problem?
100$ website
thanks : )
Ster-Devs
problem is i am having error!! i am a newbie. can u help with both 1 and 2
1- remove all the opened and closed bracket between int main() { ... return 0;}
Suka
you must allocate with malloc or calloc first then u can use realloc to adjusting it.
\Device\NUL
What’s the program if I am running on Linux ( Ubuntu )
The program will run in any platform as long as the code following standard
Alessandro
Static memory cannot be reallocated?