Posts
 
Reputation
Joined
Last Seen
Ranked #77
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
94% Quality Score
Upvotes Received
217
Posts with Upvotes
187
Upvoting Members
112
Downvotes Received
11
Posts with Downvotes
11
Downvoting Members
9
70 Commented Posts
0 Endorsements
Ranked #109
~449.39K People Reached
Favorite Tags
Member Avatar for john10

Hey guys, I would like some help regarding saving or reading to or from a bin file. I've read several online tutorials about file input/output, however it doesn't given specific information when applying it to both an array of structures. My knowledge of pointers is weak, as I constantly need …

Member Avatar for jimmichaels29
0
3K
Member Avatar for gonzi.p12

hey guys, Can any body tell me how shall i start with the project. I will be using Java and C together(JNI) in netbeans for coding. I will be embedding the C code in Java(Interface). First i want to read the wav file in C and sample it and apply …

Member Avatar for iranano
0
2K
Member Avatar for sciprog1

Hello Members, I want to write a C program which creates two threads and uses a semaphore (as a critical section) to sleep for 1 second and then terminate. I am having a hard time with some of the C Syntax for semaphores. Is it possible to post an example …

Member Avatar for charlottegracie
0
4K
Member Avatar for Sudo Bash

I am writing a game in which I need to know whether or not a user preforms an action in one second or less. I can not use time() because it measures time in seconds. If the user starts the action half-way through a second it would mess with accuracy. …

Member Avatar for Yangang
0
4K
Member Avatar for Krysis

Hey all, This is my first time posting on GoExpert, so I'm excited to see what the community here has to offer! Anyway, I am currently working on creating a compiler (using Flex and Bison) in C for a subset of the Pascal programming language in my Compilers course... and …

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for chrjs

I am doing this assignment for my computer science course, and I have to write a function that determines if 'x' can fit into an n-bit, two's complement integer. I am not allowed to use any control statements or operators other than the [ICODE]! ~ & ^ | + << …

Member Avatar for mbelenske
0
2K
Member Avatar for JJHT7439

I have to complete a lab which basically takes a text file and finds path between 2 actors that you input by going through the movies in the text file. (For the labs purposes we are only doing 3 degrees of separation) For example if the text file is: [QUOTE]Apollo13 …

Member Avatar for James_41
0
3K
Member Avatar for John Linux

In a past prac. exam for an algorithm course I'm doing is the challenge below, and their are no solutions but it seems like a really interesting one to solve. Can someone please help and point me in the right direction, I would like to try this on my own, …

Member Avatar for Sergio_1
0
498
Member Avatar for akhilchandranms

hai , I am using turbo c compiler, the system() function always return -1. i can't run any dos command using system() function i can't use system() properly please help me !!! ex: [CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main() { int i ; i=system("dir"); printf("%d",i); getch(); } [/CODE]

Member Avatar for deceptikon
0
1K
Member Avatar for some

Hello everyone, I was working on a program that was meant to open something the user put in. Basically, the user would put in the path and then the program would open whatever was there. I can't work it though, every time I put in the file path, it says …

Member Avatar for Lucaci Andrew
-1
222
Member Avatar for boiishuvo

Okay I am trying to write a program where a parent process creates three child processes. Also waits for each of them to finish. Here is my code: [code] #include <stdio.h> #include <unistd.h> main() { int i; // create 3 child processes for (i = 0; i < 3; i++) …

Member Avatar for rakeshbiswal
0
4K
Member Avatar for Niketh

hi all, I am working on C++ coding of fault simulation algorithm of a digital circuit . The first step involves parsing of netlist files. The sample netlist looks like - # Only 2,3 input gates considered ... INPUT(1) INPUT(2) INPUT(3) INPUT(6) INPUT(7) OUTPUT(22) OUTPUT(23) # comment here 10 = …

Member Avatar for hactor
0
555
Member Avatar for zychos

I am getting the following errors when i gcc my code: 44) unixs1 $ gcc whoisserver.c whoisserver.c: In function `main': whoisserver.c:59: warning: passing arg 2 of `bind' from incompatible pointer type whoisserver.c:71: warning: passing arg 2 of `accept' from incompatible pointer type Undefined first referenced symbol in file bind /var/tmp//ccSx8OhK.o …

Member Avatar for zychos
0
190
Member Avatar for BobTheLob

Hey, so i'm having some problems with my message passing code. Ultimately, what i'm trying to do is use the msgget/snd/rcv commands to send the pid of the parent to the child, and visa versa. However, i'm getting an invalid argument error fr my msgsnd in the child process. My …

Member Avatar for allyson
0
2K
Member Avatar for ryantroop

Anyone know any good online.. I guess.. challenges or tutorials that will teach the fundamentals of the automated QA process using Python? Is it simply TDD? Or is there more to it? If it is TDD, can anyone suggest where to practice this more, other than "come up with a …

Member Avatar for ryantroop
-1
125
Member Avatar for newbie14

Dear All, My problem is that exactly every second I need to call a particular function to do some sql querying. So after reading I found that the latest api is timer_create. Below is a skeleton. Is this skeleton a right one to move forward? Thank you. [CODE]#include <stdio.h> #include …

Member Avatar for newbie14
1
2K
Member Avatar for DeeperShade

Ok, basically i'm putting together a win32 wrapper based on various tutorials I've seen. But when I try to close it via the close buttong (top right) or via the esacpe button it doesn't do anything, with the first it closes the window but doesn't end the program, with the …

Member Avatar for DeeperShade
0
133
Member Avatar for Gaiety

I have executed the below program several times, most of the time i got the same out put but some times output is different. sample out put is: > skylab@skylab:~/Nx/Thrds$ gcc 3.c -lpthread > skylab@skylab:~/Nx/Thrds$ ./a.out > Scheduling policy = ??? > arg = 20 > 1arg = 20 > …

Member Avatar for Gaiety
0
204
Member Avatar for sorin.oltean87

Hi, We have a file (e.g. a .csv file, but could be any other format), with 2 columns: the old value and the new value. We need to modify all the files within the current directory (including subdirectories), so find and replace the contents found in the first column within …

Member Avatar for sorin.oltean87
0
2K
Member Avatar for brunoccs

This is exercice 1.8.6 from Computer Organization and Design The Hardware Software Interface Suppose that the industry trends show that a new process generation varies as follow: Capacitance Voltage Clock Rate Area a. 1 1/2^1/2 1.15 1/2^1/2 b. 1 1/2^1/4 1.2 1/2^1/4 Assuming a Core 2 processor with a clock …

Member Avatar for nezachem
0
88
Member Avatar for iamthesgt

For a shell script used to automatically generate c++ code files, I have to split certain names apart for them to be formatted. I split them at a capital letter, but I do not want to split if there are multiple capital letters in sequence. For example: I want this …

Member Avatar for iamthesgt
0
2K
Member Avatar for memomk

hey all I've searched all over the web and i didn't get a solution! what should i do to take the text from the 'urlT' line edit? is there another way? Nameerror "global name 'self' is not defined" whats wrong with it? [CODE] from PyQt4 import QtCore, QtGui class Ui_MainWindow(object): …

Member Avatar for memomk
0
2K
Member Avatar for rasizzle

Here's my dilemma: I am creating a histogram through matplotlib and saving it in the same folder I'm running. There are a few image files that I can save it as, none of them being bitmap. So I'm trying to convert the image to bitmap. I've looked at WxImage and …

Member Avatar for Gribouillis
0
26K
Member Avatar for mohan_saini

Hi all, I have to interface an IC which is giving serial output bitwise from a single pin this pin is directly connected to a microcontroller i have to read this single pin to an unsigned int. i have written a function something like that but its not working. unsigned …

Member Avatar for Ab000dy_85
0
128
Member Avatar for DeanMSands3

I need GMPXX on MinGW. This is driving me nuts. EDIT: I should mention I've tried using the precompiled MinGW GMP and GMPXX libraries via the **mingw-get**. And they fail. I removed them. I compiled GMP in MSYS with the following line. ./configure --enable-cxx --prefix="/mingw" && make && make install …

Member Avatar for DeanMSands3
0
618
Member Avatar for Labdabeta

I have now read a total of 5 different winsock tutorials and I still do not get how sockets work! Could somebody please explain how to make a program that will allow n computers to share data with each other. As an example could somebody make a 'game' with the …

Member Avatar for Labdabeta
0
217
Member Avatar for mrnutty

This question is from code chef, named Odd. I believe this is a good problem to play with for all levels. If I can solve it surely anyone else can, cough * only if pi is fake* cough*. Here is the question : [ICODE]The captain of the ship TITANIC is …

Member Avatar for nezachem
1
664
Member Avatar for Dewey1040

I'm trying to use the system call to append an arbitrary number of files to one specific file... when I attempt to run the program i get the error: sh: addints.o: not found sh: main.o: not found sh: rbyswt.o: not found sh: readint.o: not found sh: writeint.o: not found sh: …

Member Avatar for kings_mitra
0
96
Member Avatar for mstashev

So I have an assignment where I am supposed to create an oop that will run on a provided Unix server. I have a Mac so when I run the makefile in Terminal, I don't get any errors. But when I try to run the makefile in the provided Unix …

Member Avatar for mstashev
0
241
Member Avatar for Ricky65

Hi I'm looking to upload files using http post using winsock and have a php script handle it. I've got it working fine for text files but with files that contain null characters such as exes it doesn't work. It is only copying the file buffer up to the null …

Member Avatar for bakri
0
1K