958 Posted Topics

Member Avatar for rollon

[QUOTE=phoenix911;1163059]rule 1: never learn code out your head[/QUOTE] Wtf?

Member Avatar for wasimmalik
0
128
Member Avatar for dwdude
Member Avatar for dwdude
0
2K
Member Avatar for mrblippy

I believe that's just factorial...and insanity. [URL="http://www.cppreference.com/wiki/complexity"]http://www.cppreference.com/wiki/complexity[/URL] Your compiler would also probably just simplify that as: [code]printf("Inner statement executed 160000000 times\n");[/code] PS: We have an edit button, you don't have to make a second thread.

Member Avatar for Narue
0
136
Member Avatar for hkBattousai

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

Member Avatar for hkBattousai
0
2K
Member Avatar for mmgoicochea

That's some hard to follow code. So pretty much what you is this: [code]cin >> number; if(number & 1) number /= 2; else number = (number * 3)+1; if(number < 1) cout << "error message";[/code] But in a loop that at the end prints the index value? You may need …

Member Avatar for mmgoicochea
0
1K
Member Avatar for y_alhasa
Member Avatar for lugan

Obviously as you said: [code]loop getchar() till (key == '\n') if is_alpha() if is_upper_case() increase array_counter[key - uppercase_A_as_an_int]; else ... [/code] Write it out as pseudo-code then put it into C format.

Member Avatar for lugan
0
100
Member Avatar for dondajr

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

Member Avatar for jephthah
0
152
Member Avatar for Encrypted

Just a minor thing, but you could save time declaring like variables: [code]static double one = 234.34, two = 34520.0303, three = 333.33, ...;[/code]

Member Avatar for MosaicFuneral
0
392
Member Avatar for Syphilis

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: [url]http://en.wikipedia.org/wiki/Primitive_data_type#Integer_numbers[/url] You may want to learn a simpler language first.

Member Avatar for MosaicFuneral
0
160
Member Avatar for apegram
Member Avatar for geekgoddess
1
242
Member Avatar for GrimJack

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

Member Avatar for Biker920
1
165
Member Avatar for The Dude

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 …

Member Avatar for PedroStephano
0
92
Member Avatar for coloradoboy2

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?

Member Avatar for soccerjerseys
-5
140
Member Avatar for SireenHatti
Member Avatar for darkagn

[QUOTE=cscgal;1127905]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 …

Member Avatar for Ancient Dragon
0
469
Member Avatar for lrh9

Less offensive than having an entire manual and disclaimer printed on the side of a rifle. Especially if you sold your house for one: [url]http://www.ivorybeads.com/[/url]

Member Avatar for jwenting
1
768
Member Avatar for Mushy-pea

I think the problem lies in them all getting stinko on taxpayer's money: [url]http://www.redstate.com/jrichardson/2010/02/03/pelosi-spends-hundreds-of-thousands-on-travel-alcohol/[/url] 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.

Member Avatar for jbennet
0
288
Member Avatar for Narue

[QUOTE=sneekula;569667][B][COLOR="Red"]joshSCH[/COLOR][/B] 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".[/QUOTE] Just thought I'd correct that.

Member Avatar for jonsca
2
513
Member Avatar for Tara_

Mobile what??? Particularly what OS does it have? There's a lot of remote admin programs out there, just base it on those.

Member Avatar for mackone
0
122
Member Avatar for lllllIllIlllI

[QUOTE=Paul Thompson;1127721]I am flying from Australia to the San Francisco[/QUOTE] Well better to head towards San Diego and check out the zoo than stay in stuffy old Frisco. [QUOTE=WaltP;1128205]Real Player[/QUOTE] [url]http://maps.google.com/maps?q=2601+Elliott+Avenue+Seattle[/url] Nothing particularly interesting about that building, but the area has alot of fun places visit.

Member Avatar for vmanes
0
154
Member Avatar for mrnutty

[QUOTE=Narue;1121326][B][B]>Even though the ads all ask for top talent[/B] 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. …

Member Avatar for vaultdweller123
0
1K
Member Avatar for Nick Evan

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

Member Avatar for apegram
0
295
Member Avatar for ~s.o.s~

[QUOTE=Schecter;1112001]more info on republic day?[/QUOTE] More info on Google?

Member Avatar for vegaseat
1
206
Member Avatar for ,Diabolical
Member Avatar for serkan sendur

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

Member Avatar for ~s.o.s~
-4
230
Member Avatar for Dashien

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.

Member Avatar for vegaseat
0
133
Member Avatar for PetuniaRose

Why the hell is anyone replying still? There isn't even an "argument" to advance or defend, anymore. It's all useless mud being flung in here.

Member Avatar for Ene Uran
0
969
Member Avatar for mindbender

It doesn't work because you're using nonstandard code written for ancient compilers. [list][*][I]conio.h[/I] should be removed from your code. [*]main() by standard requires a return value(except in very rare cases). [*]And read the site rules: use CODE TAGS, because it keeps your code formatted and possible to read.[/list]

Member Avatar for Nick Evan
1
5K
Member Avatar for Dani

Sometimes part of that "What do you want to rate..." bubble is floating over all the post(don't have a pic), or the text isn't center and strays outside the bubble(sorry, no pix either). Also, why is the question mark yellow-on-manila? I can't see it without squinting and holding my face …

Member Avatar for feoperro
3
941
Member Avatar for sneekula

I'd like to learn electronics more. So that my programs are all just a series of resistor-transistor logic gates, and other low-level awesomeness. Then I'd like to learn chemistry and physics better. So that I could develop functions on a picometre level.

Member Avatar for gelgin2k
3
593
Member Avatar for kc0arf

[list][*]Oz. Heavy cream(maybe two ounces) [*]1/2Oz. Makers Mark whiskey [*]1/2Oz. Extra strength coffee [*]1/4Oz. Kahlúa [*]1/8Oz. Baileys [*]1/8Oz. Vanilla [*]Ground cumin, clover, nutmeg, and whatever else.[/list] Was okay when I had it. I think... was so late/early.

Member Avatar for pogson
0
2K
Member Avatar for cwarn23

Just look up the WikiLinks list, if you're curious. Mostly its porn sites(including alot of user created "tube" style ones), few old shock sites no-one cares about anymore, alot of illegal sites that were already pulled by authorities, a number of accounts on major sites that have been deleted by …

Member Avatar for vegaseat
0
192
Member Avatar for mrnutty

[QUOTE=William Hemsworth;1071485]I could swear there was a similar thread about this somewhere, I'm up for idea though (:[/QUOTE] [I]Community Feedback[/I], few/several months ago.

Member Avatar for cwarn23
1
283
Member Avatar for Nick Evan

[URL="http://www.cracked.com/video_18104_the-algorithm-alan-rickman.html"]Or use.[/URL]

Member Avatar for Nick Evan
0
108
Member Avatar for jbennet

[QUOTE=ddanbe;926167]You are right scru, altough I do not consider myself ugly, I am not Mister Universe, but neither are you![/QUOTE] Actually, you should say: I'm not Mister Universe, therefore I'm not ugly.

Member Avatar for hotmatrixx
0
250
Member Avatar for MosaicFuneral

I was going through the ACMA's blacklist and wondered, "Do you think there'll ever be such a censorship in the states, in years to come?" Then staring at the list, why: don't they just report some of the crap to the staff with all the convenient report buttons on the …

Member Avatar for Rashakil Fol
0
123
Member Avatar for The Dude

[URL="http://www.thesuperheroquiz.com/result.htm?a=60&b=45&c=65&d=60&e=60&f=48&g=70&h=45&i=45&j=65&k=60"][quote][B]You are [U]Hulk[/U][/B] You are a wanderer with amazing strength.[/quote][/URL] Well, that quiz wasted all the time I had left, till I go for the holidays.

Member Avatar for Ancient Dragon
0
148
Member Avatar for new programer

[QUOTE=Narue;1078890][B]>what if you're a geek !![/B] Watch out for jocks?[/QUOTE] I think that stereotype barrier was broken long ago, with the advent of "hackers on steroids".

Member Avatar for new programer
0
475
Member Avatar for ahvicm

Maybe try this: [code]#include <stdio.h> #include <stdlib.h> #include <conio.h> int main() { window(100, 50, 360, 350); textbackground(RED); _sleep(5000); clrscr(); return(0); }[/code] And you do know how a grid works, and how to find the x,y coordinates right? edit: Oh, yeah! You have to use the BB-code tags(it's the law): [url]http://www.daniweb.com/forums/misc-explaincode.html[/url]

Member Avatar for mahi oberoy
0
123
Member Avatar for saisai81
Member Avatar for MichaelRay
-7
93
Member Avatar for saisai81

880 rounds of Bulgarian 7.62x56R At least this year I don't want one in the brain, while I have my head in the snow trying to keep from going insane, from pain boring through my right eye.

Member Avatar for saisai81
0
149
Member Avatar for jwxie
Member Avatar for mrnutty

Believe we had an article on this a while ago, could be mistaken, might have been off-hand discussion. And I also hate excessive Boost usage on all sorts of unnecessary things already in the STL or even plain C.

Member Avatar for ddanbe
0
247
Member Avatar for dvdreplication

Summer is sweltering and unlivable, winter's fun, but people seem to get retarded in the cold somehow. Spring and Fall are obviously superior.

Member Avatar for characteredu
-4
131
Member Avatar for soccerjerseys
Member Avatar for Salem

I second this. It pisses me off to great ends, when they do this. They'll probably even attempt this still with fake-signatures.

Member Avatar for Nick Evan
0
257
Member Avatar for tisesunshine

The same way you could get free CDs: label's annual/seasonal samplers, promotional demos, raffles, band passes them off the stage.

Member Avatar for replicavertu
-9
271
Member Avatar for thinkersgroup

[url]http://encyclopediadramatica.com/Emo_Cutter_Girl[/url] Match made from the depths of hell.

Member Avatar for diafol
-5
110
Member Avatar for Scuppery

[QUOTE=Scuppery;656459] 5. I had a dream… and there were 1’s and 0’s everywhere, and I think I saw a 2![/QUOTE] There is no such thing as two, silly Bender.

Member Avatar for Lardmeister
7
526

The End.