Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 35 of 35
Search took 0.01 seconds.
Search: Posts Made By: Ben.Dougall
Forum: C# Aug 28th, 2007, 2:16 PM
Replies: 14
Views: 438
Posted By Ben.Dougall
DateTime.now.ToString("G"); // "09/27/2006...

DateTime.now.ToString("G"); // "09/27/2006 14:15:39"

found from http://blogs.msdn.com/kathykam/archive/2006/09/29/.NET-Format-String-102_3A00_-DateTime-Format-String.aspx
Forum: Java Aug 23rd, 2007, 8:32 PM
Replies: 11
Views: 439
Posted By Ben.Dougall
I agree, this much help on an extremely basic...

I agree, this much help on an extremely basic part of the OS is retarded. BTW... screenshot is prefectly fine, maximize your window ( if you know how )

I give up on helping you.
Forum: Java Aug 23rd, 2007, 8:17 AM
Replies: 11
Views: 439
Posted By Ben.Dougall
Its only two commands in total. Look at the...

Its only two commands in total.

Look at the screenie: http://img507.imageshack.us/img507/4133/cdcommandszb9.jpg

Like i said... if the folder exists... the command should work no program.
Forum: Java Aug 22nd, 2007, 6:47 PM
Replies: 11
Views: 439
Posted By Ben.Dougall
If the folder JAVA exists within the C:\, cd JAVA...

If the folder JAVA exists within the C:\, cd JAVA works... try going "C:" and then " cd .. " until the prompt says C:\>. the command cd JAVA will go to that directory.

like i said, if the folder...
Forum: Visual Basic Aug 22nd, 2007, 1:39 PM
Replies: 12
Views: 581
Posted By Ben.Dougall
Its just like do you need to know how to read to...

Its just like do you need to know how to read to talk? not necessarily, but its highly recommended. Same goes with programming, chances are, if you presue programming, but don't need to use math in...
Forum: Java Aug 22nd, 2007, 1:36 PM
Replies: 11
Views: 439
Posted By Ben.Dougall
Well if java and javac commands work, you sent up...

Well if java and javac commands work, you sent up autoexec.bat correctly, unless you installed the entrie SDK in whatever directory you ran those commands from.

According to your post, the folder...
Forum: Visual Basic .NET Aug 21st, 2007, 3:29 PM
Replies: 1
Views: 233
Posted By Ben.Dougall
I have no idea what your code is doing, but from...

I have no idea what your code is doing, but from the above query string... the name is NEVER going to be all those things.

Select QID from [Sheet1$] WHERE [name] = 'KICHAK, DENNIS' or [Name] =...
Forum: C# Aug 2nd, 2007, 1:30 PM
Replies: 10
Views: 186
Posted By Ben.Dougall
will if you had it working in console, it will...

will if you had it working in console, it will work in WinApp format, you just have to learn who to store information in a Control, such as Textbox or ListView.... just look up samples in google, or...
Forum: Community Introductions Jul 31st, 2007, 11:54 AM
Replies: 4
Views: 156
Posted By Ben.Dougall
i'm not exactly a long time member... but this is...

i'm not exactly a long time member... but this is definitely not the right spot for this.
Forum: Java Jul 30th, 2007, 3:33 PM
Replies: 11
Views: 443
Posted By Ben.Dougall
I never used Netbeans... but i hear the GUI...

I never used Netbeans... but i hear the GUI editor is better in it thamn elcipse ( i only did text based stuff in eclipse )


I coded the UI by hand when i used java within JCreator, but i like...
Forum: C++ Jul 20th, 2007, 1:39 PM
Replies: 10
Views: 256
Posted By Ben.Dougall
never thought about that when using atoi, I'll...

never thought about that when using atoi, I'll have to keep that in mind. My C knowledge is very minimal, seeing as this is posted in the C++ forum, i thought i offer a C++ oriented solution.

thanks...
Forum: C++ Jul 20th, 2007, 1:30 PM
Replies: 10
Views: 256
Posted By Ben.Dougall
are vectors out of the question for this program?...

are vectors out of the question for this program? push_back( atoi( token ) ) would work.
Forum: Java Jul 16th, 2007, 10:41 AM
Replies: 1
Views: 117
Posted By Ben.Dougall
Java's site is a pretty good reference for...

Java's site is a pretty good reference for building GUI applications using Swing. I learned how to do it through Java's site and my high school...
Forum: Visual Basic .NET Jul 15th, 2007, 6:07 PM
Replies: 10
Views: 406
Posted By Ben.Dougall
never seen/heard of said control... must look...

never seen/heard of said control... must look into this. but nonetheless, always rename the controls... readability is always good to have no matter the project.
Forum: C++ Jul 12th, 2007, 9:44 PM
Replies: 4
Views: 147
Posted By Ben.Dougall
I'm starting to port everything into seperate...

I'm starting to port everything into seperate files ( aka headers = class declarations/method prototypes, cpp's holding method bodies )

Now its the issue of getting a linker error when i try to make...
Forum: C++ Jul 12th, 2007, 8:04 PM
Replies: 4
Views: 147
Posted By Ben.Dougall
Issues with creating Library

I'm currently making a library for a bunch of general tasks. I currently have about 6 classes to make into a library. Up until now, i have been going strictly .hpp files, with all the content in a...
Forum: Coder's Corner Lounge Jul 10th, 2007, 3:28 PM
Replies: 7
Views: 115
Posted By Ben.Dougall
striaght from slackware's site:

striaght from slackware's site:
Forum: HTML / XHTML / CSS Jul 10th, 2007, 1:56 PM
Replies: 15
Views: 362
Posted By Ben.Dougall
Ubuntuguide is an amazing site when your new the...

Ubuntuguide is an amazing site when your new the Linux, and starting out in Ubuntu.
Forum: C++ Jul 10th, 2007, 10:43 AM
Replies: 15
Views: 285
Posted By Ben.Dougall
This thread ...

This thread (http://www.programmingforums.org/forum/f15-cpp/t13482-templated-random-number-generator.html)may help you with the random numbers.

For the picking a random number, just do what i dod...
Forum: C++ Jul 10th, 2007, 7:52 AM
Replies: 15
Views: 285
Posted By Ben.Dougall
put either std::cin.get() or system( "pause" )...

put either std::cin.get() or system( "pause" ) after the cout for the number to be displayed.


std::cout << numbers[choice - 1] << std::endl;
system ("pause");


Like i said, i did this at work...
Forum: C++ Jul 9th, 2007, 10:33 AM
Replies: 15
Views: 285
Posted By Ben.Dougall
I quickly made a solution for the first problem,...

I quickly made a solution for the first problem, it should compile from what i can tell, I'm at work, and don't have a C++ compiler handy. There is no error checking in this at all, and the quality...
Forum: C++ Jul 9th, 2007, 7:45 AM
Replies: 15
Views: 285
Posted By Ben.Dougall
What is with the random cin.get()? also, I...

What is with the random cin.get()?

also,
I would seed the generator with time, seeing as the seed is constant, the generator is not truly random.
srand( static_cast<int>( time(0) )

for casting, I...
Forum: Show Off Your Open Source Projects Jul 8th, 2007, 8:10 PM
Replies: 2
Views: 140
Posted By Ben.Dougall
good point, I'll have to figure out how to do a...

good point, I'll have to figure out how to do a directory like listing on the registry. The reason I made it is so I can start port-ing user settings to the registry instead of a XML or txt file...
Forum: Show Off Your Open Source Projects Jul 8th, 2007, 6:23 PM
Replies: 2
Views: 140
Posted By Ben.Dougall
Registry Key Creator

Heres my first little app since the beginning of my summer semester of co-op. It is a simple Registry Key Creator to make a bunch of keys in the registry, without the painful right-click -> new...
Forum: HTML / XHTML / CSS Jul 8th, 2007, 5:49 PM
Replies: 15
Views: 362
Posted By Ben.Dougall
I favour ubuntu personally, as it's package...

I favour ubuntu personally, as it's package manager will easily set you up for Apache ( great web server) and even php and mysql.
Forum: Visual Basic .NET Jul 6th, 2007, 10:49 PM
Replies: 6
Views: 222
Posted By Ben.Dougall
Very simple example to show what i think you...

Very simple example to show what i think you want. Make a form, with a label, and two buttons, IF you click the first button starts the timer ( <timername>.start() ), second button ( <timername.stop>...
Forum: Community Introductions Jul 6th, 2007, 7:51 PM
Replies: 4
Views: 121
Posted By Ben.Dougall
Offical Hello to the forums.

I posted a brief intro for my question thread, but saw this forum, and decided to post the intro in the right section.

So hi all, I'm currently in 3rd year college at Fanshawe College, London...
Forum: C++ Jul 6th, 2007, 7:42 PM
Replies: 5
Views: 217
Posted By Ben.Dougall
True, I had that in to eliminate a warning I got...

True, I had that in to eliminate a warning I got with a former formula. One of my professors docked 30% if a compile warning occured. Removed, and no warning. Thanks for your eyes on that one.

I...
Forum: C++ Jul 6th, 2007, 7:09 PM
Replies: 5
Views: 217
Posted By Ben.Dougall
static_cast<T>(low + rand() / ( RAND_MAX / ( high...

static_cast<T>(low + rand() / ( RAND_MAX / ( high - low ) + 1 ));

Thank you Lectric, the first link you gave me seems to have done the job.
Forum: C++ Jul 6th, 2007, 10:13 AM
Replies: 5
Views: 217
Posted By Ben.Dougall
Thanks for the info, those articles are quite...

Thanks for the info, those articles are quite useful. I'll give it a try when I get some time.

Thanks again.
Forum: Java Jul 5th, 2007, 7:45 PM
Replies: 15
Views: 309
Posted By Ben.Dougall
A quick fix would be add one or two spaces after...

A quick fix would be add one or two spaces after the second \t... You could use if's and do checks to make it better, but for a minor program, I would use the quick fix.
Forum: Java Jul 5th, 2007, 7:13 PM
Replies: 15
Views: 309
Posted By Ben.Dougall
Heres a quick C++ version of your code as i don;t...

Heres a quick C++ version of your code as i don;t have a Java SDK installed. The \t character can be used in either language.


#include <iostream>

int Square ( int &num )
{
return num * num;
}
Forum: C++ Jul 5th, 2007, 7:03 PM
Replies: 5
Views: 217
Posted By Ben.Dougall
Templated Random Number Generator

Hi guys, new to the forum, plan to contribute here a lot as i get bored at work. Quick question on a Random Generator.

I'm making a library for common tasks in C++ ( random, XML Reader, HTML...
Forum: Java Jul 5th, 2007, 6:55 PM
Replies: 15
Views: 309
Posted By Ben.Dougall
because of the space seperators... i would use a...

because of the space seperators... i would use a \t instead of " ". Once the squares hit 2 digits, it makes another space in the line of output.

Heres what could pose a better...
Forum: C++ Jul 5th, 2007, 9:14 AM
Replies: 9
Views: 232
Posted By Ben.Dougall
From what i notice, It doesn't read the...

From what i notice, It doesn't read the clockTypeImp.cpp file ( you never tell it to look at it )

For seperate class files: one .h/.hpp and .cpp with the same name. Example Clock.hpp &...
Showing results 1 to 35 of 35

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC