Search Results

Showing results 1 to 40 of 1000
Search took 0.09 seconds.
Search: Posts Made By: twomers
Forum: JavaScript / DHTML / AJAX 38 Minutes Ago
Replies: 0
Views: 12
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++ 1 Day Ago
Replies: 12
Views: 149
Posted By twomers
It might have something to do with while (nullexists = true). Do you mean ==?
Forum: C 1 Day Ago
Replies: 5
Views: 114
Posted By twomers
You misunderstand. It's -- static ExternalInputs_test2_2 test2_2_U; For non-pointers you use the . operator. Not ->. Try replacing -> with .
Forum: C++ 1 Day Ago
Replies: 7
Views: 139
Posted By twomers
Uh.... what?
Forum: C 2 Days Ago
Replies: 11
Views: 229
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++ 2 Days Ago
Replies: 6
Views: 138
Posted By twomers
cin.ignore() I think.
Forum: C 2 Days Ago
Replies: 11
Views: 229
Posted By twomers
Actually.
The #include thing only works on compile time. Not run time. So you can't strcat the value of the #include.
Also, your first example mightn't work the way you think.
Forum: C++ 5 Days Ago
Replies: 11
Views: 266
Posted By twomers
>> sizeof( any pointer ) is always the same

>> That happens to be true for the garden variety PC of today, but it is not true as a generic statement.

Also, on the same system fat pointers are...
Forum: C 6 Days Ago
Replies: 5
Views: 221
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++ 6 Days Ago
Replies: 6
Views: 168
Posted By twomers
You can only use that if you're assigning when defining, i.e.int thing[] = { 4, 8, 15, 16, 23, 42 };If you're not assigning you must use a constant size.

Alternatives.
Use pointers and...
Forum: C++ 21 Days Ago
Replies: 2
Views: 389
Posted By twomers
Looks good.
Have you considered negative bases, for fullness?
Forum: C 21 Days Ago
Replies: 3
Solved: UART problem!
Views: 286
Posted By twomers
Does the second program have to do the same thing as the first but must be written differently?
You could always do a switch on readValue instead of the if tree.
Forum: C++ 22 Days Ago
Replies: 3
Views: 260
Posted By twomers
You're passing in a const map, so you've gotta use a const_iterator:
map<string,unsigned>::const_iterator pos;
should work.

To explain. A const_iterator doesn't allow you modify anything in the...
Forum: C++ 23 Days Ago
Replies: 8
Views: 218
Posted By twomers
And what errors are you getting?
Forum: C 23 Days Ago
Replies: 3
Views: 207
Posted By twomers
I just code-tagged your code. Please try to do it in future.
Lemms see now...
Forum: C++ 23 Days Ago
Replies: 6
Views: 257
Posted By twomers
Well... were you to decompile to hex and then recompile from modified hex you might be able to squander something... don't know if it'd work, though. Especially if the program depends on libraries...
Forum: C++ 23 Days Ago
Replies: 6
Views: 257
Posted By twomers
Well... were you to decompile to hex and then recompile from modified hex you might be able to squander something... don't know if it'd work, though. Especially if the program depends on libraries...
Forum: C++ 23 Days Ago
Replies: 3
Views: 260
Posted By twomers
I assume it's talking about the assignment of pos=wordlist.begin(). If so you'd imagine that wordlist isn't of type map<string,unsigned> from what the error says.

Can you post more code so we can...
Forum: C++ 23 Days Ago
Replies: 1
Views: 112
Posted By twomers
Hmm. Can you show us your file?
Don't forget to delete []floatArray;
Forum: C++ 23 Days Ago
Replies: 10
Code Snippet: Text - Based RPG V2
Views: 558
Posted By twomers
Not exactly a snippet ;)
Forum: C 23 Days Ago
Replies: 1
Views: 130
Posted By twomers
Colour text: http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048382857&id=1043284392
Picture (though this mightn't work):...
Forum: C 23 Days Ago
Replies: 6
Views: 308
Posted By twomers
I'm no assembly guru, but you might be able to find something were you to decompile it.
Forum: C 23 Days Ago
Replies: 3
Views: 207
Posted By twomers
Show us some code I suppose.
You should know how deep each element is, and you can use the debth to see how many spaces are needed
I think it'd make sense to print the data to a string, I'd say.
Forum: C 25 Days Ago
Replies: 2
Views: 185
Posted By twomers
It works for me...
Forum: C Oct 16th, 2009
Replies: 4
Views: 260
Posted By twomers
Most things can be divided. Do you mean is divided with no remainder?
The modulus operator is your friend here.
for ( i=0; i<10; i++ ) {
printf( "%d mod 4 = ", i, i%4 );
}It returns 0 if no...
Forum: C++ Oct 16th, 2009
Replies: 3
Views: 414
Posted By twomers
All that changes with iterators that aren't 'int's is the template argument. http://www.cplusplus.com/reference/stl/vector/erase/
std::vector<randomType> myVec;
// Fill the vector with something...
Forum: C Oct 16th, 2009
Replies: 6
Views: 310
Posted By twomers
I doubt you'll get any code for free here. So here's an outline of how you might go about it.
Grab the input from the user and compare strcmp() it against references, i.e. "January", etc (might...
Forum: C++ Oct 15th, 2009
Replies: 10
Views: 290
Posted By twomers
As I said in post #4 :rolleyes:
Forum: C Oct 14th, 2009
Replies: 10
Views: 431
Posted By twomers
Does that work?
I think the limits of the loops need work, and that you need to consider the input=1 case, but it looks fine. ANd yer missing a ; in places. And you don't need the else. And you...
Forum: C Oct 14th, 2009
Replies: 10
Views: 431
Posted By twomers
Sorta. But you don't want to nest the loops. printf() after each for loop.
for ( counting up )
printf();

for ( counting down )
printf()
The second loop will be going from the upper limit to...
Forum: C++ Oct 14th, 2009
Replies: 10
Views: 290
Posted By twomers
Try it with VS '08 so. Same code. Though get rid of the .h from the include files.
Forum: C Oct 14th, 2009
Replies: 10
Views: 431
Posted By twomers
Ok. Consider using two for loops. One to count up to a number and one to count down. Print the looping variable.
Forum: C Oct 14th, 2009
Replies: 4
Views: 324
Posted By twomers
That's curious.
Try doing \r\n instead. Not sure if that'll help, to be honest, but worth a try.
Can you get a hex editor and look at the hex of the file and see if the \n character is there? It...
Forum: C Oct 14th, 2009
Replies: 10
Views: 431
Posted By twomers
Well, what to you have so far? Code wise?
Forum: C++ Oct 14th, 2009
Replies: 10
Views: 290
Posted By twomers
You're probably using an old compiler. Might do good to update it.
Try putting a cin.get() and cin.ignore() before the return 0 in main(). Does the console window disappear, or does nothing turn up?
Forum: C Oct 14th, 2009
Replies: 1
Views: 219
Posted By twomers
http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx
Forum: C Oct 14th, 2009
Replies: 10
Views: 431
Posted By twomers
ANd the problem is?
Forum: C++ Oct 14th, 2009
Replies: 10
Views: 290
Posted By twomers
Code?
Forum: C++ Aug 13th, 2009
Replies: 2
Views: 202
Posted By twomers
>> My question is how can I use a member function of C at D and at D's child classes?
I don't understand that sentence. Can you elaborate or show what you mean with a simple example that shows what...
Forum: C Aug 12th, 2009
Replies: 9
Views: 329
Posted By twomers
What do you need help with? Specifically?
Showing results 1 to 40 of 1000

 


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

©2003 - 2009 DaniWeb® LLC