1,684 Posted Topics

Member Avatar for Nicklorion
Member Avatar for Nicklorion
0
148
Member Avatar for clutchkiller

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.

Member Avatar for Rashakil Fol
0
162
Member Avatar for faisaly

This isn't a C++ question, and it's an easy question; figure it out yourself.

Member Avatar for Rashakil Fol
0
83
Member Avatar for neoseeker191

[quote][code]int deck[ 4 ][ 13 ];[/code][/quote] What makes you think this makes any sense?

Member Avatar for neoseeker191
0
1K
Member Avatar for clutchkiller

[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.

Member Avatar for clutchkiller
0
108
Member Avatar for DemonGal711

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 …

Member Avatar for Rashakil Fol
0
77
Member Avatar for winrawr

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?

Member Avatar for cikara21
0
87
Member Avatar for athlon32
Member Avatar for Manutebecker
Member Avatar for amuchie

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 …

Member Avatar for Salem
0
72
Member Avatar for azwraith69

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 …

Member Avatar for azwraith69
0
143
Member Avatar for hman

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.

Member Avatar for Rashakil Fol
0
71
Member Avatar for atman

The code doesn't store the value of x in a[2] before that line. What makes you think it does?

Member Avatar for Rashakil Fol
0
134
Member Avatar for mr_scooby

Use a for loop or a while loop and with it, add up the marks of the elements of the array.

Member Avatar for ddanbe
0
162
Member Avatar for TobbeK

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 …

Member Avatar for TobbeK
0
136
Member Avatar for manpreet tiwana

Object oriented programming is the practice of passing dynamic libraries as parameters. Most object oriented programs are not robust in any sense.

Member Avatar for Rashakil Fol
0
84
Member Avatar for thejadoogar
Member Avatar for Vollow

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 …

Member Avatar for Vollow
0
150
Member Avatar for shazzy99

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.

Member Avatar for ddanbe
0
4K
Member Avatar for tweat

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.

Member Avatar for DevonMcC++
0
68
Member Avatar for ambarisha.kn
Member Avatar for nelis
0
1K
Member Avatar for wendas

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 …

Member Avatar for nelis
0
104
Member Avatar for neoangin

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, …

Member Avatar for neoangin
0
127
Member Avatar for arun_lisieux

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.

Member Avatar for arun_lisieux
0
288
Member Avatar for ddanbe

[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; …

Member Avatar for LizR
0
114
Member Avatar for mps727

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, …

Member Avatar for Rashakil Fol
0
7K
Member Avatar for phanthavong
Member Avatar for metalla_nz

The following C# string should suffice: [code]"<a href=\"LINK\">([^<]+)</a><br>([^<]*) -- (\\d*)<br>([^<]*)<br>"[/code]

Member Avatar for metalla_nz
0
91
Member Avatar for BobLewiston

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. …

Member Avatar for Rashakil Fol
0
112
Member Avatar for Emma1

Why don't you look up the term "abstract class" in a search engine, like a non-moron.

Member Avatar for skatamatic
0
82
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
214
Member Avatar for metalla_nz

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 …

Member Avatar for metalla_nz
0
155
Member Avatar for shazzy99

You should follow scru's advice and use a List<T> if you want to have a resizable container.

Member Avatar for Rashakil Fol
0
178
Member Avatar for faisaly

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?

Member Avatar for Rashakil Fol
0
88
Member Avatar for godnseeker

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]

Member Avatar for Rashakil Fol
0
82
Member Avatar for Rashakil Fol

[url]http://blog.uncool.in/2009/01/19/computer-science-fail-higher-education-in-india/[/url] This explains, like, everything.

Member Avatar for Monalisaparker
0
119
Member Avatar for rchatterji
Member Avatar for mrnutty

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.

Member Avatar for MattEvans
0
154
Member Avatar for FallenPaladin

[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?

Member Avatar for FallenPaladin
0
116
Member Avatar for TLRando

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 …

Member Avatar for TLRando
0
84
Member Avatar for 3pid

Use C#, not Java. Java is the worst language in popular use, besides C++.

Member Avatar for Ramy Mahrous
0
128
Member Avatar for massivefermion
Member Avatar for VernonDozier
0
400
Member Avatar for kanaku
Member Avatar for cppnewb

[QUOTE=cppnewb;776161] F - Other - Please specify. Thanks![/QUOTE] Start with Malbolge and then move on to Brainfuck.

Member Avatar for Rashakil Fol
0
111
Member Avatar for DavidT

[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?

Member Avatar for yollyP.
0
123
Member Avatar for angel1
Member Avatar for wien

[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.

Member Avatar for LizR
0
186
Member Avatar for daniyal_riaz

You can probably find references by searching for them on a search engine.

Member Avatar for Colin Mac
0
165
Member Avatar for mr.white

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.

Member Avatar for LizR
0
144
Member Avatar for ucza
Member Avatar for ucza
0
131

The End.