Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
57% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
Ranked #22.5K
Ranked #2K
~26.0K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Aeonix

I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do …

Member Avatar for Aeonix
0
22K
Member Avatar for Rafiii

Hello everyone, If i need my program to create as much vectors as needed based on the user first input , assuming each vectors will hold an int value like a combinations of numbers, so latter those vectors will be compared for higher value. EX: prompt the user to enter …

Member Avatar for Rafiii
0
614
Member Avatar for Ahmed_62

i wrote this code yesterday and i traced it myself but the problem is the array doesn't store any number in it and the output was like this : //convert from decimal to binary #include<iostream> using namespace std ; void main(){ int n,c=0,*pointer,temp=0,r,i,y ; cout<<"Enter number\n"; cin>>n; y=n ; for(;;){ …

Member Avatar for Ion_1
0
286
Member Avatar for phoenix254

Can anybody tell me how can i calculate x decimal numbers of pi, if my input is 2 than output should be this 3.14 if my input is 4 then output is 3.141. I have tried code like this but doesnt work how i want. pi +=3+4/(k*l*m) - 4/(a*b*c); //+ …

Member Avatar for Ion_1
-1
2K
Member Avatar for lewashby

#include <iostream> #include <string> #include <stdlib.h> #include <cstring> using namespace std; class Fraction { private: int num, den; // numerator & demoninator public: Fraction() { set(0, 1); } Fraction(int n, int d) { set(n, d); } void set(int n, int d) { num = n; den = d; normalize(); } …

Member Avatar for Ion_1
0
490
Member Avatar for Ryskie

McCarthy is a famous theorician of computer science. In his work, he defined a recursive function, called f91 that takes as input a positive integer N and returns a positive integer defined as follows: If N <= 100, then f91(N) = f91(f91(N+11)); If N >= 101, then f91(N) = N-10. …

Member Avatar for Ion_1
-2
203