Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #3K
~35.3K People Reached
Favorite Forums
Favorite Tags

16 Posted Topics

Member Avatar for veiLrn

hmm that sounds more like a class assignment... anyways, why doesn't the code work on netbeans? are you getting a compiler error?

Member Avatar for ASIF_21
0
32K
Member Avatar for blee93

This is just a guess, but I think you may have a logic error in that if you are looking for the largest prime factor you should do the upper half of the possible factors. You are decrementing from sqrt(bignum) to 2. You should be decrementing from bignum to sqrt(bignum).

Member Avatar for vCillusion
0
367
Member Avatar for jkoske

Hi I using gcc on a .S file to assemble my program. [CODE] #include <string.h> .text .global defaultBSTNode defaultBSTNode: pushl %ebp movl %esp, %ebp addl $last_local, %esp #//void * memset ( void * ptr, int value, size_t num ); pushl $bst_size pushl $0 pushl retValuePtr(%ebp) call memset addl $12, %esp …

0
68
Member Avatar for jkoske

I am having problems accessing the members of the base class in my derived class. Is there anything wrong with the way I defined my base class as in: template <class T> class Stack : private Llist<T> Is there anything wrong with that? I am getting errors from gcc in …

Member Avatar for jkoske
0
214
Member Avatar for jkoske

[CODE] template <class T> class Llist //.... //Iterates to position and sets pointers to node at position-1 and position. template <class T> void LList<T>::iterate(Node<T>*& previous, Node<T>*& next, unsigned short pos) { //some code } //Start Iterator template <class T> inline Iterator<T> LList<T>::start() { //some code } template <class T> class …

Member Avatar for template<>
0
146
Member Avatar for FrancisLazo

I'm amazed at how much more difficult you made this for yourself, hopefully if you apply this much effort to studying you can improve your skills. Something like this pseudocode, array[600] for array element 0 3 6, element = [ for array element 2 5 8, element = ] get …

Member Avatar for Red Goose
0
227
Member Avatar for iamcreasy

Someone correct me if I am wrong but if you implement a C-style struct(POD struct) you won't have a constructor. So you will get some increase in efficiency if you don't need a constructor.

Member Avatar for Narue
0
137
Member Avatar for jonspeidel

You are using your variable declarations like a macro. The reason your result is not coming out correctly is because "division" is set equal to the value of d1 and d2 at the begging of your program, which is just garbage data. Maybe you should use a c macro if …

Member Avatar for 1ML
0
399
Member Avatar for jkoske

Name: Jade Height: 5'10'' Hair: green Eyes: purple Location: CA (originally from LA, the state) Age: 27 Hobbies: computer, meditation, fun Relationship Status: single Fav Music: metal, punk, lounge, acid-jazz Education: junior BS in CSC at UC Davis Work: Math Tutor Favorite TV Shows: XFiles

Member Avatar for schultzdonald
0
165
Member Avatar for jkoske

Right now I am using gdb on command line in Ubuntu. It seems pretty inefficient and cumbersome. Is that just because of the learning curve or because it is really that way? Do "real" c++ programmers use gdb? I felt the same way about vi until I learned to use …

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for packluv12
Member Avatar for jkoske
0
118
Member Avatar for assembly_11

You would use pointers or references for two reasons: 1. You want to modify the actual parameter inside the function. 2. You want to avoid pass by copy to conserve resources when passing something big. If you are doing it for the second reason and not the first, then pass …

Member Avatar for jkoske
0
77
Member Avatar for kra9853
Member Avatar for jkoske
Member Avatar for Charlton21

wrap your code in code tags. also your class and functions should have a template header above it template <class T> class myClass { T myMember; } template <class T> T myClass<T>::getSomething(){return myMember;} something like that You can use T as a class type if you don't know it beforehand.

Member Avatar for Narue
0
306
Member Avatar for jkoske

This is giving me a segmentation fault in the noBucket() function. I don't see why. Does it having something to do with it being a const function? My other accessor functions are working fine and they are declared exactly the same with just a different name. The files are longer …

Member Avatar for jkoske
0
216

The End.