Forum: C++ 1 Hour Ago |
| Replies: 1 Views: 15 Re: C++ / MFC Date Validation you could try the parsedate() member of COleDateTime:
if (!COleDateTime::ParseDateTime("12/11/2008")
{
// That's not a date bucko!
}
I don't have MFC anymore, so I can't test it, but I'm sure... |
Forum: DaniWeb Community Feedback 5 Hours Ago |
| Replies: 20 Views: 141 |
Forum: DaniWeb Community Feedback 6 Hours Ago |
| Replies: 20 Views: 141 Re: Me being proactive Great. Now I have to plow through even more threads a day.. You show no mercy... ;)
Community center sounds a bit futuristic compared to Coffee house. In my imagination it's a big white (oval) room... |
Forum: Geeks' Lounge 6 Hours Ago |
| Replies: 0 Views: 19 Alternative for STFW This site may come in very handy when dealing with lazy newbies:
http://letmegooglethatforyou.com/
Example:
Click this (http://letmegooglethatforyou.com/?q=search+algorithm)link and see |
Forum: DaniWeb Community Feedback 6 Hours Ago |
| Replies: 20 Views: 141 Re: Me being proactive Found another bad too:
- where did the software-dev lounge go?
I'm on IE7 now. FF3 tells me that the host is unreachable... Never saw that before...
[edit] nevermind, problem miraculously... |
Forum: DaniWeb Community Feedback 6 Hours Ago |
| Replies: 20 Views: 141 Re: Me being proactive Yeah, it could very well be a glitch on my side, but I thought I should mention it.
It hangs on : loading simple.thumbshots.com
and found another good:
Enormous searchbox on top of everything. I'm... |
Forum: DaniWeb Community Feedback 7 Hours Ago |
| Replies: 20 Views: 141 Re: Me being proactive the good:
- The BIG quick reply box
the bad:
- where's the subscription spy??
the ugly:
- see attachment. Rounded edges script failed
- you should look at the site with 1024x768, a lot of thing... |
Forum: C 23 Hours Ago |
| Replies: 5 Views: 83 |
Forum: C 23 Hours Ago |
| Replies: 7 Views: 120 Re: HELP download my attachment and store it in c:\
then run this:
int main()
{
system("mspaint c:\\mm.jpg");
return 0;
}
(only works on windows) |
Forum: C++ 23 Hours Ago |
| Replies: 6 Views: 72 Re: Hey all, a little help needed it isn't "end1" but "endl" (with an "el" not a "one") :)
The endl is short for "endline" and makes the console jump to a new line.
cout << "Hello world.\n"; would have the same effect.
For future... |
Forum: C++ 23 Hours Ago |
| Replies: 3 Views: 56 Re: Discrete solution help! I'm not sure if I understand the question correctly, but if you want a bunch of numbers which you can choose from, you could use vectors.
Example:
vector<int> diameters;
/* load a few bogus... |
Forum: DaniWeb Community Feedback 1 Day Ago |
| Replies: 3 Views: 71 |
Forum: C++ 1 Day Ago |
| Replies: 4 Views: 56 |
Forum: C++ 1 Day Ago |
| Replies: 1 Views: 27 |
Forum: IT Professionals' Lounge 1 Day Ago |
| Replies: 3 Views: 65 |
Forum: IT Professionals' Lounge 2 Days Ago |
| Replies: 3 Views: 65 |
Forum: C 2 Days Ago |
| Replies: 3 Views: 67 Re: mixed up gotoxy() is a function developed by Borland for Turbo C. It was never standard C to begin with, so to get your program back to standards and up to date, try using: SetConsoleCursorPosition()... |
Forum: C 2 Days Ago |
| Replies: 3 Views: 62 |
Forum: Game Development 2 Days Ago |
| Replies: 8 Views: 528 Re: Need help starting Game programming for dummies doesn't exist. That's like saaying : "being really smart: for stupid people" .
FIRST learn to program in the language of your choice (Python is a nice language to start... |
Forum: DaniWeb Community Feedback 2 Days Ago |
| Replies: 11 Views: 199 |
Forum: C 2 Days Ago |
| Replies: 1 Views: 42 |
Forum: Computer Science and Software Design 2 Days Ago |
| Replies: 8 Views: 165 Re: flowchart You're almost there.
In the attachment is a chart I made. (in paint, I don't have visio :) )
Try to finds the differences between yours and mine and try to find out why I made the choices I did.... |
Forum: C++ 2 Days Ago |
| Replies: 4 Views: 70 |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 71 Re: Problems with Arrays Aahh.. a double thread. I answered this already here (http://www.daniweb.com/forums/thread158225.html), which kinda makes me look stupid since vmanes already answered it.. |
Forum: C++ 2 Days Ago |
| Replies: 3 Views: 75 Re: setting up an array If you're using chars, then use single quotes instead of double. Double quotes are for strings (more then 1 char).
So it would look like this:
char Letters[26] = {'a','b','c', /*etc etc etc*/ ... |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 66 Re: Class Inheritance Examples? google for xxxx tutorial:
polymorphism (http://www.cplusplus.com/doc/tutorial/polymorphism.html)
inheritance (http://www.cplusplus.com/doc/tutorial/inheritance.html) |
Forum: C++ 2 Days Ago |
| Replies: 10 Views: 136 |
Forum: C++ 3 Days Ago |
| Replies: 6 Views: 120 Re: Strings in C++ If transactionInfo is a std::string, you could do something like:
transactionInfo = static_cast<std::string>(date) + " - "+ _strtime( time ) + "New Customer - 1001 - Olly";
As you can see time is... |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 14 Views: 348 Re: Laid off :( Completely off-topic, but Dave:
I really think that Sarah won't become Obama's Vice president, so perhaps a change of avatar might be in order ;) |
Forum: C 3 Days Ago |
| Replies: 6 Views: 129 Re: C program And now try compiling this on something that isn't outdated and non-standard and see if it compiles....
Furthermore, even dribble like this should be placed in code tags... |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 100 Re: USB handling using API in C++ Normally I wouldn't link to other forums, but you might have a better change at getting an answer here:
Altera dev-kit forum (http://www.alteraforum.com/forum/forumdisplay.php?f=3)
Altera tool/device... |
Forum: IT Professionals' Lounge 3 Days Ago |
| Replies: 2 Views: 68 Re: feasibility study What should this "system" do? Alarm, make coffee, check students for absence, play Rick Astley?
some steps:
Get a detailed description on what the customer wants
Gather info on what systems are... |
Forum: IT Professionals' Lounge 3 Days Ago |
| Replies: 3 Views: 73 Re: Application for SAP Yes it is. But my experience with these companies is that they do not like it when 3rd party-software and hardware is connected into their systems. You would need to know how and where the data is... |
Forum: IT Professionals' Lounge 3 Days Ago |
| Replies: 3 Views: 73 Re: Application for SAP Probably.
What's a SAP? What programming skills do you have? What do you know about communication protocols? |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 100 Re: USB handling using API in C++ The Altera DE3 board came with a CD right? My bet is that is has a sample program usb-host/device. All Dev-boards I've ever worked did anyway.
yup. I was right... |
Forum: C++ 3 Days Ago |
| Replies: 2 Views: 56 |
Forum: C 3 Days Ago |
| Replies: 3 Views: 110 Re: Learning C Language How about the very first thread in this forum: Starting C (http://www.daniweb.com/forums/thread50370.html) ? |
Forum: Computer Science and Software Design 3 Days Ago |
| Replies: 8 Views: 165 Re: flowchart No it won't. If you would just draw out a table on paper with "count", "factoral" and the product of both, you could have easily found out that it counts from 100-10 .
Besides, why use an addtional... |
Forum: C++ 3 Days Ago |
| Replies: 2 Views: 107 Re: stray '\150' in program Wow, that was a problem I never encoutered before, but I solved it :)
This piece of code
else if( y1 < -((windowHeight)–rsize+ystep) )
y1 = -windowHeight + rsize -1;
should be replaced... |
Forum: C++ 3 Days Ago |
| Replies: 3 Views: 78 |