958 Posted Topics
Re: 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. | |
Re: To go a year without perpetuating a racial genocide. | |
Re: 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 … | |
Re: 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. | |
Re: Wikipedia has your back, broski: [url]http://en.wikipedia.org/wiki/Strcpy[/url] | |
Re: [QUOTE=引领3妓生活;1454457]这么明显的错误你都发现不了?你到底是不是C++编程人员[/QUOTE] Don't be rude. Most posters are beginning programmers, or have had a long night. | |
Re: 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. | |
Re: 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? | |
![]() | |
Re: [url]http://msdn.microsoft.com/en-us/library/dd370994%28v=VS.85%29.aspx[/url] | |
Re: 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]. | |
Re: 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] | |
Re: [url]http://www.cplusplus.com/reference/iostream/ostream/operator%3C%3C/[/url] | |
Re: Like a MessageBox() with an exclamation icon, or? | |
Re: 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] | |
Re: Algorithms: They save lives. | |
Re: 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. | |
Re: We don't do homework, forum rules - read them. | |
Re: 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 … | |
Re: You could simplify 3-7: [icode]if(a || a<4 || !(a&1) || a<9 || !(a%3)) return(false);[/icode] | |
Re: 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 = … | |
Re: 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. | |
Re: 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? | |
Re: 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. | |
Re: [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 … | |
Re: 36-37 Are you forgetting something? | |
Re: 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] | |
Re: Remove the whole "10+". | |
Re: 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 … | |
Re: Have you messaged your professor, most schools also have services like Blackboard to help maintain contact? | |
| |
Re: 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] | |
Re: 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? | |
Re: 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 … | |
Re: [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)? | |
Re: 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. | |
Re: I think they'll understand the kid forgetting his meds and flipping out. It's the internet. | |
Re: 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 … | |
Re: :,( Very unfortunate. He was only 23 and accomplished? | |
Re: Just add a public function to x returning the value, you already have the answer staring at you in the directions. ![]() | |
| |
Re: strtok(), or read it a character at a time and end reading there if you reach a character you want to delimit on on. | |
Re: There's several billion meat-based systems in this world. | |
Re: I don't known much about PHP, but can you use a pipe or set up a socket connection? | |
Re: 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. | |
Re: 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]. | |
Re: 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] | |
Re: 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. | |
Re: [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 … |
The End.