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.

~2K People Reached
Favorite Forums
Favorite Tags

16 Posted Topics

Member Avatar for Crushyerbones

Hello, is there an acceptable way to do the following? [CODE=java]public CriarEquipamentoGUI (boolean showWindow) { if !(showWindow) dosomething(); return; else initComponents(); }[/CODE] Currently the return statement completly screws up the window.

Member Avatar for Crushyerbones
0
82
Member Avatar for Crushyerbones

Hello everyone, I'm having a really strange problem and I can't figure out why. [CODE=java] public void readEmpregados(ArrayList <Classe_Pessoa> list) throws IOException, ClassNotFoundException { FileInputStream file; try { file=new FileInputStream(this.empregados); } catch (FileNotFoundException e) { this.empregados.createNewFile(); return; } System.out.println("I'm here"); try { ObjectInputStream out=new ObjectInputStream(file); Object prototype=out.readObject(); if (prototype instanceof …

Member Avatar for Crushyerbones
0
177
Member Avatar for bobscrazy

First of all: Sorry, but your indentation (or lack thereof) is hideous. Please try to make your code a bit more presentable. (don't take this as an insult, it will really help you out in the longterm and others trying to help you too). Maybe it's just me and my …

Member Avatar for Crushyerbones
0
80
Member Avatar for Crushyerbones

Hello guys, I'm trying to make this work [CODE]all: daemon client daemon: cd ./daemon; make daemon client: echo going in cd ./client; make client clean: cd ./daemon ; make clean cd ./client ; make clean[/CODE] But I'm having 2 problems: 1) Make ALWAYS tells me there's nothing to be done. …

Member Avatar for Crushyerbones
0
136
Member Avatar for Crushyerbones

Does anyone here have any tips on using inb and outb for interacting with hardware on a Linux system? iopl(2) and inb(0x61) don't seem to work very nicely... Infact, inb(0x61) gives me a segfault. PS: My reliance on this forum is starting to become embarrassing :P

Member Avatar for Crushyerbones
0
190
Member Avatar for Crushyerbones

Hello, I'm trying to set up something like this: [CODE] adsl-connected router -> standalone router | | | Windows-XP PC Windows Vista PC Ubuntu Laptop [/CODE] I'm doing this since I the 2 routers are far away from each other and there's only one ethernet cable going into my room, …

Member Avatar for Crushyerbones
0
141
Member Avatar for Crushyerbones

I am doing some self-made exercises lately to practice my C skills. One of them is something like this: Given a file with something like: "Peter Wilson the swordsman". I want to store "Peter Wilson" in the char array "name" and "swordsman" in char array "title". So far I've tried …

Member Avatar for Crushyerbones
0
98
Member Avatar for Crushyerbones

Hello, sorry to ask, but does anyone know any working algorithms for quicksorting a doubly linked list? I'm only asking because I'm going to rip someone's head off if I have to keep doing it by myself any longer :P Don't worry, I understand how to it on my own, …

Member Avatar for Crushyerbones
0
64
Member Avatar for Crushyerbones

Hi, I've been trying to analyze the source code to some applications but so far I've been unable to figure out how to receive user input while the program is of doing something else. My program consists of a small list of items which are being constantly sorted. The problem …

Member Avatar for Duoas
0
191
Member Avatar for awi123

Kernighan and Richie's "The C programming language" has a a useful function for calculating powers. Although I suspect it's very similar to the one on math.h :P In any case, just multiply a number by itself (power) times

Member Avatar for lich
0
119
Member Avatar for Crushyerbones

I'm doing a project for college. It's not too complicated but it involves a lot of data access on a linked list. Does anyone have any tips for designing an intuitive command line gui? I'm doing things like: [CODE=C] while (current !=NULL) for (i=1;i<10;i++) printf("%d *Name: %s\n",i,current->data.name); current=current->Next; switch (get_char()) …

Member Avatar for Salem
0
111
Member Avatar for Crushyerbones

Basicaly I'm trying to do this [code=C] int create_student(student_data *student){ printf("Nome do aluno:\n"); fgets(student->name,name_limit,stdin); //wtf? printf("NĂºmero do aluno\n"); fgets(student->number,name_limit,stdin); printf("Aqui devia estar um nome %s",student->name); return 1; } [/code] Where student is a custom struct, student->name is char array. For some reason it seems to skip the fgets. Replacing with …

Member Avatar for Dave Sinkula
0
107
Member Avatar for Mr.UNOwen

No offense but isn't it all very ambitious on your part? If you're really feeling up to it I'd suggest looking at the original source code.

Member Avatar for Crushyerbones
0
85
Member Avatar for Crushyerbones

Basicaly I want to see if a a number (in my example: 12345678910 ) contains another, smaller number (1234). For this I decided to turn a into a string. For some reason my "in" function never worked. But now for some reason if I ever decide to invoke, there's a …

Member Avatar for Crushyerbones
0
122
Member Avatar for Crushyerbones

Hello again :) This time I'm back with a stranger question. The following program is meant to factorialize (spelling?) a number from the command line while printing out the number of calls it made to the function "factorial". [CODE=C] #include <stdio.h> #include <stdlib.h> unsigned long long factorial(int num,int *count_ptr){ printf("Call …

Member Avatar for Crushyerbones
0
241
Member Avatar for Crushyerbones

I'm trying to do something similar to this: [code] int output_type=1 if (output_type==1) char real_out[7]="binary"; else if (output_type==2) char real_out=[6]"octal"; else if (output_type==3) char real_out[8]="decimal"; else { char[20]real_out="This REALLY shouldn't have happened.\n";} } [/code] I know the coding is kinda messy but I basically want the variable "real_out" to contain …

Member Avatar for Crushyerbones
0
113

The End.