No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
18 Posted Topics
Hi, suppose I have something like this on my main method. [CODE=Java]public static void main (String[] args){ Table one = new Table(); }[/CODE] How can I print the name of the object table? Its so that I can print something like this Table one: Color is ... Texture is.... etc | |
Re: You should also include a null terminator in your array, is good practice. [code] int readFile(char fileName[], char textStr[]) { FILE *fptr; char c; int i = 0; if ((fptr = fopen(fileName, "r")) == NULL){ printf("Error: failed to open %s\n", fileName); return -1; } while ((c = fgetc(fptr)) != EOF) … | |
Hey folks, I am trying to normalize a view on a given output. This is how it works, I need to print several characters but the maximum chars i can print have to be 40 per line. [QUOTE]aaaaaaaaaaaaaaaaaaaaaaaaaaaaa...till 40 aaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbb[/QUOTE] The algorithm works as follows: I have to find … | |
I have an array codes[26] which contains numbers inside {25,4646,23,12,.....29} Each position in the array corresponds to a letter of the alphabet. code[0] is a, code[1] is b, etc... I'd like to print the occurrences of each letter, something like this. If there are 12 A's, 5 B's AAAAAAAAAAAAA BBBBB … | |
Hey everyone, I have a series of loops that read through a text file and then output the occurrences for each letter on the file. This seems to be fine when using small text only. When providing a lot of text it just takes too many CPU resources and that's … | |
Hi folks, I've been trying to solve this but I keep hitting a brick wall. Here's what I am trying to do: I'm reading a file with text in it, I am storing every letter of this file as an element of this array (this part is already done) and … | |
Hi everyone, I'm trying to accomplish the following; I need to create 2 subprocesses and each subprocess should create a process of their own. Should look like this: [QUOTE]I'm child xxxx parent xxxx I'm the subchild xxxx parent xxxx I'm the second child xxxx parent xxxx I'm the second subchild … | |
Re: Yeah I don't think there are tools to do this automatically (unless you plan on building one yourself with a little code) You're gonna have to do this manually, either by remote desktop (why is it not enabled?) or using VNC | |
I can connect from the services window but whenever I try to set the code myself on my app it tells me it cannot connect to the database. Here's my code: [CODE=java]import java.sql.*; public class LogBook { public static void main (String[] args) { connectToDB(); } // Connect to the … | |
Hi, I've been thinking of ways of creating an application that involves working with data, what would be the best way to accomplish this? With the JavaDB, MySQL or plain text files? The project is fairly simple, the idea at least. It's a set of records for students, each student … | |
Hi everyone I've been trying to develop a mid-scale (size wise) application in the past few days. Something I'm doing for fun, to get some experience. My application is some sort of log system, it can have different users, each user has its own log entries (or records) and so … | |
Hi, How can I code it so I can make a new window appear on my application? Let's say, user hits a "new user" button, a new window is supposed to pop with TextFields and labels and so on. In Dephi is something like, Form1.show; How do I do this … | |
Hi everyone, I'm working on an app that saves data on a text file, as we know, formatting text file is awful and not very user friendly. I'd like to save the information I've collected on my program on a nicely formatted excel file. Given the file it's already created, … | |
I'm trying to create a simple program that will check for any given number (an ID) provided by the user and check this ID with an array of numbers inside my program. If the correct ID is given, it will display "Valid ID" if the ID provided by the user … | |
Hello, I'm creating a subclass from an already defined class. Let's say I have a class called Student and it has a default constructor. Now I want to create a child class of Student, but when I create it, it seems that it's taking the constructor instead of the actual … | |
Hello, I'd like to create a function that accepts two objects and compares properties between them. Example [code=java]public boolean (obj1, obj2){ if obj1.property1 = obj2.property2 return true else return false } [/code] How can I do this? | |
Re: I'm a big fan of game programming. Have you looked into designing a logic game? Such as Soduku, Chess, Knight's Tour is great although a bit simple. Like others said, it all depends on how far you're planning to go with this hehe | |
Hi, I'm wondering how I can accomplish this. Suppose I have the following array [CODE]String[] randomText = {"hi", "hello", "hey there"}[/CODE]; If I want to print the array I only know how to do so line by line. [CODE]for (int num = 0; num < randomText.length; num++){ System.out.println(randomText[num]); }[/CODE] Can … |
The End.