+ 3

Who out there has any ideas that i can code in. c++?

29th May 2020, 3:52 PM
bob
bob - avatar
15 Answers
+ 3
I you are good at c++ then you should be able to complete my challenges https://code.sololearn.com/WHSVqhw98Vni/?ref=app
29th May 2020, 4:05 PM
Namit Jain
Namit Jain - avatar
+ 3
Guys the double command is a way of defining terms just like int does; however, it is more accurate with the answers it gives. For example, int only does whole numbers and ignores decimals if you cout it or use it, but the double will give 4 places after the decimal. So if you used an int to cout an answer to a math problem and the answer is 2.7456789 the int will only allow 2 to be outputted, but a double would allow 2.7456 to be outputted. So all summed up I would just say that they are interchangeable but double just gives a more exact number.
31st May 2020, 12:17 AM
bob
bob - avatar
+ 2
Thanks I'll check it out.ā˜ŗ
29th May 2020, 4:07 PM
bob
bob - avatar
+ 2
C++ is probably the most versatile language right now. You can do anything in it. What interests you? Computer vision? Server applications? Desktop GUIs? Game development?
29th May 2020, 6:07 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
Phillip J Chaka what is mean of double thing in cpp i never listened before .
31st May 2020, 10:20 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
K4l5iK According to Phillip double mean a function he is asking what function do
31st May 2020, 10:22 AM
Noman
Noman - avatar
+ 2
Noman accepted your challenge #include <stdio.h> int main() { int h = 3, l = 2, x = h - 1, i, j; for (i = 0; i < h; i++) { for (j = 0; j < h * l * 2; j++) { if (j % (h * 2) == x) { printf("/"); } else if (j % (h * 2) == h + i) { printf("\\"); } else { printf(" "); } } x--; printf("\n"); } return 0; }
31st May 2020, 10:24 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
ithink u should see before challange accept Because I think u don't understand this https://code.sololearn.com/cC7QQ72HTaYa/?ref=app
31st May 2020, 10:26 AM
Noman
Noman - avatar
+ 2
Create a wave take a two input one is height and second is width
31st May 2020, 10:27 AM
Noman
Noman - avatar
+ 2
I hope u understand
31st May 2020, 10:27 AM
Noman
Noman - avatar
+ 2
Noman double is not a function i think šŸ˜‚ TheĀ doubleĀ is a data type built into the compiler and used to define numeric variables holding numbers with decimal points.
31st May 2020, 10:31 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Yup I know it is a built in data type And it is more precise compare to float but I already say according to Phillip he is start programing here is some issue šŸ˜…šŸ˜…
31st May 2020, 10:34 AM
Noman
Noman - avatar
+ 1
bro accept this challange its little though /*create a wave like this /\ /\ / \ / \ / \/ \ here is two input one is height 3 width 2 and output is above */ #include <iostream> using namespace std; int main() {int h,w,c,r,temp,space; cin>>h>>w; for(r=0;r<h;r++) {temp=h-r-1; for(c=0;c<w;c++){ temp=c==0?temp:2*temp; while(temp>=0){ if(temp>0){ cout<<" ";temp--; }else{ cout<<"/"; for(space=0;space<(2*r);space++) cout<<" "; cout<<"\\";temp--; } }temp=h-r-1;} cout<<endl; } return 0; }//h is height and w is width
30th May 2020, 12:43 PM
Noman
Noman - avatar
+ 1
does anyone know what the double thing helps in c++??
30th May 2020, 11:16 PM
Pjc
Pjc - avatar
+ 1
Hey Phillip what's double thing
30th May 2020, 11:56 PM
Noman
Noman - avatar