Search Results

Showing results 1 to 40 of 91
Search took 0.01 seconds.
Search: Posts Made By: Trekker182
Forum: C++ 1 Day Ago
Replies: 4
Views: 172
Posted By Trekker182
Thanks I don't have to have class in front of the private variables any longer after I took out the =0 part of the virtual function, however I am still getting the two origional errors with

...
Forum: C++ 2 Days Ago
Replies: 4
Views: 172
Posted By Trekker182
When I just list it as

sortStrategy* strategy;

the compiler says that I must specify a type. I'm trying to set a private variable of class sortStrategy.
Forum: C++ 2 Days Ago
Replies: 4
Views: 172
Posted By Trekker182
Hello everyone,

I'm trying my hand at the strategy design pattern. I've got most of my code working, however, I keep running into two errors

"invalid use of undefined type `struct...
Forum: C++ 14 Days Ago
Replies: 2
Views: 217
Posted By Trekker182
thanks
Forum: C++ 15 Days Ago
Replies: 2
Views: 217
Posted By Trekker182
If a constructor calls another class with another constructor and both constructors have methods that access the same class, which would be first?

First constructor in a method separate from the...
Forum: C++ Sep 17th, 2009
Replies: 8
Views: 388
Posted By Trekker182
Thanks for that code example, I've adapted it to what I'm trying to do and I'm almost there. However, when I do a sort now it works when it encounters a & e, but skips o for some reason.

This...
Forum: C++ Sep 16th, 2009
Replies: 8
Views: 388
Posted By Trekker182
I think I just need to tell the sort function sort by ascending order except when you encounter "a" "e" "i" "o" or "u" but am not sure how. Would it have something to do with the p parameter?
Forum: C++ Sep 16th, 2009
Replies: 8
Views: 388
Posted By Trekker182
I've looked through the STL List functions and am having difficulty finding a function that would accomplish my goal of moving just the vowels to the beginning of the list and the consonants further...
Forum: C++ Sep 15th, 2009
Replies: 8
Views: 388
Posted By Trekker182
Oh sorry, I assumed that STL lists were passed by reference automatically.

Amended code....


//function prototypes
void sort (list <char> &);

....
Forum: C++ Sep 15th, 2009
Replies: 8
Views: 388
Posted By Trekker182
Thanks, I assumed <char> but now its outputting the list unsorted.

Is there something that needs to be put it front of ch.sort(); because its inside of a function?

Thanks.
Forum: C++ Sep 15th, 2009
Replies: 8
Views: 388
Posted By Trekker182
Hello everyone,

I'm writing some code for an assignment that reads in a line of characters into a STL list, sorts them alphabetically and then has to reorganize them vowels to the front.
...
Forum: VB.NET Mar 22nd, 2009
Replies: 1
Views: 916
Posted By Trekker182
I noticed that on the example given to me, the first field wasn't an * but was filled with data so the cell started at 0. I have a arrow in the first field in my data grid view so I tried starting...
Forum: VB.NET Mar 22nd, 2009
Replies: 3
Views: 1,457
Posted By Trekker182
Thanks but that didn't work either, I still got the same error as before.

I installed VB 9 on my laptop and found that it gives me the browse box to choose the access 2007 database file that I...
Forum: VB.NET Mar 22nd, 2009
Replies: 1
Views: 916
Posted By Trekker182
Hi everyone,

I just had a quick question on how to go about getting data populated from a data grid view to an array of structures?

I have a data grid view with 6 fields and 10 records that...
Forum: VB.NET Mar 20th, 2009
Replies: 3
Views: 1,457
Posted By Trekker182
I found this connection string format to use to connect:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Shawn Minisall\Desktop\Homework 6\SongNames.accdb;

but I get the...
Forum: VB.NET Mar 20th, 2009
Replies: 3
Views: 1,457
Posted By Trekker182
Hello everyone,

I'm trying to connect to a access 2007 database with VB 9 and am having some problems.

I went to Data and then selected add new datasource.

Then I clicked on database and...
Forum: VB.NET Mar 18th, 2009
Replies: 0
Solved: .vbp files
Views: 364
Posted By Trekker182
I went today open an existing VB project and noticed that all of my project files are missing for all of my VB programs that lets me start VB with that particular program. The only file that I'm...
Forum: VB.NET Feb 19th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Sure thx a lot to everyone who tried to help out as well.
Forum: VB.NET Feb 19th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
It's working!

Thanks a lot.

I'm using this code:

Try
While carpetArea <= 0 And Double.TryParse(carpetArea, dblNumber)
carpetArea =...
Forum: VB.NET Feb 18th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Just in case this was it, I went to the beginning of the program and found carpetArea declared as a double instead of a single so I changed the while condition to this


While carpetArea <= 0 And...
Forum: VB.NET Feb 18th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Ok I tried same code as above except with

carpetArea = InputBox("Please enter the area that you want the carpet installed in:", "Area", "0")

While carpetArea <= 0 And Not...
Forum: VB.NET Feb 18th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Sure...I'd like the loop to stop when its a positive number.

Negative numbers, 0 and letters entered should keep looping the input box to keep coming up until the cows come home.

Here's all of...
Forum: VB.NET Feb 18th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Makes sense but now when I try it, the input box does come up, but if its a negative number or 0 it just accepts it.

Also, if it's a letter it still crashes with an invalid cast exception.
Forum: VB.NET Feb 18th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Thanks for the suggestion, I went ahead and tried it .

While carpetArea <= 0 And Not IsNumeric(CSng(carpetArea))

But it ended up doing the same thing...I click on a carpet selection in the list...
Forum: VB.NET Feb 17th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Unfortunately I have to use a text box for all input.
Forum: VB.NET Feb 16th, 2009
Replies: 16
Views: 1,311
Posted By Trekker182
Hello all,

I'm trying to validate against someone entering letters into an input box. Here is the code I have so far that doesn't seem to do work after I add the second part to verify if what...
Forum: VB.NET Feb 10th, 2009
Replies: 4
Views: 1,275
Posted By Trekker182
I tried that and it still didn't work.

I ended up having to copy the jpg files into both the bin/debug/resources folder as well as resources...now when I click on a list item, BAM...the related...
Forum: VB.NET Feb 9th, 2009
Replies: 4
Views: 1,275
Posted By Trekker182
Where is the best place to put that? When I put it just after each if elseif statement, I get a message that the picture is not a member of resources.

Thanks.
Forum: VB.NET Feb 9th, 2009
Replies: 4
Views: 1,275
Posted By Trekker182
Hello everyone!

I had a quick question on how to use pictures in a VB program. What I'm trying to do is when someone selects an item in a listbox, to show the corresponding jpg file. I selected...
Forum: VB.NET Feb 1st, 2009
Replies: 0
Views: 266
Posted By Trekker182
Never mind, I thought of another way to do the display.

thanks
Forum: VB.NET Jan 31st, 2009
Replies: 6
Solved: small issues...
Views: 298
Posted By Trekker182
I ended up using TryParse to both store and validate hours.

'store data in variable amd validate it
If Double.TryParse(txtHours.Text, hours) Then
...
Forum: VB.NET Jan 31st, 2009
Replies: 6
Solved: small issues...
Views: 298
Posted By Trekker182
Ok thanks for the help.

:)
Forum: VB.NET Jan 31st, 2009
Replies: 6
Solved: small issues...
Views: 298
Posted By Trekker182
Hi there,

I've checked in the properties for all of the radio buttons and checked is already set to false.

Also, I made sure in the hours text box properties that nothing is already entered...
Forum: VB.NET Jan 31st, 2009
Replies: 6
Solved: small issues...
Views: 298
Posted By Trekker182
Hello everyone!

I'm writing my third program and it's running and the math formula's are working great, however, I just had a few questions.

I'm trying to use hours = CDbl(txtHours.Text) but...
Forum: Shell Scripting Nov 30th, 2008
Replies: 7
Views: 1,069
Posted By Trekker182
Yah, originally I thought that they were both two separate things but now I understand that a process is just that, one process but a job can and often does include multiple processes running...
Forum: Shell Scripting Nov 28th, 2008
Replies: 7
Views: 1,069
Posted By Trekker182
So if you didn't add the & to keep it in the background, then it would just be a normal process, right?

I'm just trying to get a better understanding since my book doesn't really do a good job...
Forum: Shell Scripting Nov 28th, 2008
Replies: 7
Views: 1,069
Posted By Trekker182
Ok thanks.

So when I do commands like grep, awk, who, commands that display immediate results, they are not referred to as jobs but as a single processes that starts and ends with you getting...
Forum: Shell Scripting Nov 28th, 2008
Replies: 7
Views: 1,069
Posted By Trekker182
I'm reading up on jobs and processes in UNIX and was a little confused. A processes is just something that executes and then dies right away, like a grep command issued from the shell, right? It...
Forum: Shell Scripting Nov 28th, 2008
Replies: 3
Solved: umask
Views: 809
Posted By Trekker182
No I got it, thanks!

:)
Forum: Shell Scripting Nov 25th, 2008
Replies: 3
Solved: umask
Views: 809
Posted By Trekker182
I'm a little confused on umasking. The way I was shown to do it manually is to take whatever number the umask is, say 123, turn that into binary for the permissions.

001010011

flip the bits ...
Showing results 1 to 40 of 91

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC