Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Member Avatar for dinners

My motherboard has 1 stick of 2gb ram and can support up to 4gb total, so I bought exactly the same stick of ram. However, once I installed it the computer would get stuck on "Verifying DMI Pool data". The first time I started it up it did say "Verifying …

Member Avatar for rubberman
0
162
Member Avatar for dinners

I have written a form in html and wish to submit it and run some php code, however once the php file has finished it main job I want to use it to redirect to my homepage where I am using AJAX to change content (where the form is). Is …

Member Avatar for dinners
0
228
Member Avatar for dinners

I want to read the contents of a file and input them as variables. I have written this code: while (!numbersList.eof()) { numbersList >> type >> num1 >> num2; Complex *object = new Complex(type,num1,num2); cout << "For line number " << n << ": " << endl; object->printAll(); cout << …

Member Avatar for m4ster_r0shi
0
98
Member Avatar for dinners

Hi there, I am using MATLAB and am trying to mex a c++ file. I get a load of compiler errors and I am not sure why: correspondPixels.cc(57) : error C2065: 'Matrix' : undeclared identifier The line of code this relates to is: `Matrix m1, m2;` Now the class should …

Member Avatar for dinners
0
196
Member Avatar for dinners

[CODE]cout << "The sum is " <<sum<<endl<<"The sumCheck is "<<sumCheck<<endl; if (sum==sumCheck) { cout<<"Is a polygon"<<endl; } else { cout<<"Is not a polygon"<<endl; } [/CODE] The sum is correctly displayed as 360 and sumCheck is correctly displayed as 360 yet the message "Is not a polygon" is displayed. I can't …

Member Avatar for dinners
0
83
Member Avatar for dinners

[CODE] bool isSame=false; do { bool isSame=false; for (int i=1; i<=corners; i++) { cout << "Please enter the cordinates for corner " << i << ':'; cin >> x[(i-1)] >> y[(i-1)]; } int k; for (k=0;k<(corners-1);k++) { int j; for(j=(k+1);j<corners;j++) { if ((x[k]==x[j])&&(y[k]==y[j])) { isSame=true; } } } if (isSame==true) …

Member Avatar for dinners
0
195
Member Avatar for dinners

I have written a function that calculates an area from coordinated stored in vector arrays: [CODE]void areaCalc(int corners, vector<float> x, vector<float> y, float& area) { float sum=0; for (int i=0; i<=(corners-2); i++) { sum+=(((x[i])*(y[(i+1)]))-((x[(i+1)])*(y[i]))); } sum+=(((x[(corners-1)])*(y[0]))-((x[0])*(y[(corners-1)]))); area=0.5*sum; }[/CODE] The problem is that when I compile it I get this warning …

Member Avatar for dinners
0
299
Member Avatar for dinners

Hi there, I am very new to C++ and I want to create an array of variable length. I tried this: [CODE] int corners; cout << "Please enter the number of corners: "; cin >> corners; int x[corners];[/CODE] but it came up with errors: error C2057: expected constant expression error …

Member Avatar for dinners
0
161