190 Posted Topics

Member Avatar for NycNessyness
Member Avatar for cobberas

[QUOTE=cobberas;581324][code] Candies[0] = {"Violent Crumple", 20.5, 7000}; [/CODE] which I know doesn't work (syntax error) - but why not??[/QUOTE] I think this will be possible in the next version of C++

Member Avatar for vmanes
0
238
Member Avatar for KimJack
Member Avatar for ~s.o.s~
0
95
Member Avatar for kursist
Member Avatar for kursist
0
94
Member Avatar for allialli

Wow that's a badly named function. "increment" doesn't mean "return the thing that's one bigger" (that would be called "successor" or something like that). "increment" usually means "take this variable and change it so that it is one bigger".

Member Avatar for bugmenot
0
246
Member Avatar for Dio1080

so lets look at line 112: [code]truckinfo[i].Set(inputhp, inputmileage, inputyear);[/code] The two references that you dereference in that line are "truckinfo" and "truckinfo[i]". "truckinfo" isn't null because you initialized it to a new array before the loop. As for "truckinfo[i]", no elements of the array have ever been set to anything …

Member Avatar for Dio1080
0
169
Member Avatar for Sirjames_da1st
Member Avatar for TheBeast32
Member Avatar for bugmenot
0
71
Member Avatar for Jennifer84
Member Avatar for it2051229

inner classes are nice because they can implicitly access the fields of the enclosing instance, so if your buttons were pointed to by a field, then you can use an inner class to access them

Member Avatar for jwenting
0
91
Member Avatar for yonex

it doesn't print any errors for me one of the problems that you have of course is that you only have one "arrtibute" object in the entire program; so the values of the map all point to the same object

Member Avatar for Laiq Ahmed
0
137
Member Avatar for daviddoria

there are numeric_limits<float>::quiet_NaN() and numeric_limits<float>::signaling_NaN()

Member Avatar for daviddoria
0
291
Member Avatar for TylerTCF
Member Avatar for bugmenot
0
77
Member Avatar for ferrari77
Member Avatar for ferrari77
0
472
Member Avatar for theausum
Member Avatar for random7
Member Avatar for maelthra

it appears to be an applet. you usually have to embed the applet in an HTML page using applet tags and use a browser to run it

Member Avatar for mailmeatvishnu
0
103
Member Avatar for hyperzero4

call the constructor explicitly to create a new temporary object [code]problems.push_back(problem(person, value, assistant));[/code]

Member Avatar for bugmenot
0
99
Member Avatar for anbuninja

"cin >> Y" parses a boolean (which i think just parses a number); not a "Y"; are you confused because you have a variable named "Y"?

Member Avatar for Sky Diploma
0
113
Member Avatar for greeneyedlady

[quote=greeneyedlady;371039]My XP is missing the dvd decoder for WMP. Is there a free one out there?[/quote] Media Player Classic has its own DVD decoder: [url]http://www.free-codecs.com/download/Media_Player_Classic.htm[/url] The K-Lite codec pack has a bunch of DVD decoders to choose from: [url]http://www.free-codecs.com/download/K_Lite_Codec_Pack.htm[/url]

Member Avatar for topcriminal
0
145
Member Avatar for USUAggie

next time why don't you tell us why you think it's wrong first how is "position" used in your method? you seem to just iterate to the end

Member Avatar for USUAggie
0
224
Member Avatar for torbecire

do you mean, "it doesn't compile"? there are no classes named Widget, Spork, or Grommet; how do you expect to create new objects of those classes?

Member Avatar for darkagn
0
102
Member Avatar for snorri

the order that operands are executed is not really defined, so you should really not have operations that have side effects and operations that are affected by those side effects in the same expression you have the code [CODE](cout << a.f()) << a.f();[/CODE] in this particular case, they evaluated the …

Member Avatar for snorri
0
96
Member Avatar for amitahlawat20

you cannot dereference a void pointer (what would you get? a void?) what are you trying to accomplish anyway?

Member Avatar for sahil_itprof
0
151
Member Avatar for daviddoria

if you just used pointers [code] #ifndef LINE_H #define LINE_H class Point; class Line { // Ax+By+C = 0 double A,B,C; Point *p1, *p2; public: Line(); Line(Point *P1, Point *P2); ~Line() {} double getA() { return A;} double getB() { return B;} double getC() { return C;} Point *getP1() {return …

Member Avatar for daviddoria
0
407
Member Avatar for amitahlawat20
Member Avatar for dgr81
Member Avatar for VernonDozier

you should read a basic guide to Java Java consists only of primitive types and reference types (which are kind of like pointers in C). Reference types point to objects, and are named after the class of objects they point to. Objects are not values in Java; and are always …

Member Avatar for VernonDozier
0
461
Member Avatar for bugmenot

hi, i need help please... i need to write a program to calculate the depreciation of equipment passed its useful life using two different methods... these are the actual requirements for the program: "Depreciation" Program requirements: 1) write a c++ program to calculate depreciation using the straight-line and sum-of-digits methods. …

Member Avatar for Lerner
0
787
Member Avatar for torbecire

what exactly is your question? why can't the classes be separate and you just put each class in its own file? also the "main" method should be static

Member Avatar for torbecire
0
122
Member Avatar for abhi_iips

"b" and "c" are references (like the previous poster said, kind of like pointers in C) which may point to objects. objects are not values in java; instead, you always manipulate them through references. you have one reference pointing to one object and another reference pointing to another object; then …

Member Avatar for bugmenot
0
107
Member Avatar for amitahlawat20
Member Avatar for bugmenot
0
491
Member Avatar for Cosa

it's self-explanatory "searchaddress" is a [B][I][U]character[/U][/I][/B], not a string

Member Avatar for Cosa
0
285
Member Avatar for USUAggie

right; in fact, every instantiation of the templated may have a separate copy

Member Avatar for bugmenot
0
83
Member Avatar for Dio1080
Member Avatar for javaAddict
0
136
Member Avatar for manu1001

instance methods take an extra argument, the pointer to the instance that they are invoked on (the "this" pointer). so i have no idea how you think you are going to try to call an instance method without an instance

Member Avatar for vijayan121
0
311
Member Avatar for amitahlawat20
Member Avatar for virubudy4u

if you really want to know, the members of an array are specified in [URL="http://java.sun.com/docs/books/jls/third_edition/html/arrays.html#10.7"]JLS 10.7[/URL]

Member Avatar for bugmenot
0
101
Member Avatar for atavakoli

[QUOTE=Sturm;511257]Enable JavaScript, problem solved.[/QUOTE] Wow, thanks for the pointing out the obvious but that's not the problem. Javascript is enabled, was never disabled, and yet Rapidshare still insists that Javascript be turned on. What's your solution for that?

Member Avatar for bugmenot
0
83
Member Avatar for erementarz

it's really hard to tell what you are doing without seeing some code in your "tree", do the nodes have references to their children; if so, then the children are not garbage collected, because they are reachable what you describe about going into the leaves and returning back up, is …

Member Avatar for Ezzaral
0
115
Member Avatar for ntdaycott

your remove() method doesn't have a closing brace perhaps this has to do with your two opening braces after the if

Member Avatar for Ezzaral
0
132
Member Avatar for torbecire

your add(), subtract(), multiply(), and divide() methods modify their arguments, without changing them back; i am not sure if this is what you want i don't understand your reduce() method. it creates three new fractions (initialized to 0/0), then tests the denominators of two of them (which of course are …

Member Avatar for torbecire
0
105
Member Avatar for Parsu7
Member Avatar for bugmenot

hi guys, i am using vb6 as front end and oracle as back end for my project. i am using ADO to connect to oracle database. can u please help me with the code. my code is [B]Dim con As New ADODB.Connection Dim str As String Private Sub Command1_Click() str …

Member Avatar for bugmenot
0
282
Member Avatar for blcase

[url]http://en.wikipedia.org/wiki/Self-balancing_binary_search_tree[/url] [url]http://en.wikipedia.org/wiki/Red-black_tree[/url]

Member Avatar for vijayan121
0
79
Member Avatar for vladdy19
Member Avatar for maydhyam
Member Avatar for Spartan552

one reason why you might want to & 0xFF is that byte's are signed, so if "data" is a byte array, and some of the bytes are 128 or above, then they will be interpreted as being negative. and when they are promoted to integers or longs, they will still …

Member Avatar for bugmenot
0
224
Member Avatar for sourcecode
Member Avatar for nschessnerd

there are several problems with this first, this is not how you write an equals() method; it needs to take an argument of type Object, in order to override the default equals() method second, you really don't want to have your class compare equal to strings, because it violates the …

Member Avatar for nschessnerd
0
225

The End.