958 Posted Topics

Member Avatar for Ancient Dragon

SP clips, on YouTube, always get deleted. A more official link: [URL="http://www.southparkstudios.com/clips/155351"]http://www.southparkstudios.com/clips/155351[/URL]

Member Avatar for GrimJack
0
1K
Member Avatar for RayApple
Member Avatar for OlyComputers
Member Avatar for MosaicFuneral

In tech forms, when someone starts a new thread. It should be evaluated whether it has at least rudimentary sentence qualifiers, in the non-code tag fileds. A crude list of requirements might be: at least on capital and lowercase letter, one of [i][b].,?!;[/b][/i], perhaps even no excessive usage of internet …

Member Avatar for MidiMagic
0
256
Member Avatar for want_to_code

[QUOTE=want_to_code;843385]1.[code] #include<stdio.h> int main() { int function(int); ...[/code][/QUOTE] Prototypes don't go inside other functions.

Member Avatar for Aia
0
174
Member Avatar for Laik

How about no windows, and just a call that passes something to write(a box of pixels) to the video device? That's a lot of components of code to write just there. By the way, Laik, how much of an OS do you have? You will probably want to lean more …

Member Avatar for adam1122
0
127
Member Avatar for lllllIllIlllI

I don't like have snippets seem random now... I want to know anything new is now available for any language.

Member Avatar for verruckt24
0
179
Member Avatar for mat1989
Member Avatar for ~s.o.s~

[QUOTE=~s.o.s~;836716]Eh? Impossible to read what? The site to which I linked to?[/QUOTE] It was all purple, earlier: [url]http://www.daniweb.com/forums/thread184413.html[/url] Where's the hentai previews?

Member Avatar for Narue
2
322
Member Avatar for csinquirer

[I]Build Your own RObot,[/i] [i]CRC's Handbook of Physics and Chem 63rd. ed. (always useful)[/i] [i]C# Pocket Reference[/i] That's all I can think of, other than what I might have from the library at the moment.

Member Avatar for ddanbe
0
147
Member Avatar for gangsta gama

[QUOTE=gangsta gama;840881]1) When I have [code=c++]if (inventory.size() == MAX_ITEMS) { inventory.push_back("Rusty Armor"); } else { deleteItem(); } [/code][/QUOTE] uhmmm... If you have a full inventory of items, you get a free Rusty Armor, but if you don't you lose an item? I think you meant to use [icode]inventory.size() != MAX_ITEMS[/icode] …

Member Avatar for gangsta gama
0
125
Member Avatar for tomtetlaw

To note, do not use exit(). In your main loop just break, and your destructors should clean anything.

Member Avatar for MosaicFuneral
0
66
Member Avatar for noodlecode

[QUOTE=thoughtcoder;841923]The "do something every Nth time through a loop" problem is probably where you'll see the modulus operator used most often.[/QUOTE] I generally just use the logical AND operator for that.

Member Avatar for thoughtcoder
0
126
Member Avatar for krutthika
Member Avatar for atreides27

[icode]type var_name = new type[n];[/icode] not [icode]type var_name = new var_name [n];[/icode] You need to establish a better naming system that allows you to recognize what is what, with just a glance.

Member Avatar for jbennet
0
268
Member Avatar for tintincute

[QUOTE=ddanbe;840576]Yes, i++ is just a shorthand for i = i + 1.[/QUOTE] Well.... if I remember right, [icode]var++[/icode] and [icode]var--[/icode] on x86 style machines will generate INC and DEC instead of SUB and ADD. Which do not affect the carry flag and by not having a following value taking space: …

Member Avatar for MosaicFuneral
0
133
Member Avatar for FallenGenesis77

Well why not just save it in a encrypted file? Keeps everything separate from getting lost.

Member Avatar for MosaicFuneral
0
242
Member Avatar for avishekgc_22

[I]The Art of C++[/I] was a great book; regardless, perhaps you should turn it into a crude compiler that puts it into MASM32 mnemonic, or some other flow of choice.

Member Avatar for tux4life
0
177
Member Avatar for sautap4u
Member Avatar for Ancient Dragon
0
270
Member Avatar for Argo54325
Member Avatar for GrimJack
Member Avatar for GrimJack
1
148
Member Avatar for delifion

As Danny said, declare seed in main(). Second, to have the function modify a variable you need something like [icode]void foo(int &bar);[/icode] note the "&".

Member Avatar for Gerlan
0
488
Member Avatar for eowyn0622

[QUOTE=Ancient Dragon;837165]You can get a Dell computer for under $500.00 USD at Wal-Mart. Or go online at [url]www.walmart.com[/url] to see other models. Sorry is this post seems spammy, but I'm just answering the original post.[/QUOTE] [URL="http://walmartwatch.com/"]Or maybe not.[/URL]

Member Avatar for MosaicFuneral
0
170
Member Avatar for Talguy

So like in games when you have the option of which device to use; the custom "plug-ins/updates" would contain the [i]rules[/i] on how to interact with the unknown hardware?

Member Avatar for Talguy
0
107
Member Avatar for samdajam
Member Avatar for vmanes
0
103
Member Avatar for Mostafa Adel

Why not just allocate a single array and treat it as a x*y space. [icode]for every y spaces is a new x row[/icode] Less initializing time spent doing separate allocations, for every new row. Particularly if this code is only for small 2D arrays; for larger amounts of data and …

Member Avatar for MosaicFuneral
0
214
Member Avatar for sandiskk
Member Avatar for BunnysMom

If the file is NULL, then why are you still using it afterwords? Perhaps you should have one function to load, and one to save. You aren't closing the file pointer after you're finished.

Member Avatar for Aia
0
182
Member Avatar for xgmx

[quote]Oh, I doubt Dani wants to open the gates to hordes of pubescent leet gankers, pwning this and roflcoperting that and generally epeeing about the place.[/quote] I think we're starting to see them creep their way in now. [quote]Wow! I can so easily guess your age from that reply of …

Member Avatar for darkagn
0
106
Member Avatar for sudansh
Member Avatar for adam1122
0
133
Member Avatar for rom87

If you're writing drivers and crap for a CNC or something, then you could cost a business millions. Two ways that might cause damage to a PC style computer: wrong BIOS call to a device erasing data, or throwing an old CPU(with design flaw, and inadequate cooling device) into somesort …

Member Avatar for MosaicFuneral
0
60
Member Avatar for MosaicFuneral
Member Avatar for viper34j
Member Avatar for Argo54325
Member Avatar for Dave Sinkula

I rarely smoke anything: to expensive, don't like coughing, and if you didn't like the smell of what you just had, it lingers and might leave you sneezing.

Member Avatar for jbennet
0
4K
Member Avatar for rahul8590

You handle them the way you would normally handle a file, you act upon the data depending on what the file format specifies. Is this a BMP, JPEG, GIF, or?

Member Avatar for Nick Evan
0
242
Member Avatar for jschri4
Member Avatar for The Dude
Member Avatar for jbennet
0
126
Member Avatar for phalgun_g

@s_sridhar: You only need a supercomputer for chess if someone is stupid enough to even try and calculate every possible move(might as well call that infinite). Chess is a territorial game that just needs a basic AI system for a Human vs. Computer scenario; that and you only need to …

Member Avatar for MosaicFuneral
0
161
Member Avatar for jspeakers

Something like Natural Frequency or Resonance? Look up Alvin Luciers works that dealt with that.

Member Avatar for nucleon
0
400
Member Avatar for speed101

Can you format at least one sentence properly? It looks like one large line of random words.

Member Avatar for ithelp
0
111
Member Avatar for 11silversurfer1
Member Avatar for orwell84

You're not modifying the variable, just taking it as a parameter. Do you have to use recursion and not a loop?

Member Avatar for orwell84
0
161
Member Avatar for MosaicFuneral

We need a "Sage" feature that allows you to post something without having it bumped to the top. So there would be the standard view which doesn't have sage post bumped to the top, and a full chronological view that includes all post in the standard timeline order, even if …

Member Avatar for verruckt24
1
216
Member Avatar for cipherbeale

[URL="http://www.cplusplus.com/reference/iostream/ifstream/"]ifstream, [/URL]and [URL="http://www.cplusplus.com/reference/iostream/ofstream/"]ofstream[/URL]

Member Avatar for shea279
0
109
Member Avatar for Madbuda

Hold all the other crap, just throw in it a pan till it's crispy! I'd be in heaven, till the eventual endless hours on the toilet from all that grease.

Member Avatar for jbennet
0
415
Member Avatar for GDICommander
Member Avatar for serkan sendur

[QUOTE=serkan sendur;827777]i have pyschological problems guys, i know i dont sound quite common. is common sense common is a different issue though.[/QUOTE] Then why not take your Seroquel?

Member Avatar for serkan sendur
0
178
Member Avatar for shevy24

I've been directed to YouTube C++ tutorial videos, and they're crap by individuals who don't know [explicits] about C++ or programming. Just get a library card, that's how I got material to learn alot of things.

Member Avatar for Spanki
0
213
Member Avatar for serkan sendur

So Rashakil is Anon?! 0.0 Is he going to go blow up a van, like how Fox showed it on television? lmfao The generated reputation comments is possibly the most entertaining part of this thread.

Member Avatar for Ancient Dragon
1
668

The End.