Hi, I have a sql statement which was running fine yesterday. After making a few changes to the website, it stopped working. I managed to get the statement work on my localhost, however, when I publish the same pages onto the server, I receive the "Operand should contain 1 column(s)" error. I have a table names "PLZ" with a column also called "PLZ". The statement that worked was the following (just an example): [code] SELECT DISTINCT PLZ FROM PLZ WHERE (PLZ_LNG <= (13.4 + 0.154103006104881) AND PLZ_LNG >= (13.4 - 0.154103006104881)) AND (PLZ_LAT <= (52.517 + 9.62081932126399E-02) AND PLZ_LAT >= …

Member Avatar
Member Avatar
+0 forum 2

[CODE]#include <iostream> #include <cmath> #include <iomanip> using namespace std; int triangleType(double x1, double y1, double x2, double y2, double x3, double y3); double distance(double a1, double b1, double a2, double b2); int main() { double x1, y1, x2, y2, x3, y3; cout << "Enter vertices for the triangle." << endl; cin >> x1; cin >> y1; cin >> x2; cin >> y2; cin >> x3; cin >> y3; cout << "The function will return 3 for an equilateral triange, 2 for an isosceles triangle and 0 for a scalene triangle" << endl; cout << "The triangle is type "; triangleType(x1, …

Member Avatar
Member Avatar
+0 forum 3

I looked around quite a bit on how to solve this but i couldn't find a lot .. can anyone help me? The capitalized variables are constants [CODE] case '4': { bubbleSort(aList); string strKey; cout << " Input: "; cin >> strKey; binarySearch(aList, strKey); int binarySearchResult = binarySearch(aList, strKey); if (binarySearchResult = iERRORNOTFOUND || binarySearchResult = iERROREMPTY)//Error C2106 "=" Left operand must be l-value {} else {} } [/CODE]

Member Avatar
Member Avatar
+0 forum 3

Hey everyone, needing a little hand... i'm using the SDL on windows and all the right libraries are installed correctly, I know this because all my other functions that need these libraries worked and still do, but my SDL_Surface* pFontSurface; variable my print text method creates a compile error. ~The error states that i cant use a right hand operand to assign whether my font is shaded, solid, etc. As no such operator was found or there is no acceptable conversion. The next 2 comments are in order my .h file and my .cpp file regarding this little problem... Thanks …

Member Avatar
Member Avatar
+0 forum 3

my compiler keeps saying that i have an operator error at lines 22 and 50. what did i do wrong??? plz help [CODE]#include <iostream> using namespace std; class Rectangle { public: Rectangle()/*rectangle constructor defaults the values for length, width, area, and perimeter to 1 and initializes five rectangle objects to zero*/ { rectangleLength = rectangleWidth = 1; rPerimeter = rArea = 1; for ( int r = 1; r <= 5; r++) rArray[r] = 0; } void setRectangleLength()// set length value between 1 to 20 { bool lengthTest = false; while ( !lengthTest ) { cout << "\nEnter the length …

Member Avatar
Member Avatar
+0 forum 3

The End.