MosaicFuneral 812 Nearly a Posting Virtuoso

You're confusing the lax C++string container method with the C way.

http://www.thinkage.ca/english/gcos/expl/c/lib/strcmp.html
http://www.cplusplus.com/reference/string/operators/

edit:
Wow, everyone replied at the same time.

MosaicFuneral 812 Nearly a Posting Virtuoso

I'm not sure what Google displays in the Philippines, but this is what I got instantly:

scanf:
http://www.cplusplus.com/reference/clibrary/cstdio/scanf/

Turbo-C graphics:
http://electrosofts.com/cgraphics/

MosaicFuneral 812 Nearly a Posting Virtuoso

Use getchar().

for(;;) {
use getchar()
if (the key is what you wanted) then break;
}
MosaicFuneral 812 Nearly a Posting Virtuoso

I had a rather hard time following what you were saying. Try posting some code(pseudo even).

What I got was: You have a char**, you fill it with input, after reaches its limits you begin to overwrite the initial positions, but somehow you have infinite limits and no way of tracking something and something.... I can't decipher.

MosaicFuneral 812 Nearly a Posting Virtuoso

yes, I have heard this before...but getchar(); NEVER works for me! It always just skips right over it, as if getchar(); is not even in my code.

What compiler might you be using?

MosaicFuneral 812 Nearly a Posting Virtuoso

Cout, cin.get() a char, investigate the contents of the char.

http://www.cplusplus.com/doc/tutorial/basic_io/

edit: @Myrtle, just cin.get() or even getchar() instead of the decrepit getch().

MosaicFuneral 812 Nearly a Posting Virtuoso

Steel-toe, cargos, t-shirt, Leatherman, and a beard. You know, classic nerdage attire that will land you any tech job.

I never wear t-shirts. T-shirts suck IMO. Naked chests ftw!

So button-up shirts that are half open, neckchain, heavy cologne, greased back hair; is that your style? :icon_lol:

Nick Evan commented: :) +0
MosaicFuneral 812 Nearly a Posting Virtuoso

rule 1: never learn code out your head

Wtf?

MosaicFuneral 812 Nearly a Posting Virtuoso

Just place the template outside the class: http://www.cplusplus.com/doc/tutorial/templates/

MosaicFuneral 812 Nearly a Posting Virtuoso

Corned beef, cabbage, potatoes; all in a stew.

MosaicFuneral 812 Nearly a Posting Virtuoso

That's some hard to follow code.

So pretty much what you is this:

cin >> number;
if(number & 1) number /= 2;
else           number  = (number * 3)+1;
if(number < 1) cout << "error message";

But in a loop that at the end prints the index value?

You may need to start over, and try it in a concise format.

MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

SomeClass::*funcptr doesn't exist, its not a SomeClass member. I believe it would be something more like:

typedef int (*fp)(int, char*);
class MyClass{
public:
    fp *funcptr;
}

I cannot confirm that is correct, I need to oil up the rusting gears in my head. I generally don't use pointer functions unless I'm using a raw code catalyst of sorts. I'm sure someone will sort this out.

MosaicFuneral 812 Nearly a Posting Virtuoso

You never declare 'funcptr', you just have it randomly appearing in main() referencing something. It also can't be declared in main() and then used as a type in your outside defined class.

MosaicFuneral 812 Nearly a Posting Virtuoso

I believe that's just factorial...and insanity. http://www.cppreference.com/wiki/complexity

Your compiler would also probably just simplify that as:

printf("Inner statement executed 160000000 times\n");

PS: We have an edit button, you don't have to make a second thread.

MosaicFuneral 812 Nearly a Posting Virtuoso

Are you trying to declare a SomeClass member from inside of MyClass?

MosaicFuneral 812 Nearly a Posting Virtuoso

You don't need system("pause"); , just use cin.get(); Take your declaration out of the loop. You don't even need to set it zero if you're just going to have the user give the value afterwards. Can the exit number be a zero too? If so then just have the 'if' statement as '=< 0'

Overall, I'm not seeing anything that would dramatically shootup the processing time. When C++ prompts a user, it generally takes up little(or no) time while it waits. What does TaskManager say while it's running?

MosaicFuneral 812 Nearly a Posting Virtuoso

Obviously as you said:

loop getchar() till (key == '\n')
    if is_alpha()
      if is_upper_case()
        increase array_counter[key - uppercase_A_as_an_int];
      else
        ...

Write it out as pseudo-code then put it into C format.

MosaicFuneral 812 Nearly a Posting Virtuoso

When you have a slide ruler in your pocket. Which I have.

"You have/are/using/used technology that's obsolete," doesn't signify your age; it is a fallacy.

MosaicFuneral 812 Nearly a Posting Virtuoso

Sequential cases and macros are nice and clean with enums: http://gnuvince.wordpress.com/2009/09/08/enums-in-c/

MosaicFuneral 812 Nearly a Posting Virtuoso

Just a minor thing, but you could save time declaring like variables:

static double one   = 234.34,
              two   = 34520.0303,
              three = 333.33,
              ...;
MosaicFuneral 812 Nearly a Posting Virtuoso

You can upload the file here, as long as you own it(not someone else's property). No one's going to risk it downloading things offsite.

Anyway: http://en.wikipedia.org/wiki/Primitive_data_type#Integer_numbers

You may want to learn a simpler language first.

MosaicFuneral 812 Nearly a Posting Virtuoso

Mayoi Neko Overrun sounds something between Let's Meow Meow! and Love Hina.

MosaicFuneral 812 Nearly a Posting Virtuoso

when you remember the 75 rpm music records -- or any records at all (I have not seen any for several years now).

Actually, I see those all the time. I was just playing some records I had bought, the other day.

MosaicFuneral 812 Nearly a Posting Virtuoso

More likely, if you actually willingly listened to Ummagumma, you probably don't remember the whole year or decade.

MosaicFuneral 812 Nearly a Posting Virtuoso

After your post, twenty people probably just went out to buy some spools of Velostat and large baggies of multicolored pills.

MosaicFuneral 812 Nearly a Posting Virtuoso

"TV's don't have knobs".

I barely had to get rid of mine that I use to play games on(got a 55" HD for that now), under the stairwell. You should find one of them and an antenna; then hide your newer televisions away, so when they come over they're forced to deal with it. Also hide any computers.

MosaicFuneral 812 Nearly a Posting Virtuoso

I assumed we were talking Desktop Computer Games.

Other than a mouse and keyboard, what's the difference anymore?

If not, then there is only one answer, and that answer is Final Fantasy VII :)

I've been looking for that game for awhile. Had a chance to pick it up along time ago cheap, but had no cash and now they're hard to find or more cash than I carry. Sort of how I want to see how the Golden Sun story continues, but the second part is hard to find or as much as $114 for a mint copy(not like there's any point to a mint edition).

MosaicFuneral 812 Nearly a Posting Virtuoso

Pokemon Gold. Sadly, the internal game-cartridge battery died and I'm to lazy to replace it.

Unless we're talking strictly desktop x86 games here. Which it also runs on if you have the ROM and an emulator.

MosaicFuneral 812 Nearly a Posting Virtuoso

I don't have a job, but I work with an axe and that's rewarding enough.

MosaicFuneral 812 Nearly a Posting Virtuoso

Audiophiles are insane. Don't listen to them. They'll pay tens-of-thousands on equipment to achieve something they could have built with a bin full of rubbish. Of course, if they're the technical sort; then they'll have to spend twelve dollars a resistor on some sort of back-order of antique ones, all because they once read an obscure article on resistor noise and it said they had to only use this one type of resistor to solve their problem.

I love hearing things with great tone and clarity, but replacing all my copper wires with fancy NASA-grade shielded goldcore ones, isn't worth it.

MosaicFuneral 812 Nearly a Posting Virtuoso

Yes, we get it. Your trying to be a troll. You're not doing a particular good job if you don't mind me saying.

I'm not even trying, this is just seriously old. Do we need a new thread every time someone achieves x or y amount of post? We already have a several-dozen others.

MosaicFuneral 812 Nearly a Posting Virtuoso

Yawn.

MosaicFuneral 812 Nearly a Posting Virtuoso

I eat raw bacon. Or were you expecting me to tell you where my marijuana and poppy fields are? Perhaps where I buried all the gold bullion?

MosaicFuneral 812 Nearly a Posting Virtuoso
MosaicFuneral 812 Nearly a Posting Virtuoso

Get a Ford pickup from the '70s and you'll always have parts, and a decent one might only run you a couple hundred. They do require maintenance and seeing how you're asking an IT community about this - it might not be the road for you.

When it comes to CL you need to have someone who knows cars with you. Try to find evidence that suggest that the individual actually owned the car the, such as enticing them into a conversation about the car in question. Nothing like buying a hot car and facing jail time.

MosaicFuneral 812 Nearly a Posting Virtuoso

Except for the pink Net-book all of our Computer Engineers look like that. :)

Including the sparkly leggings? Damn, that sounds like you work with alot of nerds.

MosaicFuneral 812 Nearly a Posting Virtuoso

Reputation is just like it's real-world counterpart. It's all about what other members of the community at large think of you. Members with more reputation themselves can affect other people's reputation by more. The reputation system also comes armed with a way to comment on why you gave the reputation you did.

That concept of "reputation" sounds like a mixture of highschool-freshman gibberish and Big Brother style reality TV.

But it works.

MosaicFuneral 812 Nearly a Posting Virtuoso

I am flying from Australia to the San Francisco

Well better to head towards San Diego and check out the zoo than stay in stuffy old Frisco.

Real Player

http://maps.google.com/maps?q=2601+Elliott+Avenue+Seattle

Nothing particularly interesting about that building, but the area has alot of fun places visit.

MosaicFuneral 812 Nearly a Posting Virtuoso

joshSCH
Was an awesome godlike being, whom spread happiness throughout the binary planes of the internet. Sadly, he was cut-down in his prime by "The Man".

Just thought I'd correct that.

MosaicFuneral 812 Nearly a Posting Virtuoso

The honest straight politician is on the same imaginary level as the Easter Bunny.

The Easter Bunny is just a pooka who leaves eggs hidden in your yard, in hopes of them spoiling and you never being able to find them. Here he is in a 1950 documentary: http://en.wikipedia.org/wiki/Harvey_%28film%29

;)

MosaicFuneral 812 Nearly a Posting Virtuoso

>Even though the ads all ask for top talent
Ads ask for pipe dreams. Don't judge yourself against the list of buzzwords than some HR grunt pulled out of their grab bag of cheap adjectives. If I compare myself against an ad, I'd be woefully underqualified for my own job. But my employer is in no hurry to replace me. ;)

So you don't have to have a Master in CS and Mathmatics with 12y xp as a Sr. Core System Analyst, Pro PHP, was on the dev-team for the .NET standard, 20y xp in eight dead languages and DB design?

That's pretty much how all the ads out there read.

MosaicFuneral 812 Nearly a Posting Virtuoso

I think the problem lies in them all getting stinko on taxpayer's money: http://www.redstate.com/jrichardson/2010/02/03/pelosi-spends-hundreds-of-thousands-on-travel-alcohol/
Politics and alcohol doesn't mix well. I'm also sure if they had to pay for their own parties they'd be a tad more responsible with fiscal matters.

MosaicFuneral 812 Nearly a Posting Virtuoso

This has already lead down the path of a typical serkan thread.

MosaicFuneral 812 Nearly a Posting Virtuoso

ardav, are you by any chance Hugo Chavez?

MosaicFuneral 812 Nearly a Posting Virtuoso

The pool closed due to aids? This needs explanation?

The Great Habbo Raids of '06-'09? It's about one of the most over used memes on the internet.

http://www.youtube.com/watch?v=e552vTU0bzI

-

My other ffffffuuuuuuu moment was last Thurrsday, when I asked the clerk at GameSchnook if they had a copy of Battletoads and then the manager popped out of nowhere with a shotgun pointed at me, telling me to get the [bleppity bleep bleep] out of his [blerping blerp bloop] store because I was [curbleeping blup bleep] for asking.

If you don't get that meme; then idk what to say.

iamthwee commented: You have bipolar disorder...get yourself checked out kiddo. +0
MosaicFuneral 812 Nearly a Posting Virtuoso

hmmm... 4chan memes, well then I say: last Thursday when the pool closed due to AIDS.

MosaicFuneral 812 Nearly a Posting Virtuoso

The best you can do is disassemble it. If you know how all the code went already, sometimes its pretty easy to rewrite it all.

MosaicFuneral 812 Nearly a Posting Virtuoso

I'm assuming you found some hobbies to fill your time, or maybe dating?

MosaicFuneral 812 Nearly a Posting Virtuoso

Kinda strange given the recent turn of events in Australia. :-(

That's ground breaking news over there? Here in America we commit arson as a passtime: http://en.wikipedia.org/wiki/Devil%27s_Night :icon_twisted: lol