Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 30 results for
arrrays
- Page 1
HSB without RBG conversion
Programming
Software Development
15 Years Ago
by idlackage
… an RBG conversion? Also, dumber: I'm not understanding the
arrrays
people are using, for example [URL="http://www.squarebox…
Re: HSB without RBG conversion
Programming
Software Development
15 Years Ago
by Ezzaral
…] [QUOTE=idlackage;1180487] Also, dumber: I'm not understanding the
arrrays
people are using, for example [URL="http://www.squarebox…
Multidimensional Arrays by reference?
Programming
Software Development
11 Years Ago
by mixelplik
I'm practicing
arrrays
and in the following program I'm passing a multidimensional …
Lottery using arrays
Programming
Software Development
10 Years Ago
by DS9596
… named player. The program must compare corresponding elements in two
arrrays
and count how many digits match. This is an example…
getimagewidth width to array
Programming
Web Development
10 Years Ago
by bobgodwin
…($height)); } } closedir($handle); } `$max_w` returns the last image in an
arrrays
size, as it does in a foreach statement. This works…
Guys help please if look herer is an aplication for FlowersShop made in C++
Programming
3 Years Ago
by Artiuh
…) //read username and password from file and store tjem in
arrrays
{ x++; if (x >= 200) break; UsFile >> Users…
Re: Segmentation fault
Programming
Software Development
17 Years Ago
by Lerner
I suspect you're either reading/writing out of bounds on one of your
arrrays
or you have overfilled the stack. Since the latter is quiet easy to check, I'd check that first. To do it, declare randomArray on the heap using dynamic memory allocation rather than on the stack using static memory allocation.
Re: how do i do this with headers?
Programming
Software Development
16 Years Ago
by Ancient Dragon
… lot of duplicate code? You can use a loop and
arrrays
to chop down the size of your program to just…
Re: how do i do this with headers?
Programming
Software Development
16 Years Ago
by mybluehair
… lot of duplicate code? You can use a loop and
arrrays
to chop down the size of your program to just…
Re: What is wrong with my code? ifstream
Programming
Software Development
13 Years Ago
by Clinton Portis
… assembly language, you'll get a little insight on how
arrrays
and 2D arrays are really handled in memory. it does…
Re: java.lang.ArrayIndexOutOfBoundsException
Programming
Software Development
12 Years Ago
by JamesCherrill
A [][] array is an array of
arrrays
. First you need to initialise the first/outer array, then …
Re: Sorting problem
Programming
Software Development
12 Years Ago
by VictorK19
So does that mean I need to create 3 duplicates of first names, last names and birthdates? Because If I'm making changes on the original ones, I cannot print the list of records in its original unsorted form? And yeah I dont think we get to class/struct yet so
arrrays
would most likely be prefered.
Re: How to pass arguments from other functions to main
Programming
Software Development
11 Years Ago
by Adak
… is a 2D char array. You can have 2D char
arrrays
written as *name[], (like argv is), or name[size1][size2…
Re: HSB without RBG conversion
Programming
Software Development
15 Years Ago
by Software guy
Hi, If you need RGB values of pixel you can get them straight away, without any conversion. The way its done and you might know this already.. You read an image into a bufferedImage and after that you can get RGB values just by using getRGB(x_value,y_value). Let me know if you need help because i have done image processing in JAVA.
Re: HSB without RBG conversion
Programming
Software Development
15 Years Ago
by idlackage
Thank you! Can't believe I missed the API thing.
Re: Multidimensional Arrays by reference?
Programming
Software Development
11 Years Ago
by mixelplik
Sorry - just found the stupid bug - I used the indexes instead of the loop counters in assigning the values.
Re: Lottery using arrays
Programming
Software Development
10 Years Ago
by Ancient Dragon
I assume the array of winning digits can not contain duplicate numbers -- for example this would be illegal: 7 1 4 7 2 5 because the number 7 appears more than once. If that is correct, then you need to expand the loop on line 12 to check the array to see if the value returned by line 13 already exists in the array. line 15: a[10] accesses …
Re: Lottery using arrays
Programming
Software Development
10 Years Ago
by phorce
Hey, what the problem is asking you is to count the total number of times an element exists inside an array. Assume the following: `A = [1, 2, 3, 4]` `B = [2, 1, 2, 4]` Then you can do the following: `AϵB` This is going to either give you true or false.. Because 2 in B exists in A, 1 exists... Therefore, only having one array does not make …
Re: Lottery using arrays
Programming
Software Development
10 Years Ago
by DS9596
I'm still not really getting it, I sort of understand what you guys are trying to say but I'm not sure of how to write it. #include <iostream> using namespace std; int main() { int winningDigits[5]; int players; int Matches; int i; int a[9]; for (int i = 0; i<5; i++)…
Re: Lottery using arrays
Programming
Software Development
10 Years Ago
by DS9596
I don't get how to make them match with each other.
Re: Lottery using arrays
Programming
Software Development
10 Years Ago
by phorce
No, you would just create a `rand` for the users, you would input the user: int player[5]; for(int i=0; (i < 5); i++) { std::cout << "Please enter number" << i; cin >> player[i]; } then you would carry out the comparision. Hope this helps
Re: Lottery using arrays
Programming
Software Development
10 Years Ago
by Ancient Dragon
>I don't get how to make them match with each other. You will need two loops, one inside the other. The outer loop will step through each of the digits in winningDigits array. The inner loop will attempt to find the current digitit in winningDigits in the player array. If a match is found then put that digit in a third array so that you …
Re: getimagewidth width to array
Programming
Web Development
10 Years Ago
by veedeoo
hi, Try reading [One](http://www.smipple.net/snippet/Alex/List%20images%20from%20folder%20via%20PHP%20%28revised%29) and[ two](http://stackoverflow.com/questions/18809992/how-to-get-the-image-with-largest-size-among-all-the-images-on-the-page). Modify codes presented on two echo 'wide image<br/>'; $k = 0; //$area = 0; $x = 0;…
Re: getimagewidth width to array
Programming
Web Development
10 Years Ago
by veedeoo
Correction, this $x = $area = $latest_area; should read $x = $latest_area; sorry about that.. :)
Re: getimagewidth width to array
Programming
Web Development
10 Years Ago
by bobgodwin
This works if the largest image is first. I'd like to know if max could be used, if I could get the widths into an array.
Re: getimagewidth width to array
Programming
Web Development
10 Years Ago
by cereal
What if two or more images are the largest? Anyway, here's an example with `glob()`: <?php $f = glob('./path/*.{jpg,png,gif}', GLOB_BRACE); $r = array(); foreach($f as $file) { list($w, $h) = getimagesize($file); $r[$w*$h][] = array( 'name' => $file, 'width' => $w, 'height' => $h ); } $keys = array_keys…
Re: getimagewidth width to array
Programming
Web Development
10 Years Ago
by bobgodwin
Here's what I ended up doing. I put together a function that can get the minimum or maximun height or width: function imageMaxDimension ($dir, $ort, $ord) { if ($handle = opendir($dir)) { while (false !== ($f = readdir($handle))) { if (preg_match('/(jpg|gif|png)/', $f )) { list($w, $h) = getimagesize($dir.$f);…
Re: getimagewidth width to array
Programming
Web Development
10 Years Ago
by veedeoo
okay, let me try one more time, but I strongly suggests to try out Cereal's approach first. I'm kind of lazy today so I will be using my referenced link above. That would be the first one. I will be modifying this[ script](http://www.smipple.net/snippet/Alex/List%20images%20from%20folder%20via%20PHP%20%28revised%29). I will chop it and add some …
Re: Guys help please if look herer is an aplication for FlowersShop made in C++
Programming
3 Years Ago
by Artiuh
# Help Please # Here is a shop where you can enter like an Admin [txt file (here is "admin.txt" ] if the password and username is identic to show the (Void AdminMenu) with all choices or like a guest it simply shows you a menu of a guest help me please to make this aplication please guys # Add the txt file "admin.txt" …
Re: Guys help please if look herer is an aplication for FlowersShop made in C++
Programming
3 Years Ago
by rproffitt
This code would be marked down many grades for: 1. Poor formatting. It's neither the One True Brace or the K&R style. 2. Misspelling. For homework, you lose points. In real life your app is rejected entirely with one exception which I'll link to. Read https://www.reddit.com/r/fo76/comments/k30yuw/your_the_dumbass_note/
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