mojo666's Profile User Rating: -----

Reputation: 352 Architect
Group:
Expert
Active Posts:
771 (0.4 per day)
Joined:
27-June 09
Profile Views:
11,534
Last Active:
User is offline Aug 29 2014 03:24 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Mozilla
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Expert In:
Computer Science

Latest Visitors

Icon   mojo666 has not set their status

Posts I've Made

  1. In Topic: SQL Select Duplicate records Multiple Parameters.

    Posted 29 Aug 2014

    Wouldn't just removing the 'PH' and 'water' restrictions give you all the duplicates? If they still need to be grouped by those fields, I think you can just add them to the partition

    OVER( partition by ASSESSMENT_UNIT_ID, PARAMETER_LOK.PARAMETER_NAME, MEDIUM_LOK.MEDIUM_NAME)
    


    You could also use "GROUP BY"

    SELECT  LISTINGS.LISTING_ID,  
    Count(*)
    FROM 
    .
    .
    .
    WHERE ACTIVATION_STATUS = 'Y'
    GROUP BY ASSESSMENT_UNIT_ID, PARAMETER_LOK.PARAMETER_NAME, MEDIUM_LOK.MEDIUM_NAME 
    
    
  2. In Topic: Need Help with Loop to Get Input

    Posted 24 Jul 2014

    Uhhh, where's your loop? Your program should resemble the following pseudo code

    open file
    while str is not empty
    {
         print "Enter some text:"
         read input into str
         write str to file
    }
    close file
    
    
  3. In Topic: Simple Recursion Problem

    Posted 15 Jul 2014

    Also, as written your code will either always return the negative number rather than the max or just keep recusing if it makes it that far. It might help to use variables with more meaningfull names.

    int Max(int biggest)
    {
    	int newInput=0;
    	cin>>newInput;
    	if(newInput<0)	//terminating condition
    	{return biggest;}
    	else
    	{
    		/*determine which number (newInput or biggest) needs to be passed in recursion*/
    		return Max(/*yourDecision*/);
    	}
    }
    //This code does not account for cases where the first input is negative.  You may want to adjust for that.
    
    
  4. In Topic: making a binary search in an array

    Posted 15 Jul 2014

    Binary search only works on sorted arrays. Before you can even think about doing a binary search, you need to have code that stores the data in the array in sorted order. Your code does not read any data into the array, much less sort it. You should get that part figured out first.
  5. In Topic: making a binary search in an array

    Posted 15 Jul 2014

    You ask the user to enter 10 numbers, but you don't have any code to read in those 10 numbers and store them into your array.

My Information

Member Title:
D.I.C Addict
Age:
30 years old
Birthday:
July 23, 1984
Gender:
Interests:
Chess, math, computers, AI
Years Programming:
6
Programming Languages:
C++, C#, VB.net, SQL, OCAML, LISP, MIPS

Contact Information

E-mail:
Private
Website URL:
Website URL  http://

Friends

Comments

mojo666 has no profile comments yet. Why not say hello?