1,684 Posted Topics
Re: For something like this, you would probably have a swell time with Boost.Regex. | |
Re: This is absolutely awful. Do not do what you are talking about doing. Tell us what your problem is, what you really are trying to achieve, instead of asking about one particular mechanical option, so that a better solution can be recommended. | |
Re: This isn't a C++ question, and it's an easy question; figure it out yourself. | |
Re: [quote][code]int deck[ 4 ][ 13 ];[/code][/quote] What makes you think this makes any sense? | |
Re: [QUOTE=clutchkiller;787039]is there a way to contain the text in a normal format when writing out to a text file?[/QUOTE] Yes, you can make your own class that inherits from ostream. | |
Re: Mathematically, space analysis works the same way as time analysis, except that you measure a function by the maximum amount of memory it uses, instead of the total amount of time. So it just involves asking the question: how much space does a function use? In the vector example, the … | |
Re: You can derive the answer yourself from the fact that #include effectively copies the text of the header file into the cpp file before the compiler starts compiling. So, my question is: why would you want to require people to follow extra instructions just to use your header file? | |
Re: Good for you. Why are you telling us this? | |
Re: Um, the way solutions work is that you devise them yourself. Do you think education is about having somebody else tell you exactly what to do? In this case, you have the most trivial differential equation, with a stable asymptote. It doesn't get easier than this. If you're referring to … | |
Re: When you see it say that there's "no matching function", that means there's no function with the given name that expects the types you've provided. If you double-check the documentation for ifstream's open function, you'll see that it takes a char*, not a string. So use the .c_str() member function … | |
Re: This isn't a C# question, and you should be figuring this out yourself using lecture notes and other examples seen in class, in textbooks, and on this and other websites. | |
Re: The code doesn't store the value of x in a[2] before that line. What makes you think it does? | |
Re: Use a for loop or a while loop and with it, add up the marks of the elements of the array. | |
Re: Why, take a second look at that code! You're overwriting the value each time through the loop? You want [icode]Label5.Text += element + " ";[/icode] inside the loop, but don't forget to overwrite it with an empty string before. Of course, that's a mere incremental improvement. You probably really want … | |
Re: Object oriented programming is the practice of passing dynamic libraries as parameters. Most object oriented programs are not robust in any sense. | |
Re: Well, what you need to know depends on what you're selling. My brother's in this field and he didn't enter with any particular kind of IT-specific knowledge, but he's definitely learned some things. That list looks very reasonable, the parts outside the parentheses, based on my conversations with him. I … | |
Re: string.Empty is the empty string, not an empty line. "\n" is a string that contains a newline character. If you want an empty line, you need two newline characters. | |
Re: Just write some code that does the algorithm you want, there's no "effective" solution. I'm sure there's some matrix slicing functions you could use; Matlab does those faster than its interpreted language. | |
Re: What logging framework are you using that's giving you these problems? | |
Re: What the fuck are you naming your enum type "eFullWeekDays" for and not "FullWeekDays"? Unless you have actual evidence that prefixing your variables with the names of their types increases your productivity, you are just a superstitious nutjob. [quote]Anyway to get it to pop up the weekday list without the … | |
Re: With some simple representation of 'cell', your spreadsheet could just use a map<pair<int,int>, cell>. Or even (for usability) map<pair<char,int>, cell>. On top of that, or as a modification of that, you might want some algorithm-specific information, like, maybe you want to store the indegree of each cell in the map, … | |
Re: Whoever suggested using the sieve of eratosthenes was being extremely dumb. You just need to factor your number; there's no reason to generate a long list of primes. | |
Re: [CODE=csharp]public void CalculateSize() { const int cMaxCol = 3; const int cMaxRow = 3; const int cGap = 9; bool highColCount = ColumnCount > cMaxCol; bool highRowCount = RowCount > cMaxRow; int CC = highColCount ? cMaxCol : ColumnCount; // or Math.Min int RC = highRowCount ? cMaxRow : RowCount; … | |
Re: pop_back() will call the destructor of whatever's contained in the vector. In this case, it calls the destructor of a pointer -- which does absolutely nothing! You need to explicitly destroy the objects pointed at by the elements of your vector, as you did in your first code sample. (However, … | |
Re: What's the problem? Seems pretty easy. | |
Re: The following C# string should suffice: [code]"<a href=\"LINK\">([^<]+)</a><br>([^<]*) -- (\\d*)<br>([^<]*)<br>"[/code] | |
Re: What is your definition of "object"? Things are what things are. In .NET 2.0, arrays, in particular, are essentially full-blooded objects in the way that List<T>s are full-blooded objects. They have some weird constructor syntax (with initializer lists and [icode]new string[n][/icode] syntax) but they are the same kind of thing. … | |
Re: Why don't you look up the term "abstract class" in a search engine, like a non-moron. | |
Re: First of all, Narue's definitions are BS. (What the fuck is a "full" inheritance hierarchy?) Second, mutators are almost always a sign of design problems, unless your problem provably requires mutators, but getters aren't. Well, if you have mutators that aren't provably necessary, it's evidence that there's a "better" design … | |
Re: Realize that the regular expressions don't get evaluated against the input string until you call m.Count. This is because MatchCollection hopes that you'll enumerate through the MatchCollection with a foreach loop, so that it can perform one regex match at a time, possibly avoiding any unneeded computation. Your regexes are … | |
Re: You should follow scru's advice and use a List<T> if you want to have a resizable container. | |
Re: You know what time complexity means or can look it up, right? Why don't you use some reasoning to figure out why time complexity is useful? | |
Re: This is a pretty easy assignment. [code] void main(int args) { cout >> "xxxxxxx\nx x\nx xxx x\nx x x\nx xxxxx\nx \nxxxxxxx\n"; }[/code] | |
[url]http://blog.uncool.in/2009/01/19/computer-science-fail-higher-education-in-india/[/url] This explains, like, everything. | |
Re: And... how do you plan to make money.... | |
Re: Why the hell are you writing "two = 2.0"? That's retarded. The problem with your code should be obvious if you stepped through the calculations by hand. | |
Re: [quote]userChoice<B> = chosenClass; [b]use of object without instantiation[/b][/quote] More like, syntax error. FallenPaladin why don't you paste some representative code to show exactly the kind of thing you're trying to do? | |
Re: That doesn't seem _crazy_ to me. If you ask me, technically speaking, version numbers should correspond to the structure of your branches in version control. I don't know what "build numbers" refers to, but if the build number corresponds to version control, it's a reasonable system. For example, at my … | |
Re: Use C#, not Java. Java is the worst language in popular use, besides C++. | |
Re: Then don't use it. Use Microsoft Visual C++ Express. | |
| |
Re: [QUOTE=cppnewb;776161] F - Other - Please specify. Thanks![/QUOTE] Start with Malbolge and then move on to Brainfuck. | |
Re: [QUOTE=jbennet;774153]Certifications and experience are the key[/QUOTE] Certifications? If you want to be a certified moron. A BS in Comp Sci is more than enough certification unless you got it from Bob Jones University. DavidT, if I received your resume, what would make me want to hire you? | |
| |
Re: [QUOTE=Diamonddrake;774965]only problem with this teach a man to fish deal you have running is that not everyone has Visual Studio, some people are compiling using free software with no help files, and online help from Microsoft is practically Japanese to a weekend programmer.[/QUOTE] Visual C# Express is free. | |
Re: You can probably find references by searching for them on a search engine. | |
Re: If you have a bunch of processes or threads reading from a table without modifying the table, in a way that affects the others' results, you won't have any problems. | |
Re: Why would they be equal? You would only expect them to be equal if k is 1.0. |
The End.