John A 1,896 Vampirical Lurker Team Colleague

Take a look at line 30; vector::push_back doesn't actually return anything. Hence, your iterator assignment doesn't work.

John A 1,896 Vampirical Lurker Team Colleague

You can't even give us a post123.html#post123 option like you do for new posts in threads? :-(

John A 1,896 Vampirical Lurker Team Colleague

Previously there was a permalink for each post on the post number. Has this functionality been removed, or has it been moved elsewhere?

John A 1,896 Vampirical Lurker Team Colleague

>At the bottom of the second pic, it reads: 967 points total. Which is John's rep.
The "967 points" thing was unchanged by my rep (compare it with the first screenshot), so I really have no clue what that's supposed to be representing.

John A 1,896 Vampirical Lurker Team Colleague

>If you specify an invalid language, it defaults to using the one from the
>current forum. csharp is now invalid in favor of C#. For c++, you can do
>C++ or cpp.
I find this solution extremely distasteful. You can't make those old language tags backwards-compatible? For a long time now, we've been posting (and telling other people) to highlight their code with, for example . While defaulting to the language of the forum might work for most snippets, [B]a lot[/B] of code that's been posted in a different language will now be highlighted with the wrong syntax.

What about shell scripting? Do you just assume it's bash?[code=cplusplus]. While defaulting to the language of the forum might work for most snippets, a lot of code that's been posted in a different language will now be highlighted with the wrong syntax.

What about shell scripting? Do you just assume it's bash?

John A 1,896 Vampirical Lurker Team Colleague

>I was under the impression that rep wasn't being affected if it
>was handed out here. Is there a bug in the new way it works?
Seems that way. Before I gave you reputation on your post, you had 485 points:

Afterwards, you had 508 (notice the extra dot beside your profile):

John A 1,896 Vampirical Lurker Team Colleague

I think that was my fault. Something went haywire when I was moving around posts. It should be fixed now.

John A 1,896 Vampirical Lurker Team Colleague

>Don't know if it's a bug or not, but I'm allowed to edit tags on threads.
I don't think it's a bug. Those tags are supposed to be used to facilitate searching, so users can submit different tags that represent the thread. It could create moderating headaches, however :/

John A 1,896 Vampirical Lurker Team Colleague

You need to disable rep power in the Community Center forums.

John A 1,896 Vampirical Lurker Team Colleague

You're not seeing this?

Parse error: syntax error, unexpected T_CONTINUE in /home/daniweb/httpdocs/forums/usercp.php(923) : eval()'d code on line 5

John A 1,896 Vampirical Lurker Team Colleague

Something perhaps a little more urgent:

Parse error: syntax error, unexpected ')' in /home/daniweb/httpdocs/forums/usercp.php(923) : eval()'d code on line 6

is displayed at the top of http://www.daniweb.com/forums/usercp.php

iamthwee commented: test +23
John A 1,896 Vampirical Lurker Team Colleague

Sorry, we don't support illegal activities on this forum. Either go to the store and buy a DVD of Leopard legally, or find your answer elsewhere.

John A 1,896 Vampirical Lurker Team Colleague

Your program "hangs" here:

scanf(" %.2f", &bal);

Actually, it's not really hanging. It's just waiting for input.

I'd say you're making this more complicated than it needs to be. Use one balance variable. Don't subtract from it until you've verified that the "check" won't bounce.

John A 1,896 Vampirical Lurker Team Colleague

If you have more than one statement within an if/else/else if, you need braces around the block.

if ( newBalance < 0)
{
  printf("***I am sorry, you have bounced this check. $10 will be");
  printf("deducted\n");
  printf("Current balance: %.2f\n", newBalance - 10);
  scanf("%.2f", &newBalance);
}
John A 1,896 Vampirical Lurker Team Colleague

Perhaps take a look at bitset?

Or you can do it "manually":
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1074727388&id=1073086407

Keep in mind that signed/unsigned, big endian/little endian issues could affect your implementation's portability.

John A 1,896 Vampirical Lurker Team Colleague

>Is this array initialization static or dynamic?
It's called a variable-length array, and as far as you're concerned, it's static. However, as has already been noted, the current C++ standard doesn't support variable-length arrays (C99 does though).

>Thus, is that the only difference between the usage of static and dynamic,
>that at the point of declaration you don't need to give size for dynamic arrays?
No. Static memory is usually defined as stack-based memory, whereas dynamic memory is heap-based.

Where this gets tricky is variable-length arrays. Normally variables allocated with new and delete are considered dynamic, and anything else is static. But since variable-length array sizes are not known at runtime, a compiler may choose to allocate the memory in the stack or the heap. This is implementation-specific, for example gcc (under C99 mode) allocates variable-length arrays statically.

John A 1,896 Vampirical Lurker Team Colleague

>we need it dont you see?
Show me ten "mobile development" threads created here within the last week and I'll believe you.

John A 1,896 Vampirical Lurker Team Colleague

New forums aren't created unless there's an observed demand for them in the other existing forums. Just because you have a new fetish with mobile programming doesn't mean we're going to modify our forum structure to cater to your needs. For what it's worth, the current setup works fine. 'K, thx, bye.

John A 1,896 Vampirical Lurker Team Colleague

There are many providers which offer free shell accounts with a limited amount of disk space. A query of "free shell account" on any search engine should turn up what you're looking for.

grvs commented: Helped me in a non-spoon feeding way. Thanks +2
John A 1,896 Vampirical Lurker Team Colleague

Something like http://www.masswerk.at/jsuix/ will offer you a limited number of commands/software. If you want to learn actual Unix though, at the very least download the PuTTY client and get a shell account.

John A 1,896 Vampirical Lurker Team Colleague

It's called spam.

Nick Evan commented: no sh*t +19
jephthah commented: lulz +11
John A 1,896 Vampirical Lurker Team Colleague

How about running VMWare server on Linux -- it's free, and it's significantly more powerful than VMWare Player:
http://pubs.vmware.com/server1/admin/install_server.3.13.html

Plus, it's designed around having multiple clients connect. It comes packaged with client programs that you can use to connect to the main server. I believe you can also clone images within the software (if not, it's pretty simply to copy the images at the OS level too), so there's no need to reinstall an operating system 6 times.

John A 1,896 Vampirical Lurker Team Colleague

I've said this already, and I'll say this again: I still think requiring X number of posts before a user can add a signature would work wonders to stopping this crap.

But for some reason higher-ups disagree with me. *shrugs*

John A 1,896 Vampirical Lurker Team Colleague

That's because you didn't read (or didn't understand) what was said in this link:
http://www.parashift.com/c++-faq-lite/templates.html#faq-35.12

The whole cause of the problem stems from the fact that the compiler needs definitions of the template before it can generate instantiations of it. All you need to do is move all your implementation code (including your function definitions) into your header file.

John A 1,896 Vampirical Lurker Team Colleague

Approximately 400 GB of music. That's like, I dunno, 30,000 songs? Something like that :p

John A 1,896 Vampirical Lurker Team Colleague

>Dani had to tell me about it before I noticed.
Whatta load of bullshit. :P

~s.o.s~ commented: I guess you were always good at coming up with citations. :-) +28
John A 1,896 Vampirical Lurker Team Colleague

>I won't say who gave me my infraction, but I wear it as a badge of honor.
Really? I thought you pouted and left. :p

John A 1,896 Vampirical Lurker Team Colleague

Threads merged. Hopefully I didn't cause more confusion.

John A 1,896 Vampirical Lurker Team Colleague

For some reason the (code=language) tags aren't working today, at least initially. Regular (code) tags are fine though.

John A 1,896 Vampirical Lurker Team Colleague