Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
57% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
~4K People Reached
Favorite Tags

18 Posted Topics

Member Avatar for Swiftle

Hey, I made a small program for the k-clusters algorithm. In the current state though, I'm unable to erase the position of the centers from the previous itterations. If I use paintComponent(g) my jPanel will move down to the right and I have no idea why. (as shown here: http://tinypic.com/r/2eba0j8/6 …

Member Avatar for Swiftle
0
2K
Member Avatar for Swiftle

Hello I built a personal 2D array for my current project. I also store these arrays (called Matrix) in a std::vector. The matrices are 24*181 and currently I sue between 30 and 50 of them. I don't think project details are relevant however I'm getting 3 errors which I have …

Member Avatar for VernonDozier
0
209
Member Avatar for Swiftle

I have several strings that I want to split using different delimiters such as ",{}() [CODE]$ppl[0] = "Balko, Vlado \"Panelбk\" (2008) {Byt na tretom (#1.55)}"; $ppl[1] = "'Abd Al-Hamid, Ja'far A Two Hour Delay (2001)"; $ppl[2] = "'t Hoen, Frans De reьnie (1963) (TV)"; $ppl[3] = "1, Todd \"5 Deadly …

Member Avatar for Swiftle
0
118
Member Avatar for Swiftle

Hello, I'm new to the whole regex thing, and I'm having trouble understanding the syntax. I have to separate a line by different criteria like spaces, brackets and others. Here's and example line: "$#*! My Dad Says" (2010) {Code Ed (#1.4)} 2010 What I want to have is: $#*! My …

Member Avatar for pritaeas
0
131
Member Avatar for Swiftle

Hi! I'm trying to use a base class derivative in another derivative class constructor but it's not working. Here's what I have: [CODE] class A { ... }; class B : public class A { ... }; class C : public class A { C(A objA); } [/CODE] However when …

Member Avatar for Mouche
0
196
Member Avatar for Swiftle

Hello, I need a way to wait for threads and I don't think that pthread_join works in my case. Here's the problem. I'm currently working on a very basic space game. We have vehicles that collect resources and must bring them back to the HQ. In order to do this …

Member Avatar for L7Sqr
0
115
Member Avatar for Lokril

[CODE]int remainder(int x, int y){ int i; for(i = 1; y*i < x; i++); return (x - y*(i-1)); { [/CODE]

Member Avatar for jonsca
0
143
Member Avatar for Swiftle

Hi, I'm having trouble figuring how to search for a specific element of a class in a list. I saw some examples of find() but they only show how to search for a string or an int. Another thing is modifying elements of a class. So let's say I have …

Member Avatar for Swiftle
0
147
Member Avatar for Swiftle

Hi, I'm doing a client/server with threads instead of forks. The goal is to have multiple clients connect to the server and for each client the server makes a new thread. Although it's working atm, there are things that bother me, especially the sockets. The first thing I want to …

0
56
Member Avatar for Swiftle

Hello, I have an assignment for a multi thread bubble sort written in Java. It may not sound very hard but we only had 4 hours of introduction and never wrote a single line in Java before getting this. But this isn't the point :P. I have problems with what …

Member Avatar for Swiftle
0
126
Member Avatar for Swiftle

I'm preparing for my ASM exam and I'm having trouble understanding the concept of passing parameters via the stack. Usually we must use local variables when writing recursive procedures. Here's a little code snippet that I'm unable to test atm: [code] procedure1: PUSH EBP MOV EBP, ESP PUSH EAX PUSH …

Member Avatar for sDJh
0
136
Member Avatar for XerX

[URL="http://www.cplusplus.com/doc/tutorial/dynamic/"]Dynamic Memory Allocation[/URL] I have no idea what is the "big three" but I guess it's the constructor of the class, the destructor and the assignment operator =. [URL="http://www.cplusplus.com/doc/tutorial/classes/"]Class[/URL]

Member Avatar for Swiftle
-2
139
Member Avatar for Swiftle

I've made a Circular List and I need help implementing a simple memory management. It's the first time I'm doing this so I really have no idea where to start. What I want to do is pre-allocate X amount of Nodes that I can use for my list. Only when …

Member Avatar for nbaztec
0
156
Member Avatar for i_luv_c++

What do you mean by flipping text? If you want something like this: [code] evil ----> live [/code] then [URL="http://www.cplusplus.com/reference/string/string/rbegin/"]this[/URL] should help.

Member Avatar for Swiftle
0
82
Member Avatar for Swiftle

Hello, I'm trying to make a circular list by modifying an existing simple-linked list. I'm having a problem when testing whether or not a node is valid. The old code looked like this: [code] return (elem == NULL); [/code] Now with a circular list I have my sentinel node and …

Member Avatar for Swiftle
0
88
Member Avatar for Swiftle

Hello, U just started using acces and I need to make a query using multiple tables. I read some tutorials and watched videos but I can't seem to do it right. I have 2 tables: the first one is Login, the second one is Group. Login contains Username, Name, Group …

Member Avatar for Swiftle
0
106
Member Avatar for Swiftle

Hello, I'm writing a simple version of the message digest algorithm. In our version we get a string, translated to its decimal value. We need to tackle 8 characters per loop. I'm having problems with the implementation of the loop. I have a DD which stores the size of the …

Member Avatar for Swiftle
0
80
Member Avatar for Swiftle

Hello there, I'm writing a dictionary that stores keywords and the pages which contain the keyword. This is a follow-up on a PageRank algorithm we're doing for an assignment. The first part is the read from a file containing all the web addresses and store the in a matrix, and …

Member Avatar for mitrmkar
0
143

The End.