Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
14% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
1
Downvotes Received
12
Posts with Downvotes
5
Downvoting Members
6
3 Commented Posts
0 Endorsements
Ranked #2K
~3K People Reached
Favorite Tags
Member Avatar for rohan121212

So here is what i have done I did the basics of c++ and was quite comfortable with them Now i wanted to start with the allegro gaming library so i downloaded the library and linked it with my compiler i compile a program and it compiles fine but when …

Member Avatar for DeanMSands3
0
83
Member Avatar for rohan121212

So here is what i have done I did the basics of c++ and was quite comfortable with them Now i wanted to start with the allegro gaming library so i downloaded the library and linked it with my compiler i compile a program and it compiles fine but when …

Member Avatar for DJSAN10
0
107
Member Avatar for rohan121212

Hey everyone out there please help me with this code [code] #include<iostream> #include<stdlib.h> #include<time.h> using namespace std; int main() { long n; cout<<"Enter no. of random numbers to be generated\n"; cin>>n; int arr1[n]; srand(time(NULL)); for(int i=0;i<n;i++) { arr1[i]=rand(); } int x=0; int pos=0; double k=time(NULL); for(int i=0;i<n-1;i++) { x=arr1[i]; for(int …

Member Avatar for LRRR
0
135
Member Avatar for mikeshadow

I need an algorithm that finds how many prime numbers are in a set interval; the interval maximum range is 1 000 000 so a brute force method of checking every number is kinda inefficient

Member Avatar for mikeshadow
0
500
Member Avatar for cangan

Hi list, Three functions use the following items vector. Where/how should i put the vector to make this possible ? Any reference to related sources will be appreciated. [CODE] vector< vector<int> > items ( 6, vector<int> ( 6 ) ); [/CODE] P.S I tried to make it static but it …

Member Avatar for cangan
0
123
Member Avatar for freedomflyer

I am trying to pass some url information into tokenize_urls from process_and_display_information. To get things up and running, I am simply trying to return and retain some array data from tokenize_urls into process_and_display information. However, I am running into an issue where the variables are created and sent back from …

Member Avatar for Ancient Dragon
0
171
Member Avatar for AlvinLiu

what is code mean? [CODE] void fo(){ count += 1 + !(count <5); cout << count <<endl; } [/CODE] Thank you .

Member Avatar for MandrewP
0
179
Member Avatar for TaoNinja

Hi Guys, Im completely new to this website and quite new to programming, Currently im doing Programming at college, Due to some unforeseen circumstances i had to miss a few weeks at college, Could someone please help me with a problem? I have been trying to figure it out on …

Member Avatar for frogboy77
0
444
Member Avatar for Vasthor

these one code, from line [63-71] of the original code [CODE] // for adding more students cout << endl << "Want to add more student?(yes/no): "; string add_student; cin >> add_student; if(add_student == "yes") { student_counter = 0; } [/CODE] the program seems "doesn't detect" the cin code above, it …

Member Avatar for Vasthor
0
242
Member Avatar for rohan121212

hey i just switched from turbo c++ to dev c++ i cant run the following program please help #include<iostream> using namespace std; int main() { int n; int k; cout<<"Enter the values\n"; cin>>n; cin>>k; if (n>k) {cout<<"The value entered first is greater ";} else {cout<<"The value entered 2nd is greater";} …

Member Avatar for Schol-R-LEA
0
97
Member Avatar for rohan121212

#include<IOSTREAM.h> main() { int rohan=0; int m=10; int l=10; int t=10; int flag1 =0; int flag=0; int temp; float temp1; long double n; double k; cout<<"ENTER N\n"; cin>>n; k=n; int camp; camp=k; while (flag1) { l*=10; camp/t; t*=10; if (camp == 0) {flag1=1;} } if ((1>n)&&(n>=1e6)) {cout<<"there is a error";} …

Member Avatar for morganJohnson
0
157
Member Avatar for ChrisMackle

Hey, im new to C++ forums and C++ for that matter. Im 16 years old and want to be a game developer so i made a calculator it took about 30min(a while i know but im a beginner) can someone tell me if what ive done is good code or …

Member Avatar for WaltP
0
184
Member Avatar for rohan121212

Hey i am a beginner in programming I typed the following program on my own But there are a lot of errors it it Please help me find them [CODE] #include<IOSTREAM.h> main() { int a,b,c,x; cout<<"Enter three values - \nA,B,c."; cout<<"A-"; cin>>a; cout<<"B-"; cin>>b; cout<<"c-"; cin>>c; if (a>b) x=1 else …

Member Avatar for rohan121212
0
157