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
c x 43
java x 7
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
80
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
162
Member Avatar for bobscrazy

First off no idea why the title doesn't say the full title, but My problem is getting snum in the main class to transfer over to the sub class, so that the snum in that class = snum from the main class The code is; [code] package workstation; import java.util.Random; …

Member Avatar for Crushyerbones
0
78
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
133
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
182
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
137
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
94
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
61
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
178
Member Avatar for awi123

the program asks to calculate the power of a number, for eg. if 2 is entered as the base and 3 is th power it should display 8.

Member Avatar for lich
0
106
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
106
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
102
Member Avatar for Mr.UNOwen

Hello, Before I switched to Ubuntu, I used to have some cool boot screens for windows and now I want to create some for Ubuntu, but I have no clue where to begin. What I do know: - text input and output in C - animation in Java - using …

Member Avatar for Crushyerbones
0
83
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
121
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
215
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
111