Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
min
- Page 1
Implementing a Dynamic Filter Option in a Web Application
Programming
Software Development
1 Month Ago
by YashSmith
…" value={filters.keyword} onChange={handleChange} /> <label>
Min
Value:</label> <input type="number"… This Works: Search by keyword to filter specific results. Set
min
/max value to filter within a range. Select a category…
min value@array@recursion: works only upto a certain array size
Programming
Software Development
12 Years Ago
by somjit{}
…arr,size);
min
=*(arr+0);
min
=findMin(arr,
min
,size); printf("\n\nthe
min
value in …quot;); } int findMin(int* arr,int
min
,int size){ printf("in findMin() …
min
; } else if(
min
>*(arr+j)){
min
=*(arr+j); j++; findMin((arr+j),
min
,size); } else if(
min
…
Re: min value@array@recursion: works only upto a certain array size
Programming
Software Development
12 Years Ago
by deceptikon
… = 1; if (j == size){ return
min
; } else if (
min
> arr[j]){
min
= arr[j++]; return findMin(arr,
min
, size); } else { j++; return findMin…
min in o(1)
Programming
Software Development
9 Years Ago
by mama12
… static void getMin(){ if(!
min
.isEmpty()){ System.out.println(
min
.get(
min
.size() - 1)); numbers.remove(
min
.get(
min
.size() - 1));
min
.remove(
min
.size() - 1); } but…
Re: min value@array@recursion: works only upto a certain array size
Programming
Software Development
12 Years Ago
by deceptikon
… values >> array:%d
min
:%d size:%d\n", *(arr),
min
, size); if (
min
> *arr)
min
= *arr; return findMin(arr + 1…,
min
, size - 1); } But these debug printf…
Min-heap extract min not working correctly
Programming
Software Development
15 Years Ago
by Uni616
…compute minimum spanning tree. I coded up the
min
-heap pretty easily and I have no compile …. For example, I insert these ints into an empty
min
heap: 10, 9, 7, 2, 5, 3,… I still can't find the problem. My
min
-heap consist of "edges" and not…that represent two vertices and a cost. My
min
-heap is sorted by cost. Here is the…
Re: min value@array@recursion: works only upto a certain array size
Programming
Software Development
12 Years Ago
by aswekown
…, 3, 100, 120}; m = f_min(arr, 6); printf("The
MIN
values is -->%d\n", m); return 0; } int…
Re: min in o(1)
Programming
Software Development
9 Years Ago
by JamesCherrill
What exactly is the code supposed to do? What's the list `
min
` all about?
Min and Max Numbers
Programming
Software Development
14 Years Ago
by garu525
…should save a file with sum, average, max and
min
of each line. For now I just have to …;iostream> using namespace std; int main() { int num1, num2,
min
= 0, max = 0, sum = 0, count = 0; double avg… if (num1 < num2) max = num2,
min
= num1; else max = num1,
min
= num2; sum = sum +
min
+ max; } avg = sum/7.0; cout …
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by garu525
How do I assign the first number to
min
and max? Is this correct? [CODE] for (count = 0; count <= 7; count++) { cin >> max; max =
min
; if (max >
min
) max = max; if (max <
min
) max =
min
; sum = sum +
min
+ max; } [/CODE] Thanks!
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by vidit_X
…numbers of last line. You lost all the max,
min
and sum for the previous lines. The inner for… already have a number from line 1 in num[/COLOR]
min
= num; max = num; while (infile >> num) {… if (num > max) max = num; if (num <
min
)
min
= num; } }[/CODE] Also, your logic for finding max and…
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by garu525
…int main() { ifstream infile; ofstream outfile; int num,
min
, max, sum = 0; double avg; infile.open (&… 0; count <=7; count++) { infile >> num;
min
= num; max = num; while (infile >> num) …{ if (num > max) max = num; if (num <
min
)
min
= num; } } sum += num; outfile << num <&…
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by garu525
…() { ifstream infile; ofstream outfile; int num[7],
min
, max, sum = 0, counter; double avg; infile…lt;= 8; row++) { counter = 0; max = num[counter];
min
= num[counter]; for (; counter < 7; counter++) { infile… >> num[counter]; if (
min
> num[counter])
min
= num[counter]; if (max < num[counter…
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by Fbody
… the value to max and
min
, not input directly to max or
min
:[CODE]inFile >> someVar;
min
= someVar; max = someVar; while… values to decide if they actually are your new max/
min
. As a result, they will get corrupted on every iteration…
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by WaltP
First of all, you read two numbers and never read any more. Try this: Read the first number. Set
min
and max to this number. This seeds the
min
/max with at least one number actually in the list. Set up a loop to read the rest of the numbers one at a time and test for
min
and max.
Re: Min and Max Numbers
Programming
Software Development
14 Years Ago
by vidit_X
…[counter];[/CODE] You are assigning values to max and
min
from an un-initialized variable and that is the problem. … in the outer for loop, store it in max and
min
, leave inner for loop as it is and it should…
Re: min/max of a mixed type list
Programming
Software Development
18 Years Ago
by vegaseat
… = [x for x in lst if isinstance(x, typ)] return
min
(temp), max(temp) # minmax4() test ... mixed_list = [11, 'Dick', …700, 777, 'Paul', 13456789] print mixed_list print "The
min
and max of the integers are:" mn, mx = …Mary', 7, 'Zoe', 9, 700, 777, 'Paul', 13456789] The
min
and max of the integers are: minimum = 7 maximum = 13456789…
Re: min height
Digital Media
UI / UX Design
15 Years Ago
by JugglerDrummer
… height is set in an absolute value like pixels then
min
-height doesn't really matter because the height is always… lose control of how big the item actually appears. So
min
height allows you to specify a minimum height that the… hits 200px or whatever value you set for the
min
height. Width and
min
-width work the same way. I have only…
min, max, mean class
Programming
Software Development
11 Years Ago
by dp121307
…object): def __init__(self, grade): self.grade=[] def
min
(self): try: if int(input)<= self.grade: …continue data = Dataset(xStr) data.add(x) print('
Min
:', data.
min
()) print('Max:', data.max()) print('Mean:', data.average…
Re: MIN and MAX for date and time in dabase
Programming
Software Development
11 Years Ago
by Maligui
… that Log_Type is an integer value: ' ... reader = cmd.ExecuteReader() Dim
min
, max As Integer ' There will only be one row. While… (reader.Read())
min
= Convert.ToInt32(reader.GetValue(0)) max = Convert.ToInt32(reader.GetValue…
Re: Min function
Programming
Databases
18 Years Ago
by DavidRyan
[quote=hanifa]Hi guys, I have this situation.. The
Min
funcition in SQL returns lowest value in query but I … table for example col=Pay(3000,2300,1000,1900,1200)
Min
(pay)=$1000 but I want to return Min2ndlowest(pay)=1200… the result from x, call this table y. Then run
min
again on y, this will return the lowest result from…
Re: min value
Programming
Software Development
17 Years Ago
by Ancient Dragon
… pass it each of the arrays and print out the
min
for each. You only have to write the algorithm once… instead of 6 times. [code] int
min
(int array[], int size) { // your code here } int main() { int… A[7], ... cout << "
min
of array A is " <<
min
(A,7) << "\n"…
Min Max Program
Programming
Software Development
17 Years Ago
by DarkDot
… 10 integers, then prints out the Max integer and the
Min
integer. The first loop reads in the 10 integers and… second one is supposed to print out the Max and
Min
integers. The problem I'm having is that its just… not printing out the max or
min
integers, it seems to be reading in the integers just…
min height
Digital Media
UI / UX Design
15 Years Ago
by sreein1986
Hi, Freinds, I have a doubt in style sheets, when i was using a in table tag there a style property show that is
min
-height, what is the
min
-height? and what is difference between hieght and
min
-height? Advanced thanx
Re: min height
Digital Media
UI / UX Design
15 Years Ago
by Xlphos
…. I believe the difference is; height is the height and
min
-height is the minimum height of the image. Lets say… be [B]50px[/B] high or you could put [ICODE]
min
-height:50px;[/ICODE] This will be [B]100px[/B] high… as the original image is 100px. All [B]
min
/max-height[/B] does is set the limits to one…
Re: Min/Max value and average array help!!
Programming
Software Development
15 Years Ago
by momike205
mmm... k... So if I have this: int i, max,
min
,; int num[10]; num[0] = 10; num[1]=3…num[7]=12; num[8]= -19; num[9]=88;
min
=max=num[0]; for (i=1; i<10; …i++) { if (num[i] <
min
)
min
= num[i]; if (num[i] > max) max = num…`, im telling it: if (num[1] < 10)
min
= 3; but here's the thing `num[3, 4 …
Re: min value in array ?
Programming
Software Development
15 Years Ago
by jephthah
…'re finding a minimum value so call the variable "
min
" or something. not "max" remember how when…was found to be greater than max. to find the
min
is just the opposite in every way, you'll start… highest possible value and work down. you'll set [iCODE]
min
= INFINITY[/iCODE] (well, not literally) and change it anytime the…
Min-width not working in IE
Digital Media
UI / UX Design
14 Years Ago
by ctaylo21
… before the content stops getting smaller. That's where the
min
-width comes in. It just has no affect in IE… div containing all the elements of my page with a
min
-width set to 960px, and in IE you can keep… size of the text finally stops it. Anybody know why
min
-width is not working for me in IE? I am…
Re: Min-width not working in IE
Digital Media
UI / UX Design
14 Years Ago
by drumichael87
Unfortunately,
min
-width and
min
-height are not and have never been supported by Internet Explorer. There are ways you can TRY to fake it though. Check out this link: [url]http://www.webreference.com/programming/
min
-width/[/url]
Re: Min-width not working in IE
Digital Media
UI / UX Design
14 Years Ago
by scrappedcola
Actually IE 7/8 will respect
min
-width see this MSDN article on CSS Compatibility: [URL="…; <html> <head> <style> #minDiv{
min
-width:300px; width:100%; background-color:green; } </style>…; <div id=minDiv> THis is my div with
min
width; </div> </body> </html [/CODE…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC