Search Results

Showing results 1 to 40 of 55
Search took 0.01 seconds.
Search: Posts Made By: twomers
Forum: DaniWeb Community Feedback 6 Days Ago
Replies: 42
Views: 1,764
Posted By twomers
>> yet Dani does not charge for membership
Try charging for membership! I dare ya!
Forum: C 25 Days Ago
Replies: 14
Views: 872
Posted By twomers
>> I believe no questions are stupid.
That's naive. And I didn't say the questions was stupid. I said the thread was stupid.

How many times does the same thing have to be said before it's...
Forum: C++ 28 Days Ago
Replies: 9
Views: 403
Posted By twomers
You really should comment your code.
And on a side note check out cin.ignore(); after cin>>'ing.
Forum: C++ 28 Days Ago
Replies: 6
Views: 330
Posted By twomers
Hmm. I dunno.
I was demonstrating how to loop around safe bounds, not how to handle exceptions.
What's the point in throwing a throw if you're not gonna catch just for the throw when I know it's...
Forum: C++ 28 Days Ago
Replies: 6
Views: 330
Posted By twomers
If you want a 2d vector you can do something like:
#include <iostream>
#include <vector>

// These just make the notation used in the program easier
typedef std::vector<float> xVec;
typedef...
Forum: JavaScript / DHTML / AJAX 28 Days Ago
Replies: 1
Solved: jquery/post
Views: 646
Posted By twomers
Hi all.

First off this is my first interaction with jquery (and I hope this is the correct forum to put questions about this in, if not might a mod take the liberity of moving it to the correct...
Forum: C 31 Days Ago
Replies: 14
Views: 872
Posted By twomers
This thread is stupid.
ahamed101 -- save the data in files and fopen them according to the input parameters of the program.
OR do what you were doing with the #include and just live with code...
Forum: C Nov 14th, 2009
Replies: 5
Views: 354
Posted By twomers
You have two options, really. You can either pass in a pointer to char the pointer that you're passing in, or you can return the allocated array, or indeed both, if you really wanted. So...
//......
Forum: C Oct 26th, 2009
Replies: 2
Views: 222
Posted By twomers
It works for me...
Forum: C++ Aug 8th, 2009
Replies: 3
Views: 183
Posted By twomers
Consider what happens if all the numbers in the array are negative. Then the if(a[i]>max) will never return true. There are two ways you can do this. Either set max to INT_MIN or set max to a[0] and...
Forum: C++ Aug 6th, 2009
Replies: 4
Views: 310
Posted By twomers
No.

Everyone thinks the one they use is the best. Do something that makes sense. Nobody will complain too much so long as it's sensible.
Forum: C++ Aug 2nd, 2009
Replies: 1
Views: 278
Posted By twomers
I'd imagine if you were to wait in the for loop for about a second per iteration it'd be different.

The problem is that you're reseeding the rand function so quickly it's being reseeded off the...
Forum: C++ Jul 19th, 2009
Replies: 14
Views: 613
Posted By twomers
You should read about getline here, http://www.cplusplus.com/reference/iostream/istream/getline/

Personally, I'd use std::string-s and getline... #include <string>
#include <fstream>
#include...
Forum: C May 14th, 2009
Replies: 11
Views: 1,386
Posted By twomers
Read here http://www.adrianxw.dk/SoftwareSite/FindFirstFile/FindFirstFile1.html (and part 2 and 3), and in the retrieving loop you could simply have a counter that's returned by the function.
Forum: C++ Nov 22nd, 2008
Replies: 12
Views: 1,372
Posted By twomers
Well, there are two common ways you can represent complex numbers. One is a+ib where i is the root of -1, which is NOT -1. This is called the Cartesian (or rectangular) coordinate system. The second...
Forum: Geeks' Lounge Nov 14th, 2008
Replies: 10
Views: 900
Posted By twomers
There's a joke going around Ireland that goes along these lines... "A police man stops a car that's filled with five guys wearing white robes with hoods. It's late at night and he asks the driver...
Forum: Geeks' Lounge Oct 18th, 2008
Replies: 6
Views: 607
Posted By twomers
I don't know about a name for the shop, but your caption could be: "Hang the wife. Shoot the family. Frame the kids." I saw it on a shop somewhere else and it stuck.
Forum: Geeks' Lounge Oct 11th, 2008
Replies: 50
Views: 4,359
Posted By twomers
>> and I never really shot anyone with a real gun
That vague denial of shooting nobody doesn't fill me with confidence.

>> Take the kids to a range. Let 'em shoot.
I probably don't believe...
Forum: Geeks' Lounge Oct 5th, 2008
Replies: 8
Views: 696
Posted By twomers
Surely the computer's gonna talk l33t so it can't be distinguished from any other 13 year old girl on the net. Of course it's gonna succeed.
Forum: C++ Oct 4th, 2008
Replies: 2
Views: 417
Posted By twomers
Why don't you just do myArray[counterArray] = new unsigned long; in the allocation loop? And don't forget to delete everything too! Considering what you basically want is a 50-element array why don't...
Forum: Geeks' Lounge Sep 27th, 2008
Replies: 19
Views: 1,553
Posted By twomers
Actually my fingers method is pretty stupid. Kinda rules out anonymous ballots if your prints are recorded :/
Forum: Geeks' Lounge May 24th, 2008
Replies: 4
Views: 1,151
Posted By twomers
117.67. Don't think it's a very good test. What it measures what you have watched. What you've read. What you've seen. etc. What does toy story say about how smart you are? In my opinion an IQ test...
Forum: Geeks' Lounge May 8th, 2008
Replies: 20
Views: 2,436
Posted By twomers
Yeah. I seem to remember a headline along the lines of "State of the union undress", which I chuckled at. Peta.... people eating tasty animals, right?
Forum: Geeks' Lounge Apr 30th, 2008
Replies: 1,440
Views: 126,379
Posted By twomers
What exactly is that meant to establish? Are you seriously trying to start anything other than an argument?
Forum: Geeks' Lounge Feb 29th, 2008
Replies: 58
Views: 5,943
Posted By twomers
Maybe I am.
The question is "What stimulates adrenaline?" Excitement.
Then the question becomes "What stimulates excitement?" the answer being a good sport.

How am I a sellout? One of my...
Forum: Geeks' Lounge Feb 28th, 2008
Replies: 58
Views: 5,943
Posted By twomers
>> Define 'American Accent', please.
"Like, oh my Gawd".
Forum: Geeks' Lounge Feb 26th, 2008
Replies: 15
Views: 1,734
Posted By twomers
I haven't really worked on many extravagant projects. Nurtured some pet projects over time... favourite (which doesn't work anymore!), was a program that sent SMS text messages via an online...
Forum: Geeks' Lounge Feb 21st, 2008
Replies: 247
Views: 23,017
Posted By twomers
I read this in a cubicle the other day:
"Heisenberg may or may not have been here."
Forum: Geeks' Lounge Feb 15th, 2008
Replies: 44
Views: 4,328
Posted By twomers
You should really stop starting your threads with "Good day, boys and girls".
Forum: Geeks' Lounge Feb 12th, 2008
Replies: 47
Views: 5,838
Posted By twomers
I always saw you as a romantic at heart!

>> Aw, don't be like that. I'm sure you'll find someone.
Wait... iamthewee... being ... nice!? What?!
Forum: Geeks' Lounge Feb 6th, 2008
Replies: 50
Views: 3,907
Posted By twomers
So what you do is find a really hot girl and ask her out every Tuesday until she says yes. We'll call her Cameron ...
Forum: Geeks' Lounge Feb 3rd, 2008
Replies: 48
Views: 5,637
Posted By twomers
twomers is a play on my surname (or second name if that's what ye say).

>> would love to your story!
Me too.
Forum: C++ Jan 20th, 2008
Replies: 10
Views: 3,869
Posted By twomers
The simplest thing I can think of is to use some kind of pop3 library... I'm sure there are probably some available. ( first hit -- http://www.marshallsoft.com/see_4c.htm No idea on how good it is )...
Forum: Geeks' Lounge Jan 6th, 2008
Replies: 1,560
Views: 209,196
Posted By twomers
I always thought you were a dude, Ene Uran!?

Never trust your instincts.
Forum: Geeks' Lounge Dec 27th, 2007
Replies: 21
Views: 2,209
Posted By twomers
>> I like Salem's too. Very original and thought provoking
Yeah. I've been meaning to borrow that for another programming (embedded device), forum where one uses "void main()". Thought it would be...
Forum: C++ Nov 19th, 2007
Replies: 12
Views: 3,897
Posted By twomers
So it's better to have base-protected-getters than protected variables?
Forum: C++ Nov 16th, 2007
Replies: 5
Views: 3,343
Posted By twomers
If all you want to do is wait for a while you can use sleep...:
#include <windows.h>
int main() {
// Do something
Sleep( 1000 ); // Sleep( miliseconds );
// Do more somethings
return 0;...
Forum: C++ Nov 6th, 2007
Replies: 5
Views: 594
Posted By twomers
Don't forget that you need a ; at the end of your class defn -

class class_name {
// ...
};

In C when you created a struct and didn't define it with a typedef you'd have to say:

struct...
Forum: C Nov 3rd, 2007
Replies: 10
Solved: file handeling
Views: 2,064
Posted By twomers
Did you even look at the link I sent? Gah!

http://www.cplusplus.com/reference/clibrary/cstdio/fgets.html
Forum: C++ Nov 3rd, 2007
Replies: 4
Solved: program help
Views: 758
Posted By twomers
Wow. We give out about people not giving us enough code all the time ... but all the code... one would think it's a good thing...
However, I, for one, am not going to look at any of them. I think...
Showing results 1 to 40 of 55

 


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

©2003 - 2009 DaniWeb® LLC