958 Posted Topics

Member Avatar for Eagle4Ever

The cursed earth of Mordor. Forged through the remains of Morgoth's wicked sorcery, while The Dark Lord watches high above in the tallest tower of Barad-dûr.

Member Avatar for WaltP
0
221
Member Avatar for MooGeek
Member Avatar for sneekula

One day while cleaning my bedroom, to my surprise, I found one Fly Agaric and one patch of Psilcoybe growing under my bed! "Do I take the red one or the blue," that was the immediate thought. I felt like a blue, so I just threw the whole patch in …

Member Avatar for bumsfeld
2
935
Member Avatar for ntrncx

Probably the best IDE for C++ with MinGW is Code::Blocks. Easiest for a beginner, since it's good to go straight out of the box.

Member Avatar for ntrncx
0
173
Member Avatar for JDevelop

Wikipedia has your back, broski: [url]http://en.wikipedia.org/wiki/Strcpy[/url]

Member Avatar for JDevelop
0
285
Member Avatar for jfunchio

[QUOTE=引领3妓生活;1454457]这么明显的错误你都发现不了?你到底是不是C++编程人员[/QUOTE] Don't be rude. Most posters are beginning programmers, or have had a long night.

Member Avatar for Fbody
0
355
Member Avatar for Duki

Those ads have been doing that for years. Either click on the Software Development button and select your forum from the next page, or install Ad-Block Pro and NoScript.

Member Avatar for Dani
0
216
Member Avatar for martin11ph

An old snippet -[URL="http://www.daniweb.com/code/snippet217210.html"]from here[/URL](excuse my amateur style, back then)-: [code] map<string, Element> elements; elements["H"]._Element(true, false, false, 1, 1, 1); elements["H"].name = "Hydrogen"; elements["H"].symbol = "H"; elements["H"].amu = 1.00794;[/code] Do you know how to use any other STL containers or pointers/arrays?

Member Avatar for mrnutty
0
154
Member Avatar for tsunami123
Member Avatar for tushar_veer

[url]http://msdn.microsoft.com/en-us/library/dd370994%28v=VS.85%29.aspx[/url]

Member Avatar for asma akram
0
98
Member Avatar for Phil++

Bracketed variables like that are called arrays: [url]http://www.cplusplus.com/doc/tutorial/arrays/[/url] If S was initialized in the order you showed, [1] would actually print 2, since arrays start from [0].

Member Avatar for mrnutty
0
84
Member Avatar for varunsara

This site is UTF-8 encoded. [url]http://articles.sitepoint.com/article/guide-web-character-encoding[/url] [url]http://en.wikipedia.org/wiki/UTF-8[/url] [url]http://developers.sun.com/global/technology/standards/reference/faqs/how-to-utf-8.html[/url]

Member Avatar for MosaicFuneral
0
99
Member Avatar for Mayank23
Member Avatar for Mayank23
0
117
Member Avatar for TailsTheFox
Member Avatar for Thuthu001

Take a type that can contain the required bits. Assign the first byte, shift 8, OR the next byte, repeat the last two steps. [url]http://en.wikipedia.org/wiki/Bitwise_operation[/url]

Member Avatar for vijayan121
0
2K
Member Avatar for triumphost
Member Avatar for Frederick2

size_type is just a typedef of size_t in STL containers. For a %100 compatibility, you may want to use size_type, but for the most part it's interchangeable, unless you're following the standard.

Member Avatar for Frederick2
0
154
Member Avatar for taurus3
Member Avatar for Frederick2

Store the string length before hand, add the length of the two strings to find the new length, if the new length is greater than the current capacity then you call to increase the size, then call to have the the data of the new string concatenated to yours. [code]class …

Member Avatar for Frederick2
0
556
Member Avatar for frogboy77

You could simplify 3-7: [icode]if(a || a<4 || !(a&1) || a<9 || !(a%3)) return(false);[/icode]

Member Avatar for frogboy77
0
119
Member Avatar for bensewards

Please use CODE TAGS next time - forum rules. Shouldn't it be [icode]while answer != a valid answer[/icode]? Though it seems redundant(and time consuming) to check the variable for all valid answers in the while statement and once again in the if statements. You could try: [code] bool valid_answer = …

Member Avatar for Fbody
0
604
Member Avatar for Frederick2

Why do you have all those printf's in +=()? Maybe you should log the values into a record and print it afterwards and wrap it with #ifndef DEBUG.

Member Avatar for Frederick2
0
585
Member Avatar for sudhirs18

93-94 can be condensed into: [icode]stdnm[10][21];[/icode] 95 [icode]sub[6][11];[/icode] 97-107 [icode]mrks[60];[/icode] You can simply it's usage with loops such as, [icode]for(int i = 0; i < 60; i++) sfil>>mrks[i];[/icode] See how that works out?

Member Avatar for sudhirs18
0
164
Member Avatar for sketchiii

If you were a programmer, you'd know by that logic you could also say, "I know 'Hello' in Chinese, therefore I'm fluent in it". ;P Anyway, just familiarize yourself with time.h: [url]http://www.cplusplus.com/reference/clibrary/ctime/[/url] You may want to upgrade from old Dev-C++ to Code::Blocks or VC++ Express 2010.

Member Avatar for MosaicFuneral
0
392
Member Avatar for happygeek

[QUOTE=traskdigital;1446729]We are know the mother language of computer.And we can generate system as well as application programming.OOPs is a big concept language of orinted program.C language is used for hacking program by hackers.[/QUOTE] I'm still trying to decipher this paragraph. You or no collective can be a "know" or a …

Member Avatar for MosaicFuneral
0
626
Member Avatar for GeekInTraining
Member Avatar for MasterGberry

Why don't you skip the redundancy of placing this all inside another C-string and just loop through and append the vector's chars into the std::string. [code] string file_data; for(size_t i = 0; i < data.size(); i++) file_data += data[i]; [/code]

Member Avatar for MasterGberry
0
191
Member Avatar for XerX
Member Avatar for CB44

We don't do homework, and that'd be academic dishonesty - worse than a late assignment. Often you're allowed to postpone an assignment if you have -preferably signed- proof of outstanding circumstances. The paper they give you when you start class tells you who to contact in such events that you'll …

Member Avatar for MosaicFuneral
0
135
Member Avatar for BLUEC0RE

Have you messaged your professor, most schools also have services like Blackboard to help maintain contact?

Member Avatar for MosaicFuneral
0
77
Member Avatar for SpecialForce
Member Avatar for Nisa1207
Member Avatar for Dani

Not sure what range of tools, but some would include: [LIST] [*]MASM32 [*]Cheat Engine [*]Code::Blocks w/ MinGW [*]Visual C++ 2010 Express [*]Open Office [*]GIMP [*]Audacity [*]Blender [*]Run Alyzer [/LIST]

Member Avatar for xiejiangtian
0
111
Member Avatar for Nick Evan

I've been flagging things since I joined; don't think there needs to be a reward expected for pointing out the trash for the janitor to clean. Isn't there a way of viewing all recently created threads by new members?

Member Avatar for AndreRet
2
435
Member Avatar for eskimo456

This book explains everything you'll need to know on computational theory, starting from the bottom with boolean logic into chips into machine code into assembly into virtual machines into language into compilers into operating systems: [url]http://www1.idc.ac.il/tecs/plan.html[/url] [url]http://www.amazon.com/Elements-Computing-Systems-Building-Principles/dp/026214087X[/url] It's a relatively short book of 340 pages and if you can grasp …

Member Avatar for MosaicFuneral
0
195
Member Avatar for suhnako

[QUOTE=Toni Chopper;1443048].... Don't believe everything you read! god is real.[/QUOTE] So are saying God is real, or isn't - because I have to question everything you say now, after your statement(even the statement itself, as a double negative)?

Member Avatar for Toni Chopper
-2
132
Member Avatar for pablouin

A processed meat[s] in a can that has become popular in many Pacific islands and probably why Guam is ranked so high in obesity.

Member Avatar for MosaicFuneral
-2
143
Member Avatar for Duki

I think they'll understand the kid forgetting his meds and flipping out. It's the internet.

Member Avatar for Duki
0
142
Member Avatar for ethanbuckley

Wouldn't tickboxes indicate items to be played, so why would you go about ticking them all? Create a temporary play list, and an item list with items that are left to be added. You randomly pick an item out of the to_add list, add it as the next item in …

Member Avatar for MosaicFuneral
0
135
Member Avatar for ~s.o.s~
Member Avatar for MosaicFuneral
0
106
Member Avatar for freakyboard

Just add a public function to x returning the value, you already have the answer staring at you in the directions.

Member Avatar for embooglement
0
122
Member Avatar for mrnutty

Well... I could add you, but how do I know you're not the stalker?

Member Avatar for Borzoi
0
171
Member Avatar for Celtrix

strtok(), or read it a character at a time and end reading there if you reach a character you want to delimit on on.

Member Avatar for Celtrix
0
99
Member Avatar for tech291083
Member Avatar for jeffpro

I don't known much about PHP, but can you use a pipe or set up a socket connection?

Member Avatar for gerard4143
0
97
Member Avatar for erogol

Think ahead and realize what direction you're coding in; use a creative name system, and then there is no need for a dynamic scope.

Member Avatar for MosaicFuneral
0
131
Member Avatar for seifhatem

Member rule: [LIST][*] Do provide evidence of having done some work yourself if posting questions from schoolwork assignments[/LIST] Open up the file in an [U]ifstream[/U], read with [U]getline(istream& is, string& str)[/U].

Member Avatar for Chronister
0
173
Member Avatar for flasp

Read the section in the chapter that tells you how to use new to allocate a pointer - otherwise, this example should explain it all: [url]http://www.cplusplus.com/reference/std/new/operator%20delete%5B%5D/[/url]

Member Avatar for flasp
0
166
Member Avatar for Mst8kenId

My experience with iPods, is that the shuffle is never very random and sometimes repeats patterns. I'm not sure if it compares similarities(that have been previously assessed) and attempts follows each song with another of similar attack or other parameters.

Member Avatar for Narue
0
121
Member Avatar for Dark_Omen

[url]http://fltk.org/index.php[/url] Or the Irrlicht game engine has an easy GUI, but to some it's still more in the "to-do" sort-of phase. [QUOTE=amerninja2;734635][B][COLOR="Red"] P.S I USE DEV C++ TOO, YOU GO TO NEW PROJECT, AND SELECT WINDOWS APP AND ALL ThE CODE ON THAT SITE WILL WORK IN IT![/COLOR][/B][/QUOTE] Can you …

Member Avatar for kvprajapati
-1
4K

The End.