Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 229 results for
forloop
- Page 1
Forloop multidimensional array result in email
Programming
Web Development
9 Years Ago
by MissMolly
… results and use them in an email? $message .= "the
forloop
results here" There's a few similar questions about…
Re: error : cannot read :forloop.java
Programming
Software Development
14 Years Ago
by javaAddict
… needs capital S and system, needs capital S: [CODE] class
forloop
{ public static void main(String args[]){ int x; for(x… references, you should name your .java files with capital letter:
ForLoop
.java [CODE] class
ForLoop
{ } [/CODE] It is common practice.
error : cannot read :forloop.java
Programming
Software Development
14 Years Ago
by aman rathi
i am very beginner to java getting error in below code [CODE]class
forloop
{ public static void main(string args[]){ int x; for(x=0;x<10;x=x+1) system.out.println("this is x:"+x); } }[/CODE] error : cannot read :
forloop
.java i error please help me
Re: Forloop multidimensional array result in email
Programming
Web Development
9 Years Ago
by MissMolly
This actually sorted it, not sure if it's right, but it works. Still open to suggestions if there's a better way to do it but I'll mark as solved (: foreach ($data as $tempone) { foreach ($tempone as $key=>$temptwo) { $message .= ''.$temptwo.''; } $message .= '<br>'; }
Re: Forloop multidimensional array result in email
Programming
Web Development
9 Years Ago
by cereal
If you're using PHP 5.5+ then you could use `array_column` with `implode()`, for example: <?php // example contents $_POST['data'][] = ['a' => 1]; $_POST['data'][] = ['a' => 2]; $_POST['data'][] = ['a' => 3]; // $data = $_POST['data']; $data = implode(' ', array_column($data, 'a')); print $data; That will print `1…
forloop
Programming
Software Development
14 Years Ago
by raisedtozero
make and run a program that will display the output below ##### #### ### ## # it should use forloops,, i cant make one, but the code is long. i cant make it work also, you need to use the concept of rows and columns heres mine,, its epic fail pls help me [CODE]#include<iostream> using namespace std; int main() { …
Re: forloop
Programming
Software Development
14 Years Ago
by jonsca
You will need nested for loops: [code] for(over each of the rows) { for(over each of the columns) { [/code] Find a relationship between the columns and the rows. Take another crack at it, and post back with your updated code.
Re: forloop
Programming
Software Development
14 Years Ago
by kimmyfufu
yeah i don't know...i just learned loops last week..and i bombed my assignment..got a big fat zero..so good luck!
Re: forloop
Programming
Software Development
14 Years Ago
by vinayakgarg
After writing [B]for[/B] and [B]cout[/B] 5 times, you should have understood the need of nested loop.
Re: forloop
Programming
Software Development
14 Years Ago
by erikandr
If you want to loop over something, the syntax is as following: [CODE] int rowVector[5]; // Initializing for (int i = 0; i < 5; i++) { rowVector[i] = i; cout << rowVector[i]; }[/CODE] Initializing an array with both rows and columns is done as following: [CODE] arrar[number_of_rows][number_of_columns] [/CODE] Hope I didn't give you…
ForLoop in Mouseclick
Programming
Software Development
17 Years Ago
by mustoora
Hi there. Sorry, realized that my previous post has some typo error. Editted. Hope can seek some help. I am trying to make a certain symbol to appear upon every mouseclick. However, the symbol is a cross and an arrow head. This is how I tried to do it. [CODE]Private Sub Form1_Paint(ByVal sender As Object, ByVal e As _ System.Windows.…
Re: error : cannot read :forloop.java
Programming
Software Development
14 Years Ago
by jon.kiparsky
Java is case-sensitive. There's a difference between "string" and String, and between "system" and "System". Capitalize those two words and you should be okay. Java style suggests that class names be in the form MyClassName (first letter of each word in caps) and variable/method names in the form myMethodName (…
Re: error : cannot read :forloop.java
Programming
Software Development
14 Years Ago
by aman rathi
got it thanks a lot.
Newbie Help
Programming
Software Development
14 Years Ago
by Davenavie
Need help with this project 1. Declare two integers, one for row number entered one for the number of columns entered 2. Declare a string variable named dummy it will be used for the ending prompt. 3. Display the title [item #1] using Console.Writeline() 4. Display a blank line [2] using Console.Writeline() 5. Display an input prompt [3] …
Re: Newbie Help
Programming
Software Development
14 Years Ago
by Momerath
So what have you done so far? It looks like step-by-step instructions on what to write, so I'm not sure what problems you are having. One way to do this is to turn each of the instructions you have there into comments, then write the code for each comment: [code]// 1. Declare two integers, one for row number entered one for the number of columns …
Django - List(s) of items and form display
Programming
Software Development
14 Years Ago
by oooooops
…">Tags:</label> {{ form.fields['tag_%s' %
forloop
.counter0] }} </div> {% empty %} No data to import {% …%} [/CODE] gives an error because I tried to use the
forloop
.counter0. Is there any way to do this without creating…
Tips? HashTable-like, but iterate through...??
Programming
Software Development
13 Years Ago
by thompsonSensibl
… there are. I would iterate through it with a [B]
forloop
[/B]. [*]There must be some "key"-like variable… where you cannot iterate through it easily like through a
forloop
. A 2D array would be too cumbersome. [B] What would…
Re: Tips? HashTable-like, but iterate through...??
Programming
Software Development
13 Years Ago
by thompsonSensibl
…();" because "i" was already taken by the
forloop
.) How can I get around this, to create new Person…
One Dimensional Array
Programming
Software Development
17 Years Ago
by stonecoldstevea
… in the declaration statement. The main function should contain a
forloop
going from 1 to 10. Inside the loop two functions…
progressBar
Programming
Software Development
17 Years Ago
by Jennifer84
… in .NET to show progress for an operation. In this
forloop
I am reading 3 files that takes about 20 seconds…
% and <= operation with unsigned long long
Programming
Software Development
17 Years Ago
by samush
…-1; i++){ printf("%d ", fcts[i]); } } [/CODE] the
forloop
should end when i is bigger then X but i…
program crashes
Programming
Software Development
16 Years Ago
by wcmport
…"; } else { cout << "O"; } } } //end outer
forloop
//cout << endl; }//end print grid squaretype findmaxLocation (squaretype…
crash fixed - but output is not what I expected
Programming
Software Development
16 Years Ago
by wcmport
…"; } else { cout << "O"; } } } //end outer
forloop
//cout << endl; }//end print grid squaretype findmaxLocation (squaretype…
Please help: Array return index number how to?
Programming
Software Development
15 Years Ago
by NoviceChrilill
… secondMin return secondMin; }// end of if // return i; }// end of
forloop
return secondMin; }// end of static int }// end of class [/code]
Re: Please help: Array return index number how to?
Programming
Software Development
15 Years Ago
by cgeier
… secondMin //return secondMin; }// end of if // return i; }// end of
forloop
//return secondMin; return secondMinIndex; }// end of static int }// end of…
Re: Please help: Array return index number how to?
Programming
Software Development
15 Years Ago
by harsh2327
… secondMin return secondMin; }// end of if // return i; }// end of
forloop
return secondMin; }// end of static int }// end of class [/code…
String Validation Help 2
Programming
Software Development
15 Years Ago
by El Duderino
… //adds and records numbers inputted from user totalNumber += number; }//end
forloop
//total of user inputs not including the min and max…
Re: String Validation Help 2
Programming
Software Development
15 Years Ago
by kekkaishi
… //adds and records numbers inputted from user totalNumber += number; }//end
forloop
//total of user inputs not including the min and max…
what happened with the for loop
Programming
Software Development
15 Years Ago
by gunbuster363
Here is my code. If I use
forloop
to write, it got error: Traceback (most recent call last): …
Re: what happened with the for loop
Programming
Software Development
15 Years Ago
by jlm699
[QUOTE=gunbuster363;1046437]Here is my code. If I use
forloop
to write, it got error: Traceback (most recent call last): …
1
2
3
4
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