Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
occurs
- Page 1
number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by Katya
… also display the number of each number in the array
occurs
.[/I] [I]I have sorted average number but straggle with…
Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by Alexbeav
… a file and count the number of times a letter
occurs
,either small or capital. For example,I have a text…
Re: Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by Aia
… a file and count the number of times a letter
occurs
,either small or capital. [/quote] There's a conversation about…
error occurs on trying to access the site of the httphandler by multilple clients
Programming
Web Development
16 Years Ago
by repl
Hi , I am working on an application to fetch and display the image from the video server by using asynchronous HTTPHandler. it is working fine but when 10 clients try to access the URL at the same time "Page cannot be accessed" error
occurs
. Can anyone help me how to handle this case Thanks,
count a char that occurs the most
Programming
Software Development
15 Years Ago
by kiri88
Hi? i'm new at programming and im trying to decipher a code. i'm trying to count how many times a char
occurs
in txt file
Re: count a char that occurs the most
Programming
Software Development
15 Years Ago
by ihatehippies
to find the letter that
occurs
the most you can do: [CODE=python] File = open("path", "rb") txt = File.read() File.close() mode = max(txt, key=txt.count)[/CODE]
packet flooding occurs when connect to another pc on lan
Hardware and Software
Networking
14 Years Ago
by Ritesh_4
… the internet or access other lan pcs again. Also this
occurs
time and again when copying files from other pcs. Anyone…
Re: packet flooding occurs when connect to another pc on lan
Hardware and Software
Networking
14 Years Ago
by Ritesh_4
thanks for the inputs guys, could not really got to the bottom of this, but did get some malware when scanned with malwarebytes and now flooding
occurs
less frequently compared to past
Does garbage collection occurs in PERM Area of Java Heap ?
Programming
Software Development
14 Years Ago
by javinpaul
… question related to garbage collection in Java Does garbage collection
occurs
in PERM Area of Java Heap ? As per my knowledge…
Re: Does garbage collection occurs in PERM Area of Java Heap ?
Programming
Software Development
14 Years Ago
by ~s.o.s~
[quote]Does garbage collection
occurs
in PERM Area of Java Heap ?[/quote] AFAIK, yes. This …
Page Load event occurs on Button Click event
Programming
Web Development
12 Years Ago
by ketan1234
Page Load event
occurs
on Button Click event
Re: Page Load event occurs on Button Click event
Programming
Web Development
12 Years Ago
by kvprajapati
> Page Load event
occurs
on Button Click event What is the point here? Page lifecycle events namely - init, load, pre-render etc must be executed when you request page. Please read ASP.NET Page lifecycle posts from MSDN.
When you apply the save, an error occurs
Programming
Software Development
5 Years Ago
by sofia-net
Hello, help me When you apply the save, an error
occurs
Dim c As Integer Dim val As String If cmbfeuille.…
Re: Error occurs when using more colums?
Programming
Software Development
14 Years Ago
by Learner7
Actually the error
occurs
when there are some fields are empty. So, how can I avoid this error? How to re-code it to accept the null/empty fields? Please do help.
Re: Why occurs Canonical issue?
Digital Media
Digital Marketing
Search Engine Strategies
12 Years Ago
by LastMitch
>Why
occurs
Canonical issue? To me it's kinda like doing **REMOD** on the **htaccess** files. But to answer your question. You can read this ( this will explain what is Canonical ): http://www.mattcutts.com/blog/seo-advice-url-canonicalization/ http://chris.olstrom.com/howto/fix-canonical-problems-with-mod_rewrite/
Re: number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by ~s.o.s~
First of all use int main( void ) and not just main( ) since its not standard. Don't hard code values in your program, if you want to process 20 values make a preprocessor defination at the start of your program which can easily be modified if you are asked to change the requirements. Using [I]magic numbers[/I] as such causes a lot of confusion[I…
Re: number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by Katya
Thank you for your reply! This program should be displayed on the screen in two columns, i.e col.1: the number and col.2: the number of occurences.
Re: number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by ~s.o.s~
Hmm..if thats the case then all you are required to do is to use nested loops. Here is a short algorithm: [LIST] [*]Create a variable [I]count [/I]which will keep track of the occurances of the numbers. [*]Start an outer loop with [I]i [/I]as the counter or index, initialize it with 0 and continue looping till [I]i [/I]is less than the number of …
Re: number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by Katya
thanks a lot! Just one more question. What do you mean by "and if it does, increment the counter by one"?
Re: number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by iamthwee
[QUOTE=Katya;287803]thanks a lot! Just one more question. What do you mean by "and if it does, increment the counter by one"?[/QUOTE] counter = counter + 1
Re: number of times each number in array occurs?
Programming
Software Development
18 Years Ago
by ~s.o.s~
What I mean is : [code=c] // if the element of array matches with another element in the same // array, then increment the counter. if( my_array[i] == my_array[j] ) { ++counter ; // counter = counter + 1 } // my_array = {1, 2, 1, 3, 4, 5 } // my_array[i] = my_array[0] = 1 // counter = 2 ( since 1 has a match at 0th and 2nd position ) [/…
Re: number of times each number in array occurs?
Programming
Software Development
17 Years Ago
by shuncyk
[code]#include <conio.h> #include <fstream.h> #include <iomanip.h> #include <iostream.h> ofstream fout; // output textfile declaration using namespace std; // ============================================================================= int main () { int i, count; char reply…
Re: Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by WaltP
Each letter (in fact each character) has a specific numeric value. Each character can therefore be used as an index into an array in which you can increment the appropriate element. Then run through the array when done and output the values you need. Unzip and run the attached program for an ASCII chart.
Re: Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by iamthwee
>Our teacher said we should use "gotoxy" I laughed at this!
Re: Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by Lardmeister
[quote=iamthwee;454518]>Our teacher said we should use "gotoxy" I laughed at this![/quote]Care to explain? Does not even look like a joke to me!
Re: Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by dwks
gotoxy() is an ancient Borland function. It's very unportable. No new code should use it or anything from <conio.h>, such as getch() or clrscr(). [quote]if (b == "a" && b == "A") ++counta (this counts all "a"s and "A"s) [/quote] 'a' is a single character. "a" is a string. Use single …
Re: number of times each number in array occurs?
Programming
Software Development
17 Years Ago
by dwks
Use code tags when you post code -- otherwise it will be an unreadable mess. This is also the C programming forum, not the C++ one, so C++ code is out of place. It's also old-style C++ code. You're using <iostream.h> and <fstream.h> etc, which are pre-standard. Use <iostream> and <fstream> instead. Also, you're declaring …
Re: Reading from a file and counting how many time each letter occurs.
Programming
Software Development
17 Years Ago
by iamthwee
>Care to explain? Does not even look like a joke to me! Yes the point of the matter is that the same output can be recreated without gotoxy() which is non-portable - meaning it won't work on some compilers. Anyone writing code should strive to make their solutions portable and as close to what the standard dictates, unless there is a very good…
Re: error occurs on trying to access the site of the httphandler by multilple clients
Programming
Web Development
16 Years Ago
by dickersonka
Might want to take a look at your maxworkerthreads, also who knows about your system and the max load it can handle [url]http://msdn.microsoft.com/en-us/magazine/cc164128.aspx[/url]
Re: error occurs on trying to access the site of the httphandler by multilple clients
Programming
Web Development
16 Years Ago
by repl
Hi, can u please tell me how to calculate the maxworker threads, also the max load of the system. this needs to be fixed immediately. plz help Thanks,
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