Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~16.6K People Reached
Favorite Tags
Member Avatar for blackrobe

Hey, I need to compile and link two C files together...what should i do to the files in order to be able to compile them as the following: [Code] gcc file1.c main.c [/Code] and then run using ./a.out... Can anyone tell me the steps please...thank you..

Member Avatar for dip_j
0
601
Member Avatar for blackrobe

Hey, I'm studying for a final exam and I came across an old question asking to give an algorithm that runs in [TEX]O(logn)[/TEX] and deletes an arbitrary element from an [TEX]n[/TEX] element [B]Min-Heap[/B] if given its index. I was thinking the right approach would be to use Hash table for …

Member Avatar for blackrobe
0
664
Member Avatar for blackrobe

Hey, I'm hoping someone could help me. I received my 8GB (2x4GB) DDR3 PC3-10666 today to upgrade my [URL="http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035288&tmp_task=prodinfoCategory&cc=us&dlc=en&lc=en&product=4125903"]HP DV6-2154ca[/URL] from 4GB (2x2GB) DDR3 memory. I installed them successfully and even the BIOS did show 8129MB of RAM and showed the RAM modules placed (note: showed serial numbers as 00000.. …

Member Avatar for safyrmwn
0
354
Member Avatar for blackrobe

Hey, [B][U]Problem:[/U][/B] Need to find an algorithm that given 2 sequences of [B]n[/B] numbers each, say [B]S1[/B] and [B]S2[/B], and 1 number, say [B]x[/B], it would tell if x is in the sum result of S1 and S2. The hashing function, say [B]h[/B], must be picked at random from a …

Member Avatar for Taywin
0
519
Member Avatar for blackrobe

Hey all, I've been struggling for the past few days with a "recursive" function that was driving me crazy till this moment. So, the function takes a list of sublists, each sublist containing a number of strings. Then, the function returns a list of lists of all possible combinations that …

Member Avatar for Mavericks
0
9K
Member Avatar for blackrobe

Hey there, I'm new to CSS and I'm building my personal website. I have an issue with the right side bar when browser is re-sized. I posted two images (a working example and the issue I'm facing). Any help would be greatly appreciated.

Member Avatar for drjohn
0
152
Member Avatar for blackrobe

Hi, I'm really new to assembly language and trying to write an assembly program that includes some arithmetic and I would like to know how to do two things: 1- I want the input entered by the user to be between 0 and 9, meaning a digit not anything else. …

Member Avatar for AMPON
0
212
Member Avatar for blackrobe

Hey there, I'm currently using NetBeans 6.8 running Cygwin GNU Bash version 3.2.49(23)-release. I'm having a problem running my program that uses pthreads, mutexes, and semaphores. After it creates 1 to 3-4 threads, it returns a Segmentation fault. I ran the program on a computer running Linux (using NetBeans as …

0
115
Member Avatar for blackrobe

Hey there, I'm having some difficulty understanding how pthreads are used for writing to files and reading from files using a buffer cache. There are two data structures available: 1- The first data structure is just an array of files each index contain information about the size of the file …

0
61
Member Avatar for blackrobe

Hey, How can I terminate a server after some number of connections (don't want it to keep on running forever). I've written in it C, using the select system call, and an array to store the connections made in.. [CODE] while (1) { FD_ZERO(&rdset); FD_SET(clients[fd], &rdset); ( select(max+1, &rdset, NULL, …

Member Avatar for nezachem
0
163
Member Avatar for blackrobe

Hello, How can i change the root directory to the current working directory.. I need to use some form of an exec call to run a program found in the current working directory but the problem is that the path of that program is required to start with '/'.... my …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for blackrobe

I am running Windows 7 on one machine and Linux Debian on another. I am creating a C application using NetBeans. It seems to be working just find on Linux when I run it there. But when running on Windows, messes up the output somehow, kinda prints the output more …

Member Avatar for WaltP
0
173
Member Avatar for blackrobe

Hey, I have a problem that I'm not sure if its from running on windows or not. Lets say I have the following MakeFile for compiling and creating the executable of 'target.c': [CODE] FLAGS = -Wall -g all : target target : target.o gcc ${FLAGS} -o $@ $^ target.o : …

Member Avatar for Ancient Dragon
0
103
Member Avatar for blackrobe

Hey there, I have a simple question: How can I read three characters by three characters from a string (character array) in C? Thanks for your help.

Member Avatar for s_sridhar
0
156
Member Avatar for blackrobe

Hey all, Im creating a shell script that has an option to take a file to write the output into instead of displaying it on the terminal (stdout)...and then takes an arbitrary number of input files to process. Usage is something like this: $command [-option outputFile] inputFiles.... If the option …

Member Avatar for blackrobe
0
86
Member Avatar for blackrobe

Hey all, I have a dumb question to ask :(.. I want to know how to create a shell script that reads input from the STDIN as default, but when [-o inputFile] is entered as an option, it will read the input from the inputFile. I want to do this …

Member Avatar for blackrobe
0
118
Member Avatar for blackrobe

Hey all, I have a problem with using the grep command... Im trying to parse lines in a file and read only characters t,c,a,g lower or upper case...but i keep getting trouble in the outcome: for example axxxxtc should return atc but it doesnt... heres my code: result=`echo $line | …

Member Avatar for blackrobe
0
149
Member Avatar for blackrobe

Hi there, I'm writing a function to compare strings from two lists, but I'm facing problems comparing the two strings in an easy straightforward way due to my lack of knowledge in Java. I use Python more often which is way easier than Java in string manipulation and comparison. My …

Member Avatar for JamesCherrill
0
140
Member Avatar for blackrobe

Hey all, I have a problem with printing my output in a certain way from my Java program. I actually need to print the output in a table-like structure. For example: [CODE] ============================================================================= Header1 | Header2 | Header3 | Header4 | Header4 | ============================================================================= Info here | Info here | …

Member Avatar for arseniew
0
138
Member Avatar for blackrobe

I have a Set that contains different random lines from a text file, now I'm new to Java so I don't know much about the methods available but I have tried using the java.util.Set.toArray() method but it returns an Object[] than can not be sorted. Is there anyway to do …

Member Avatar for quuba
0
146
Member Avatar for blackrobe

Hi all, I'm required to implement a method for a "[B]TernarySearchTree[/B]" object/class. Basically, a Ternary search tree is just like a binary tree except it has three children instead of two. Ternary Search Tree could only manipulate it's root. Now the method should create and return an alphabetically sorted list …

Member Avatar for danny'sweb
0
108
Member Avatar for blackrobe

I've been reading an article but the code is written in C language which I don't get at all... The code is: [CODE]void traverse(Tptr p) { if (!p) return; traverse(p->lokid); if (p->splitchar) traverse(p->eqkid); else printf("%s/n", (char *) p->eqkid); traverse(p->hikid); [/CODE] Someone please translate it to python...

Member Avatar for tyincali
0
150