Posts
 
Reputation
Joined
Last Seen
Ranked #928
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
~78.0K People Reached
Favorite Tags
Member Avatar for samaru
Member Avatar for NinjaLink

The sorting method you are using now is Bubble Sort. You can use another popular sorting methods like Insertion Sort, Selection Sort, Merge Sort and Quick Sort. Actually these sorting are a lot more efficient than Bubble sort. ;)

Member Avatar for Nor_492
0
7K
Member Avatar for preet4fun

To do that, you can declare another 2 variable name total_ticket_sold and total_revenue. Then assign them with value 0. In the while loop, add another 2 lines of code: [CODE=cplusplus] total_ticket += noOfTicketSold; total_revenue += (ticketPrice * noOfTicketSold); [/CODE] Lastly, cout both outside the while loop. This should work fine. …

Member Avatar for NathanOliver
0
2K
Member Avatar for KAY111

[CODE=Perl] #!/usr/bin/perl #declare a variable named line and assign value 'abcd' to it $line="abcd"; #split the variable line ("abcd") into 1 char part @arr=split("",$line); #show/print the 1st character, which is 'a' print $arr[$0]; #declare a variable named line and assign value 'x' to it $x="x"; #if the 1st character for …

Member Avatar for d5e5
0
106
Member Avatar for nilesh04dream

Yup... Type in your address here. We'll send out a programmer to take the exam on behalf of you...

Member Avatar for G_Waddell
-1
69
Member Avatar for Member 784648

Huh... Reading the whole post makes me dizzy..... x_x... You can use [code=vb.net]WriteLine("testing1\n\n\n\n")[/code] to enter multiple line break though instead of keep calling the WriteLine()... :) Anyway, the word "condition" is wrongly spell as well... it's "condition" not "condetion"...

Member Avatar for G_Waddell
0
91
Member Avatar for thego!team

To browse through multiple folders to get the files names, pls view this [URL="http://www.daniweb.com/forums/thread129876-2.html"]thread[/URL].

Member Avatar for raul15791
0
501
Member Avatar for Member 784653

Do it in web app instead of standalone binary?? I guess may be when one user is using the file, other user can't access it???

Member Avatar for raul15791
0
73
Member Avatar for eXceed69
Member Avatar for raul15791

Hi, I have a problem here. I have a project running on localhost. Whenever I made some changes on a .aspx file, the changes can be seen immediately when I access my localhost. But when I made changes in aspx.vb file, the localhost still showing old info. * I have …

Member Avatar for raul15791
0
1K
Member Avatar for raul15791

Hi, If i need to use many same components in a window form (let say 20 picture boxes or 20 text boxes), which of the method below is more efficient?? 1. Drag and drop the component 20 times. Configure their properties one by one. 2. Declare array of that component …

Member Avatar for raul15791
0
284
Member Avatar for raul15791

This may sounds stupid. I'm new to VB.net. My problem is that all the size of my picture box kept running. 1. I'm not sure is it because i set the form's backbgroundimagelayout to "Stretch" and all Picturebox's sizemode to "Stretch Image". 2. When i start my app on another …

Member Avatar for densman
0
207
Member Avatar for raul15791

Hi, I'm trying to save some images into my Database of my application. Can I know which of the method below is [B]better [/B]and [B]why[/B]? 1. Store only the picture path into the database. Retrieve Picture according to its path. 2. Store the Picture in Database as bytes. Thanks.

Member Avatar for maczoon
0
151
Member Avatar for krm08

Perhaps you can create another function to check whether it exists or not? [code= VB.net] Dim conn As SqlConnection Dim strConn As String = "Data Source=ANX134\SQLEXPRESS;Initial Catalog=Dyslexia_Begin;Integrated Security=True" conn = New SqlConnection(strConn) conn.Open() SQLcmd = "select * FROM UserDetails where username = '" & txt_username.Text.Trim & "' and password = …

Member Avatar for raul15791
0
198
Member Avatar for raul15791

Hi, I need to reset all the values of elements in my form to empty string. But the problem is that the form can be reset but the variable still holding the value of y previous input. For exp, Input 5 value at first time. Input 2 value at second …

Member Avatar for raul15791
0
120
Member Avatar for raul15791

Hi, I have problem to terminate the process EXCEL.EXE after I write into it. After the program finish execute. The EXCEL.EXE is still in the proceses list in the task manager. Anyway to terminate it? Below is my coding: [CODE=csharp] SaveFileDialog s_Lvl_Max = new SaveFileDialog(); s_Lvl_Max.Filter = "xls files (*.xls)|*.xls|All …

Member Avatar for raul15791
0
154
Member Avatar for raul15791

Hi, I'm wondering is there any build-in function or component that I can use to create a multi-select dropdown combobox. I try to google for this but most of the solution I found is for web based software. I'm not asking for the whole program. At least something for me …

Member Avatar for dickersonka
0
196
Member Avatar for raul15791

Hi, I'm newbie in ASP. I am trying to view multiple pages by using a single file. For example, I have a few pages of product.asp (products.asp, products1.asp and so on). Now I want to create a single single (products.asp) but can view multiple pages. Try to search through google …

Member Avatar for raul15791
0
292
Member Avatar for raul15791

Hi, I'm new to C#. Can any one help with extracting info from a few .csv files and insert them into DIFFERENT sheet in excel(not necessary .xls format. .csv is fine). I'm not asking for the whole piece of coding. Just need some idea on where to start. :-/ Thanks!

Member Avatar for raul15791
0
243
Member Avatar for raul15791

Hi, first of all sorry if I post this in the wrong section. Cant find where is the VBScript Section. I'm new to VBScripting. What I need is the VBScript to count the number of record in my MSAccess table. I tried [ICODE] total = "SELECT COUNT(*) FROM Product" [/ICODE] …

Member Avatar for raul15791
0
906
Member Avatar for raul15791

Hi, first of all sorry if I post this in the wrong section. Cant find where is the VBScript Section. I'm new to VBScripting. What I need is the VBScript to count the number of record in my MSAccess table. I tried [ICODE] total = "SELECT COUNT(*) FROM Product" [/ICODE] …

0
56
Member Avatar for nizbit

[QUOTE=nizbit;696163]Well class should not be in there. I thought I would have to make an instance so I could add a race car to the linked list.[/QUOTE] Yeah.. You can do that... You just declare the List and the class (for eg. Class car) as usual. The only thing special …

Member Avatar for nizbit
0
137
Member Avatar for juma denice

At least put in some effort and try write something before posting your problem??:-/

Member Avatar for raul15791
0
130
Member Avatar for pads
Member Avatar for MelechM
0
147
Member Avatar for Nemoticchigga

Or may be convert the double into string. Then split the string using "." as the delimiter??

Member Avatar for ArkM
0
116
Member Avatar for john88

Hi, I edited some of your code. Here it is. The reason it won't come out from while loop is because isspace() included the newline ("\n") as a kind of "space". See [URL="http://www.cplusplus.com/reference/clibrary/cctype/isspace.html"]this[/URL]. Anyway, it's a good practice to put return 0 at the end of int main(). :) [CODE=cplusplus] …

Member Avatar for MelechM
0
120
Member Avatar for the universe

If you want to randomly generate number between certain range you can use : rand()% x, where x is the maximum number. Exp: rand()% 50, means range is 1-50. Is this what you want??

Member Avatar for VernonDozier
0
142
Member Avatar for jhonnyboy

jhonnyboy, it will be better if you can try to write a program first then post your coding. mahlerfive is right but another alternative way is to store the number the user input in string then you can get each digit in the string a lot more easier. After you …

Member Avatar for Nick Evan
0
141
Member Avatar for shamila08

Use switch() may be? Do you need the number to be shuffled?? Put in some effort. Try writing at least a simple program and post it. :)

Member Avatar for raul15791
0
49
Member Avatar for tyserman5674

You definitely have to work on your alignment of your coding. The alignment and programming style should be consistent. The reason why you program is not working when you choose option 2 is because you miss ".txt" in line 292. Other suggestions: 1. If the Constructor have quite a few …

Member Avatar for raul15791
0
160